Jump to content

Template:PageEra: Difference between revisions

From EverQuest Legends Wiki
No edit summary
No edit summary
Line 1: Line 1:
<includeonly><div class="right-float-era">{{#ifeq:{{#switch:{{{1}}}
<includeonly>{{#ifeq:{{#switch:{{{1}}}
| classic = in
| classic = in
| kunark = out
| kunark = out
Line 14: Line 14:
| temple = out
| temple = out
| warrens = out
| warrens = out
| warrearsfearhaterevamp = out
| warrensfearhatererevamp = out
| paineel = out
| paineel = out
| epics = out
| epics = out
Line 20: Line 20:
| unknown = out
| unknown = out
| #default = out
| #default = out
}}|in|<span class="era {{{1}}}-era">[[Category:{{{2}}}]]<small>(added {{{3}}})</small></span>|<span class="era {{{1}}}-era era-out-of-era">[[Category:{{{2}}}]]<small>(added {{{3}}})</small><br/><small>(Out of Era)</small></span>}}</div></includeonly><noinclude>
}}|in|[[Category:{{{2}}}]]|[[Category:{{{2}}}]]<div class="right-float-era" style="background-color:#cc0000;color:#ffffff;padding:4px 8px;border-radius:3px;text-align:center;font-weight:bold;">'''{{{2}}}'''<br/><small style="color:#ffcccc;">Out of Era</small></div>}}</includeonly><noinclude>
==Documentation==
==Documentation==
Internal template used by era templates (Classic Era, Kunark Era, etc). Takes three parameters:
Internal template used by era templates (Classic Era, Kunark Era, etc). Takes three parameters:
Line 26: Line 26:
# Category name (e.g. "Classic Era")
# Category name (e.g. "Classic Era")
# Year range (e.g. "1999-2000")
# Year range (e.g. "1999-2000")
; In-era eras: No badge is shown — the category is added silently.
; Out-of-era eras: A red badge shows the era name and "Out of Era".


To mark an era as in-era, change its value from <code>out</code> to <code>in</code> in the switch list above.
To mark an era as in-era, change its value from <code>out</code> to <code>in</code> in the switch list above.

Revision as of 08:43, 12 April 2026

Documentation

Internal template used by era templates (Classic Era, Kunark Era, etc). Takes three parameters:

  1. CSS class prefix (e.g. "classic", "kunark", "velious")
  2. Category name (e.g. "Classic Era")
  3. Year range (e.g. "1999-2000")
In-era eras
No badge is shown — the category is added silently.
Out-of-era eras
A red badge shows the era name and "Out of Era".

To mark an era as in-era, change its value from out to in in the switch list above.