Jump to content

Template:PageEra: Difference between revisions

From EverQuest Legends Wiki
No edit summary
No edit summary
 
(22 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><div class="era right-float-era {{{1}}}-era">[[:Category:{{{2}}}|{{{2}}}]] <small>([[EverQuest Timeline|added {{{3}}}]])</small></div>[[Category:{{{2}}}]]</includeonly><noinclude>
<includeonly>{{#ifeq:{{#switch:{{{1}}}
This "meta-template is designed to be used by the various page-level era templates.
| classic = in
| kunark = out
| velious = out
| luclin = out
| chardok = out
| chardokrevamp = out
| fear = in
| hate = in
| hole = in
| holevp = out
| sky = in
| stonebrunt = in
| temple = in
| warrens = in
| warrensfearhaterevamp = out
| fearhaterevamp = out
| paineel = in
| epics = out
| epicquests = out
| unknown = out
| #default = out
}}|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==
Internal template used by era templates (Classic Era, Kunark Era, etc). Takes three parameters:
# CSS class prefix (e.g. "classic", "kunark", "velious")
# Category name (e.g. "Classic Era")
# Year range (e.g. "1999-2000")


Usage: <nowiki>{{PageEra|classic|Classic Era|1999-2000}}</nowiki>
Best guess is just fine.
 
Existing Eras:  
# classic = in
# kunark = out
# velious = out
# luclin = out
# chardok = out
# chardokrevamp = out
# fear = in
# hate = in
# hole = in
# holevp = out
# sky = in
# stonebrunt = in
# temple = in
# warrens = out
# warrensfearhaterevamp = out
# fearhaterevamp = out
# paineel = in
# epics = out
# epicquests = out
# unknown = out
# #default = out
 
; 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.


[[Category:Templates]]
[[Category:Templates]]
[[Category:Era Templates]]
</noinclude>
</noinclude>

Latest revision as of 11:02, 12 July 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")

Best guess is just fine.

Existing Eras:

  1. classic = in
  2. kunark = out
  3. velious = out
  4. luclin = out
  5. chardok = out
  6. chardokrevamp = out
  7. fear = in
  8. hate = in
  9. hole = in
  10. holevp = out
  11. sky = in
  12. stonebrunt = in
  13. temple = in
  14. warrens = out
  15. warrensfearhaterevamp = out
  16. fearhaterevamp = out
  17. paineel = in
  18. epics = out
  19. epicquests = out
  20. unknown = out
  21. #default = out
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.