Difference between revisions of "Template:DecadeCategoryNav"

From blackwiki
Jump to navigation Jump to search
imported>BrownHairedGirl
({{Navseasoncats}})
imported>BrownHairedGirl
m (Reverted edits by BrownHairedGirl (talk) to last version by Fayenatic london)
Line 1: Line 1:
 
<includeonly>{{portal|{{#ifexist:Portal:{{{topic}}}|{{ucfirst:{{{topic}}}}}}} |Years |{{#ifexist:Portal:{{{decade|}}}s|{{{decade|}}}s }}}}
 
<includeonly>{{portal|{{#ifexist:Portal:{{{topic}}}|{{ucfirst:{{{topic}}}}}}} |Years |{{#ifexist:Portal:{{{decade|}}}s|{{{decade|}}}s }}}}
{{Navseasoncats}}
+
{| class="toc"
</includeonly><noinclude>
+
|-
 +
{{#if:{{{topic|}}}|
 +
{{!}} style="text-align:right;"  {{!}} <small>'''Decades in {{{topic}}}:''' </small>
 +
{{!}} style="text-align:center;" {{!}} {{LinkCatIfExists2|{{#expr:{{{decade}}}-30}}s in {{{topic}}}|{{#expr:{{{decade}}}-30}}s}} • {{LinkCatIfExists2|{{#expr:{{{decade}}}-20}}s in {{{topic}}}|{{#expr:{{{decade}}}-20}}s}} • {{LinkCatIfExists2|{{#expr:{{{decade}}}-10}}s in {{{topic}}}|{{#expr:{{{decade}}}-10}}s}} • {{LinkCatIfExists2|{{{decade}}}s in {{{topic}}}|{{{decade}}}s}} • {{LinkCatIfExists2|{{#expr:{{{decade}}}+10}}s in {{{topic}}}|{{#expr:{{{decade}}}+10}}s}} • {{LinkCatIfExists2|{{#expr:{{{decade}}}+20}}s in {{{topic}}}|{{#expr:{{{decade}}}+20}}s}}}} • {{LinkCatIfExists2|{{#expr:{{{decade}}}+30}}s in {{{topic}}}|{{#expr:{{{decade}}}+30}}s}}
 +
|- style="background-color:#f3f3f3"
 +
| style="text-align:right;" | <small>'''[[List of decades|Decades:]]''' </small>
 +
| style="text-align:center;" | {{LinkCatIfExists2|{{#expr:{{{decade}}}-30}}s|{{#expr:{{{decade}}}-30}}s}} • {{LinkCatIfExists2|{{#expr:{{{decade}}}-20}}s|{{#expr:{{{decade}}}-20}}s}} • {{LinkCatIfExists2|{{#expr:{{{decade}}}-10}}s|{{#expr:{{{decade}}}-10}}s}} • {{LinkCatIfExists2|{{{decade}}}s|{{{decade}}}s}} • {{LinkCatIfExists2|{{#expr:{{{decade}}}+10}}s|{{#expr:{{{decade}}}+10}}s}} • {{LinkCatIfExists2|{{#expr:{{{decade}}}+20}}s|{{#expr:{{{decade}}}+20}}s}} • {{LinkCatIfExists2|{{#expr:{{{decade}}}+30}}s|{{#expr:{{{decade}}}+30}}s}}
 +
|}</includeonly><noinclude>
 
{{esoteric}}
 
{{esoteric}}
  

Revision as of 14:59, 27 February 2019

Usage

{{DecadeCategoryNav|decade=|topic=}}

Parameters:

  • decade - The first year of the decade to form the "center" of the navigation (e.g. 1980)
  • topic - (optional) The topic for the "DECADE in TOPIC" line (e.g. rail transport)

Example:

{{DecadeCategoryNav|decade=1980|topic=rail transport}}

results in:

Decades in rail transport: 1950s1960s • 1970s1980s1990s2000s2010s
Decades: 1950s1960s1970s1980s1990s2000s2010s