Template:ErasNavigation: Difference between revisions

From EarthMC
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
{|style="color: white; {{#ifexpr: 15 < {{{1}}} |background:#A50E61|background:#375f67}}; margin:0 auto 1em auto; padding:0 2px; border:1px solid #666666; -moz-border-radius:10px; border-radius:10px; text-align:center; width:100%;"
{|style="color: white; {{#ifexpr: 15 < {{{1}}} |background:#A50E61|background:#375f67}}; margin:0 auto 1em auto; padding:0 2px; border:1px solid #666666; border-radius:10px; text-align:center; width:100%;"
|-
|-
|<table border="0" align="center"><tr>
|<table border="0" align="center"><tr>
Line 7: Line 7:
<td><center>
<td><center>
{{EraData|nova|name|{{ #expr: {{{1}}}-1 }}}}
{{EraData|nova|name|{{ #expr: {{{1}}}-1 }}}}
{{#ifexpr: {{{1}}} > 0 |
[[File:
[[File:
{{#ifexpr: 15 < {{#expr: {{{1}}}-1 }}  
{{#switch: {{#expr: {{{1}}}-1 }}
  | Era{{ #expr: {{{1}}}-1}}_1.png
  | 16 = Era16_1.png
  | Era{{ #expr: {{{1}}}-1}}.png
| 17 = Era17_1.png
| 18 = Era18_1.png
| 19 = Era19_1.png
| 20 = Era20_1.png
  | #default = Era{{#expr: {{{1}}}-1}}.png
}}
}}
|center|frameless|40px|link={{EraData|nova|link|{{ #expr: {{{1}}}-1 }}}}]]
|center|frameless|40px|link={{EraData|nova|link|{{ #expr: {{{1}}}-1 }}}}]]
}}
</center></td>
</center></td>


Line 22: Line 28:
{{EraData|nova|years|{{{1}}}}}
{{EraData|nova|years|{{{1}}}}}
[[File:
[[File:
{{#ifexpr: 15 < {{{1}}}  
{{#switch: {{{1}}}
  | Era{{{1}}}_1.png
  | 16 = Era16_1.png
  | Era{{{1}}}.png
| 17 = Era17_1.png
| 18 = Era18_1.png
| 19 = Era19_1.png
| 20 = Era20_1.png
  | #default = Era{{{1}}}.png
}}
}}
|center|frameless|70px]]
|center|frameless|70px]]
Line 34: Line 44:
<!-- NEXT ERA -->
<!-- NEXT ERA -->
<td><center>
<td><center>
{{#ifexpr: 19 < {{{1}}} | | {{EraData|nova|name|{{ #expr: {{{1}}}+1 }}}} }}
{{#ifexpr: 19 < {{{1}}} | |
{{EraData|nova|name|{{ #expr: {{{1}}}+1 }}}}
[[File:
[[File:
{{#ifexpr: 15 < {{#expr: {{{1}}}+1 }}
{{#switch: {{#expr: {{{1}}}+1 }}
  | Era{{ #expr: {{{1}}}+1}}_1.png
  | 16 = Era16_1.png
  | Era{{ #expr: {{{1}}}+1}}.png
| 17 = Era17_1.png
| 18 = Era18_1.png
| 19 = Era19_1.png
| 20 = Era20_1.png
  | #default = Era{{#expr: {{{1}}}+1}}.png
}}
}}
|center|frameless|40px|link={{EraData|nova|link|{{ #expr: {{{1}}}+1 }}}}]]
|center|frameless|40px|link={{EraData|nova|link|{{ #expr: {{{1}}}+1 }}}}]]
}}
</center></td>
</center></td>


Line 46: Line 62:
|}
|}
</includeonly>
</includeonly>
<noinclude>
{{ErasNavigation|1}}
This is a template for eras in Terra Nova.
== How add an era on this template ==
Go on the template editor and use the ''Find tool'' (<code>Ctrl+F</code>) to search '''''<code>Q=</code>''''' . All places where the template needs to get edited will get highlighted (total of 7 results: 6 of them are in the code and 1 of them is part of this description). '''DO NOT remove the ''Q'' lines''' in any case, just add a new line above the Q line. Write the new era number and fill in the info (name and dates) where required.
Then, search for '''''<code>transparentblank</code>''''' and add 1 to the number right before that word.
The era icons have to be 400x400 px and match the name of ''EraX.png'', where X is the number matching the era number. (example: ''Era1.png'')
'''<u>NOTE: All eras have to be approved by the Wiki staff. Join our Discord server [https://discord.gg/8u75y6D here].</u>'''
</noinclude>

Revision as of 10:38, 17 February 2026