Template:NovaEras: Difference between revisions

From EarthMC
Jump to navigation Jump to search
>PrestusHood
(Created page with "<infobox> <title source="title1"> <default>{{PAGENAME}}</default> </title> <image source="image1"> <caption source="caption1"/> </image> <data source="row1">...")
>PrestusHood
No edit summary
Line 1: Line 1:
<infobox>
<includeonly>{{#switch:{{lc:{{{type|}}}}}
  <title source="title1">
|ages=
    <default>{{PAGENAME}}</default>
<table class="infobox" style="width:{{#switch:{{{width|}}}|nation=297px|officeholder=270px|#default={{#iferror:{{#expr:{{{width}}}}}|auto|{{{width}}}px}}}}; text-align:right; background:white;"><tr>
  </title>
<td>{{Ageicon|{{{1|}}}}}{{Ageicon|{{{2|}}}}}{{Ageicon|{{{3|}}}}}{{Ageicon|{{{4|}}}}}{{Ageicon|{{{5|}}}}}{{Ageicon|{{{6|}}}}}{{Ageicon|{{{7|}}}}}{{#if:{{{8|}}}|<br />|}}{{Ageicon|{{{8|}}}}}{{Ageicon|{{{9|}}}}}{{Ageicon|{{{10|}}}}}</td>
  <image source="image1">
</tr></table>{{clear}}
    <caption source="caption1"/>
|eras=
  </image>
<table class="infobox" style="width:{{#iferror:{{#expr:{{{width}}}}}|100%|{{{width}}}px}}; text-align:{{#if:{{{7|}}}|<!--center (appears to be causing problems) -->left|left}}; background:white;"><tr>
  <data source="row1">
<td>{{Eraicon|{{{1|}}}}}{{Eraicon|{{{2|}}}}}{{Eraicon|{{{3|}}}}}{{Eraicon|{{{4|}}}}}{{Eraicon|{{{5|}}}}}{{Eraicon|{{{6|}}}}}{{Eraicon|{{{7|}}}}}{{#if:{{{8|}}}|<br />|}}{{Eraicon|{{{8|}}}}}{{Eraicon|{{{9|}}}}}{{Eraicon|{{{10|}}}}}{{Eraicon|{{{11|}}}}}{{Eraicon|{{{12|}}}}}{{Eraicon|{{{13|}}}}}{{Eraicon|{{{14|}}}}}{{#if:{{{15|}}}|<br />|}}{{Eraicon|{{{15|}}}}}{{Eraicon|{{{16|}}}}}{{Eraicon|{{{17|}}}}}</td>
    <label>Label</label>
</tr></table>
  </data>
|other=
  <data source="row2">
<table class="infobox" style="width:auto; text-align:right; background:white;"><tr><td>{{Eraicon|npo}}</td></tr></table>{{#ifeq:{{{1|}}}|clear|{{clear}}|}}
    <label>Label</label>
|#default=<span class="error">Invalid type</span>
  </data>
}}</includeonly><noinclude>{{documentation}}[[Category:Eras|{{PAGENAME}}]]</noinclude>
</infobox>
<noinclude>
Example usage:<pre>
{{Eras
|title1=Example
|image1=Example
|caption1=Example
|row1=Example
|row2=Example
}}
</pre>
</noinclude>

Revision as of 03:01, 17 May 2019

Template:NovaEras/doc