Difference between revisions of "Template:Policy infobox"

From Civilization VI Wiki
Jump to: navigation, search
 
Line 4: Line 4:
 
| colspan="2" style="text-align:center; width:150px" | {{#if: {{{image|}}} | [[File:{{{image}}}|250px|{{{name|{{PAGENAME}}}}}]] | [[Category:Infoboxes lacking images]]}}
 
| colspan="2" style="text-align:center; width:150px" | {{#if: {{{image|}}} | [[File:{{{image}}}|250px|{{{name|{{PAGENAME}}}}}]] | [[Category:Infoboxes lacking images]]}}
 
|-
 
|-
{{#if: {{{era|}}} | {{!}} class="infoboxlabel" style="width:90px;" | Era
+
{{#if: {{{era|}}} | {{!}} class="infoboxlabel" style="width:90px;" {{!}} Era
 
{{!}} [[{{{era}}}]] }}
 
{{!}} [[{{{era}}}]] }}
 
|-
 
|-
{{#if: {{{requirement|}}} | {{!}} class="infoboxlabel" style="width:90px;" | Requirement
+
{{#if: {{{requirement|}}} | {{!}} class="infoboxlabel" style="width:90px;" {{!}} Requirement
 
{{!}} [[{{{requirement}}}]] }}
 
{{!}} [[{{{requirement}}}]] }}
 
|-
 
|-
{{#if: {{{provides|}}} | {{!}} class="infoboxlabel" style="width:90px;" | Provides
+
{{#if: {{{provides|}}} | {{!}} class="infoboxlabel" style="width:90px;" {{!}} Provides
 
{{!}} {{{provides}}} }}
 
{{!}} {{{provides}}} }}
 
|-
 
|-
{{#if: {{{replaces|}}} | {{!}} class="infoboxlabel" style="width:90px;" | Replaces
+
{{#if: {{{replaces|}}} | {{!}} class="infoboxlabel" style="width:90px;" {{!}} Replaces
 
{{!}} {{{replaces}}} }}
 
{{!}} {{{replaces}}} }}
 
|}</includeonly><noinclude>
 
|}</includeonly><noinclude>

Latest revision as of 19:06, 5 October 2016

Template-info.png Documentation
Policy infobox
Icon Military Policies.png
Era Ancient Era
Requirement Code Of Laws
Provides Double experience for recon units.
Replaces None.

Usage

{{Policy infobox
| name = 
| icon = 
| image = 
| era = 
| requirement = 
| provides = 
| replaces = 
}}

Parameters

name
Name of the policy. Defaults to {{PAGENAME}}.
icon
Icon of the policy. Format: xxxxx.png Auto sizes to 36px in width.
image
Image of the policy. Format: xxxxx.png Auto sizes to 250px in width.
era
Era of the policy.
requirement
The technology needed for the production.
provides
What the policy provides.
replaces
What the policy replaces.