Difference between revisions of "Template:Cat topic year"

From blackwiki
Jump to navigation Jump to search
imported>Certes
(Add parameter 4 step by number of years; remove unwanted space around year row heading)
imported>Certes
(Remove ucfirst to stop trailing spaces from being trimmed)
Line 1: Line 1:
 
<includeonly>{| class="infobox" style="font-size: 95%; width: auto;"
 
<includeonly>{| class="infobox" style="font-size: 95%; width: auto;"
 
|-
 
|-
| align=right  | <small>'''{{ucfirst:{{{1|}}}}}year{{{3|}}}'''</small>
+
| align=right  | <small>'''{{{1|}}}year{{{3|}}}'''</small>
 
| align=center | [[:Category:{{{1|}}}{{#expr:{{{2|{{CURRENTYEAR}}}}}-3*{{{4|1}}}}}{{{3|}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}-3*{{{4|1}}}}}]]&nbsp;[[:Category:{{{1|}}}{{#expr:{{{2|{{CURRENTYEAR}}}}}-2*{{{4|1}}}}}{{{3|}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}-2*{{{4|1}}}}}]]&nbsp;[[:Category:{{{1|}}}{{#expr:{{{2|{{CURRENTYEAR}}}}}-{{{4|1}}}}}{{{3|}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}-{{{4|1}}}}}]]&nbsp;[[:Category:{{{1|}}}{{{2|{{CURRENTYEAR}}}}}{{{3|}}}|{{{2|{{CURRENTYEAR}}}}}]]&nbsp;[[:Category:{{{1|}}}{{#expr:{{{2|{{CURRENTYEAR}}}}}+{{{4|1}}}}}{{{3|}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}+{{{4|1}}}}}]]&nbsp;[[:Category:{{{1|}}}{{#expr:{{{2|{{CURRENTYEAR}}}}}+2*{{{4|1}}}}}{{{3|}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}+2*{{{4|1}}}}}]]&nbsp;[[:Category:{{{1|}}}{{#expr:{{{2|{{CURRENTYEAR}}}}}+3*{{{4|1}}}}}{{{3|}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}+3*{{{4|1}}}}}]]
 
| align=center | [[:Category:{{{1|}}}{{#expr:{{{2|{{CURRENTYEAR}}}}}-3*{{{4|1}}}}}{{{3|}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}-3*{{{4|1}}}}}]]&nbsp;[[:Category:{{{1|}}}{{#expr:{{{2|{{CURRENTYEAR}}}}}-2*{{{4|1}}}}}{{{3|}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}-2*{{{4|1}}}}}]]&nbsp;[[:Category:{{{1|}}}{{#expr:{{{2|{{CURRENTYEAR}}}}}-{{{4|1}}}}}{{{3|}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}-{{{4|1}}}}}]]&nbsp;[[:Category:{{{1|}}}{{{2|{{CURRENTYEAR}}}}}{{{3|}}}|{{{2|{{CURRENTYEAR}}}}}]]&nbsp;[[:Category:{{{1|}}}{{#expr:{{{2|{{CURRENTYEAR}}}}}+{{{4|1}}}}}{{{3|}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}+{{{4|1}}}}}]]&nbsp;[[:Category:{{{1|}}}{{#expr:{{{2|{{CURRENTYEAR}}}}}+2*{{{4|1}}}}}{{{3|}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}+2*{{{4|1}}}}}]]&nbsp;[[:Category:{{{1|}}}{{#expr:{{{2|{{CURRENTYEAR}}}}}+3*{{{4|1}}}}}{{{3|}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}+3*{{{4|1}}}}}]]
 
|- style="background-color:#f3f3f3"
 
|- style="background-color:#f3f3f3"

Revision as of 21:15, 27 January 2012

Template documentation[view] [edit] [history] [purge]


Usage

{{Cat topic year|prefix|year|suffix|step}}
List of year things 1835 1840 1845 1850 1855 1860 1865
Years 1835 1840 1845 1850 1855 1860 1865

Parameters (example {{Cat topic year|List of |1850| things|5}} shown at right):

  • 1 - The prefix which appears before the year in the category name, including trailing space if any
  • 2 - The primary year for the center element of the links (default=2025)
  • 3 - The suffix which appears after the year in the category name, including leading space if any
  • 4 - The number of years between each entry, default 1