Difference between revisions of "Template:Cat topic year"

From blackwiki
Jump to navigation Jump to search
imported>Certes
(Remove ucfirst to stop trailing spaces from being trimmed)
imported>Primefac
m (Protected "Template:Cat topic year": semi-protection of high-usage templates to combat systematic vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access] (indefinite)))
 
(One intermediate revision by one other user not shown)
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>'''{{{1|}}}year{{{3|}}}'''</small>
+
| style="text-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}}}}}]]
+
| style="text-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"
| align=right | <small>'''Years'''</small>
+
| style="text-align:right;" | <small>'''Years'''</small>
| align=center | [[:Category:{{#expr:{{{2|{{CURRENTYEAR}}}}}-3*{{{4|1}}}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}-3*{{{4|1}}}}}]]&nbsp;[[:Category:{{#expr:{{{2|{{CURRENTYEAR}}}}}-2*{{{4|1}}}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}-2*{{{4|1}}}}}]]&nbsp;[[:Category:{{#expr:{{{2|{{CURRENTYEAR}}}}}-{{{4|1}}}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}-{{{4|1}}}}}]]&nbsp;[[:Category:{{{2|{{CURRENTYEAR}}}}}|{{{2|{{CURRENTYEAR}}}}}]]&nbsp;[[:Category:{{#expr:{{{2|{{CURRENTYEAR}}}}}+{{{4|1}}}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}+{{{4|1}}}}}]]&nbsp;[[:Category:{{#expr:{{{2|{{CURRENTYEAR}}}}}+2*{{{4|1}}}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}+2*{{{4|1}}}}}]]&nbsp;[[:Category:{{#expr:{{{2|{{CURRENTYEAR}}}}}+3*{{{4|1}}}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}+3*{{{4|1}}}}}]]
+
| style="text-align:center;" | [[:Category:{{#expr:{{{2|{{CURRENTYEAR}}}}}-3*{{{4|1}}}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}-3*{{{4|1}}}}}]]&nbsp;[[:Category:{{#expr:{{{2|{{CURRENTYEAR}}}}}-2*{{{4|1}}}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}-2*{{{4|1}}}}}]]&nbsp;[[:Category:{{#expr:{{{2|{{CURRENTYEAR}}}}}-{{{4|1}}}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}-{{{4|1}}}}}]]&nbsp;[[:Category:{{{2|{{CURRENTYEAR}}}}}|{{{2|{{CURRENTYEAR}}}}}]]&nbsp;[[:Category:{{#expr:{{{2|{{CURRENTYEAR}}}}}+{{{4|1}}}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}+{{{4|1}}}}}]]&nbsp;[[:Category:{{#expr:{{{2|{{CURRENTYEAR}}}}}+2*{{{4|1}}}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}+2*{{{4|1}}}}}]]&nbsp;[[:Category:{{#expr:{{{2|{{CURRENTYEAR}}}}}+3*{{{4|1}}}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}+3*{{{4|1}}}}}]]
 
|}</includeonly><noinclude>{{documentation}}
 
|}</includeonly><noinclude>{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 00:28, 19 January 2018

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