Difference between revisions of "Template:Policy infobox"

From Civilization VI Wiki
Jump to: navigation, search
(Created page with "<div class="infobox"> <div style="float:left;height:50px;position:relative;top:0px;left:0px;visibility:hidden;">.</div> <div class="icon infobox-icon">{{#if: {{{icon|}}} | {{{...")
 
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="infobox">
+
<includeonly>{| class="infobox" cellspacing="0"
  +
! colspan="2" class="infoboxname" | <span style="vertical-align:text-top;">{{{name|{{PAGENAME}}}}}</span>{{#if: {{{icon|}}} | <div style="display:inline; float:right; position:relative; right:5px; top:10px;">[[File:{{{icon}}}|36px|link=]]</div> | [[Category:Infoboxes lacking icons]] }}
<div style="float:left;height:50px;position:relative;top:0px;left:0px;visibility:hidden;">.</div>
 
<div class="icon infobox-icon">{{#if: {{{icon|}}} | {{{icon}}} | <includeonly>[[Category:Infoboxes lacking icons]]</includeonly>}}</div>
 
<p class="heading">{{PAGENAME}}</p>
 
<div class="wrapper">
 
 
{| class="wikitable charactertable" style="float:right;"
 
| colspan="3" style="text-align:center; width:128px" | {{#if: {{{image|}}} | {{{image}}} | <includeonly>[[Category:Infoboxes lacking images]]</includeonly>}}
 
 
|-
 
|-
 
| colspan="2" style="text-align:center; width:150px" | {{#if: {{{image|}}} | [[File:{{{image}}}|250px|{{{name|{{PAGENAME}}}}}]] | [[Category:Infoboxes lacking images]]}}
|colspan="1" style="background:#787878;font-size:10pt;color:#FFFFFF;font-weight:bold; width:70px"|Era
 
|colspan="2" style="width:155px"|[[{{{era}}}]]
 
 
|-
 
|-
  +
{{#if: {{{era|}}} | {{!}} class="infoboxlabel" style="width:90px;" {{!}} Era
|colspan="1" style="background:#787878;font-size:10pt;color:#FFFFFF;font-weight:bold; width:70px"|Provides
 
  +
{{!}} [[{{{era}}}]] }}
|colspan="2" style="width:155px"|{{{provides}}}
 
|}
+
|-
  +
{{#if: {{{requirement|}}} | {{!}} class="infoboxlabel" style="width:90px;" {{!}} Requirement
</div></div>
 
  +
{{!}} [[{{{requirement}}}]] }}
  +
|-
  +
{{#if: {{{provides|}}} | {{!}} class="infoboxlabel" style="width:90px;" {{!}} Provides
  +
{{!}} {{{provides}}} }}
  +
|-
  +
{{#if: {{{replaces|}}} | {{!}} class="infoboxlabel" style="width:90px;" {{!}} Replaces
  +
{{!}} {{{replaces}}} }}
  +
|}</includeonly><noinclude>
  +
{{doc}}
  +
  +
[[Category:Infobox templates]]</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.