FANDOM


(try this with modules)
(Undo revision 218029 by Russ3Z (talk))
Line 1: Line 1:
<includeonly>{{#invoke:Data/Civ2|GetUnitPage}}</includeonly><noinclude>
+
<includeonly><div class="container-with-margins" style="float:right; clear:right; max-width:50%;">
{{documentation}}
+
{| class="wikitable" style="margin:0;"
</noinclude>
+
|+ style="font-size:large;" | '''{{#if:{{{name|}}} | {{{name}}} | {{#replace:{{PAGENAME}}|(Civ2)|}}}}'''
  +
! colspan="2" | <div>{{#if:{{{image|}}}
  +
|{{#ifexist:File:{{{image}}}
  +
|{{#vardefine:image|{{{image}}}}}
  +
|{{#ifexist:File:{{{image}}}.png
  +
|{{#vardefine:image|{{{image}}}.png}}
  +
}}
  +
}}{{#if:{{#varexists:image}}
  +
|[[File:{{{image|}}}|128px|center]]
  +
|Could not find "[[:File:{{{image}}}]]" or "[[:File:{{{image}}}.png]]"!
  +
}}
  +
|{{pageimage}}
  +
}}</div>{{#if:{{{game|}}} | Introduced in ''[[{{{game|}}}]]''<br />}}''{{#if:{{{domain}}} | {{{domain}}} unit| }}''
  +
|-
  +
! Cost
  +
| {{#if:{{{cost|}}}|{{{cost}}}|N/A}}
  +
|-
  +
! Attack strength
  +
| {{#if:{{{attack|}}}|{{{attack}}}|0}}
  +
|-
  +
! Defense strength
  +
| {{#if:{{{defense|}}}|{{{defense}}}|0}}
  +
|-
  +
! Hit points
  +
| {{#if:{{{hp|}}}|{{{hp}}}|0}}
  +
|-
  +
! Firepower
  +
| {{#if:{{{firepower|}}}|{{{firepower}}}|1}}
  +
|-
  +
! Movement rate
  +
| {{{moves|0}}}
  +
|-
  +
! {{Link2|Leonardo's Workshop}}<br>upgrades to
  +
| {{#if:{{{upgrade|}}} | {{Autolink|{{{upgrade}}}|Civ2}} | N/A}}
  +
|-
  +
! Requirements
  +
| {{#if:{{{reqtech|}}} | {{Autolink|{{{reqtech}}}|Civ2}}{{#if:{{{reqother|}}} | <br />{{{reqother}}} }} | N/A}}
  +
|-
  +
! Obsolete with
  +
| {{#if:{{{obsolete|}}} | {{Autolink|{{{obsolete}}}|Civ2}} | Never}}
  +
|-
  +
! Other attributes
  +
| {{#if:{{{attributes|}}} | {{{attributes}}} | N/A}}
  +
|}</div>[[Category:Units (Civ2)]]{{#if:{{{domain}}}|[[Category:{{{domain}}} units (Civ2)]]|}}</includeonly><noinclude>{{documentation}}</noinclude>

Revision as of 07:26, April 15, 2020

(view | edit | purge | history)

Template documentation (the template shown above may sometimes be hidden or invisible)

This template is used for the units in Civilization II.

Usage

The fields are pretty much self-explanatory. The image defaults to PAGENAME.png. "domain" is either Sea, Ground or Air.

{{Unit (Civ2)
|name = 
|image = 
|game = 
|domain = 
|cost = 
|attack = 
|defense = 
|hp = 
|firepower = 
|moves = 
|upgrade = 
|reqtech = 
|reqother = 
|obsolete = 
|attributes = 
}}

Visit Template:Unit (Civ2)/doc to edit this text! (How does this work?)
Community content is available under CC-BY-SA unless otherwise noted.