Template:PageEra: Difference between revisions
No edit summary |
No edit summary |
||
| (9 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly | <includeonly>{{#ifeq:{{#switch:{{{1}}} | ||
| classic = in | | classic = in | ||
| kunark = out | | kunark = out | ||
| Line 6: | Line 6: | ||
| chardok = out | | chardok = out | ||
| chardokrevamp = out | | chardokrevamp = out | ||
| fear = | | fear = in | ||
| hate = | | hate = in | ||
| hole = | | hole = in | ||
| holevp = out | | holevp = out | ||
| sky = | | sky = in | ||
| stonebrunt = | | stonebrunt = in | ||
| temple = | | temple = in | ||
| warrens = out | | warrens = in | ||
| | | warrensfearhaterevamp = out | ||
| paineel = | | fearhaterevamp = out | ||
| paineel = in | |||
| epics = out | | epics = out | ||
| epicquests = out | | epicquests = out | ||
| unknown = out | | unknown = out | ||
| #default = out | | #default = out | ||
}}|in| | }}|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 27: | ||
# Category name (e.g. "Classic Era") | # Category name (e.g. "Classic Era") | ||
# Year range (e.g. "1999-2000") | # Year range (e.g. "1999-2000") | ||
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. | To mark an era as in-era, change its value from <code>out</code> to <code>in</code> in the switch list above. | ||
Latest revision as of 11:02, 12 July 2026
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")
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 out to in in the switch list above.