Civilization VI Wiki
(Adds flex-item class. Using Modernizr feature-detection should allow this to use flexboxes when supported by browser, and fall back when not.)
Lozenged (talk | contribs)
m (Changed class name to match CSS)
 
Line 1: Line 1:
<includeonly><div class="flex-item" style="display:inline-block; margin:2px; text-align:center; vertical-align:top;">[[File:{{{1}}}|92px|link={{{2}}}|{{{2}}}]]<br><span style="font-size:0.8em; line-height:0.8em;">[[{{{2}}}]]</span><br>[[{{{3}}}]]</div></includeonly><noinclude>{{clear}}{{doc}}
+
<includeonly><div class="flex-item-leader" style="display:inline-block; margin:2px; text-align:center; vertical-align:top;">[[File:{{{1}}}|92px|link={{{2}}}|{{{2}}}]]<br><span style="font-size:0.8em; line-height:0.8em;">[[{{{2}}}]]</span><br>[[{{{3}}}]]</div></includeonly><noinclude>{{clear}}{{doc}}
   
 
[[Category:Formatting templates|{{PAGENAME}}]]
 
[[Category:Formatting templates|{{PAGENAME}}]]

Latest revision as of 16:16, 19 October 2016

Template-info.png Documentation

This template creates a main page icon with a text link underneath. As the page width narrows, a group of these icons will rearrange themselves onto as many lines as necessary. The group can be centered by enclosing the template calls in <center> ... </center> tags.

Example

<center>

{{FP Characters|Character Montezuma.png|Montezuma|Aztec}}
{{FP Characters|Character Teddy.png|Teddy Roosevelt|America}}
{{FP Characters|Character Qin.png|Qin Shi Huang|China}}
{{FP Characters|Character Cleopatra.png|Cleopatra|Egypt}}

</center>

Generates: