Difference between revisions of "Template:UnitStats"

From Old World Wiki
Jump to navigation Jump to search
(Trying #replace as a way to implement upgrades_from list)
(trying an explode and foreach template)
Line 26: Line 26:
{{!}}-
{{!}}-
{{!}} Upgrades from
{{!}} Upgrades from
{{!}} {{#replace:{{{upgrades_from|}}},(.*),* $1{{!}}}} | }}
{{!}} {{#explode: {{{upgrades_from |, |#vardefine: values
}}{{#foreach: {{#explode: {{{upgrades_from|}}} |,}} |value
* {{{value}}}
}}
| }}
{{#if: {{{upgrades_to|}}} |
{{#if: {{{upgrades_to|}}} |
{{!}}-
{{!}}-

Revision as of 01:50, 7 May 2023

Stats

Cost
Consumes
HP {{{hp}}}
Movement {{{mov}}}
Strength {{{str}}}
Vision {{{vis}}}
Actions
Notes

{{#if: |

Upgrades from {{#explode: {Template:Upgrades from{{#foreach: {{#explode: |,}} |value
  • {{{value}}}

}}

}}
Requires
Requires Tech