Template:Eraicon: 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>{{#if:{{{1|}}}|<span style="margin:1px 3px;">}}{{#switch:{{lc:{{{1|}}}}}
  <title source="title1">
<!-- START NPO -->
    <default>{{PAGENAME}}</default>
|beta=[[File:Era1.png|30px|link=Beta Era]]
  </title>
|beginning=[[File:Era2.png|30px|link=Beginning Era]]
  <image source="image1">
|hype=[[File:Era3.png|30px|link=Hype Era]]
    <caption source="caption1"/>
|decline=[[File:Era4.png|30px|link=Decline Era]]
  </image>
|crepuscular=[[File:Era5.png|30px|link=Crepuscular Era]]
  <data source="row1">
<!-- END NPO -->
    <label>Label</label>
|#default={{#if:{{{1|}}}|<span class="error">Invalid era</span>|}}}}{{#if:{{{1|}}}|</span>}}</includeonly>
  </data>
  <data source="row2">
    <label>Label</label>
  </data>
</infobox>
<noinclude>
Example usage:<pre>
{{Eraicon
|title1=Example
|image1=Example
|caption1=Example
|row1=Example
|row2=Example
}}
</pre>
</noinclude>

Revision as of 21:22, 17 May 2019