Template:ErasNavigation: Difference between revisions
Jump to navigation
Jump to search
(Remove weird background from era images.) |
(Split data to a different template) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{|style="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; 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%;" | ||
|- | |- | ||
|<table border="0" align="center"> | |<table border="0" align="center"><tr> | ||
<tr><td><center>{{ | <td><center> | ||
{{NovaEraData|name|{{ #expr: {{{1}}}-1 }}}} | |||
[[File:Era{{ #expr: {{{1}}}-1}}.png|center|frameless|40px|link={{NovaEraData|link|{{ #expr: {{{1}}}-1 }}]] | |||
</center></td> | |||
<td>{{#ifeq: {{{1}}} | 0 | | '''⇦''' }} | |||
</td> | |||
<td><center> | |||
{{NovaEraData|date|{{{1}}}}}<br />{{NovaEraData|years|{{{1}}}}} | |||
}} | |||
[[File:Era{{ #expr: {{{1}}}-1}}.png|center|frameless|40px|link= | |||
}}]] | |||
</center></td><td>{{#ifeq: {{{1}}} | 0 | | '''⇦''' }} | |||
</td><td><center>{{ | |||
|1 | |||
}} | |||
[[File:Era{{ #expr: {{{1}}}}}.png|center|frameless|70px]] | [[File:Era{{ #expr: {{{1}}}}}.png|center|frameless|70px]] | ||
'''{{ | '''{{NovaEraData|name|{{{1}}}}}''' | ||
</center></td> | |||
<td>'''⇨'''</td> | |||
<td><center> | |||
{{NovaEraData|name|{{ #expr: {{{1}}}+1 }}}} | |||
[[File:{{#ifeq: {{{1}}} | 15 | transparentblank | Era{{ #expr: {{{1}}}+1}}}}.png|center|frameless|40px|link={{NovaEraData|link|{{ #expr: {{{1}}}-1 }}}}]] | |||
</center></td> | |||
</tr></table> | |||
}}''' | |||
</center></td><td>'''⇨''' | |||
</td><td><center> | |||
}} | |||
[[File:{{#ifeq: {{{1}}} | | |||
}}]]</center></td></tr></table> | |||
|} | |} | ||
</includeonly> | </includeonly> |
Revision as of 00:38, 4 July 2023
|
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 (Ctrl+F
) to search Q=
. 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 transparentblank
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)
NOTE: All eras have to be approved by the Wiki staff. Join our Discord server here.