Difference between revisions of "Template:Cat topic year"
Jump to navigation
Jump to search
imported>Certes (Remove ucfirst to stop trailing spaces from being trimmed) |
imported>WOSlinker (tidy style) |
||
| Line 1: | Line 1: | ||
<includeonly>{| class="infobox" style="font-size: 95%; width: auto;" | <includeonly>{| class="infobox" style="font-size: 95%; width: auto;" | ||
|- | |- | ||
| − | | align | + | | style="text-align:right;" | <small>'''{{{1|}}}year{{{3|}}}'''</small> |
| − | | align | + | | style="text-align:center;" | [[:Category:{{{1|}}}{{#expr:{{{2|{{CURRENTYEAR}}}}}-3*{{{4|1}}}}}{{{3|}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}-3*{{{4|1}}}}}]] [[:Category:{{{1|}}}{{#expr:{{{2|{{CURRENTYEAR}}}}}-2*{{{4|1}}}}}{{{3|}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}-2*{{{4|1}}}}}]] [[:Category:{{{1|}}}{{#expr:{{{2|{{CURRENTYEAR}}}}}-{{{4|1}}}}}{{{3|}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}-{{{4|1}}}}}]] [[:Category:{{{1|}}}{{{2|{{CURRENTYEAR}}}}}{{{3|}}}|{{{2|{{CURRENTYEAR}}}}}]] [[:Category:{{{1|}}}{{#expr:{{{2|{{CURRENTYEAR}}}}}+{{{4|1}}}}}{{{3|}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}+{{{4|1}}}}}]] [[:Category:{{{1|}}}{{#expr:{{{2|{{CURRENTYEAR}}}}}+2*{{{4|1}}}}}{{{3|}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}+2*{{{4|1}}}}}]] [[:Category:{{{1|}}}{{#expr:{{{2|{{CURRENTYEAR}}}}}+3*{{{4|1}}}}}{{{3|}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}+3*{{{4|1}}}}}]] |
|- style="background-color:#f3f3f3" | |- style="background-color:#f3f3f3" | ||
| − | | align | + | | style="text-align:right;" | <small>'''Years'''</small> |
| − | | align | + | | style="text-align:center;" | [[:Category:{{#expr:{{{2|{{CURRENTYEAR}}}}}-3*{{{4|1}}}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}-3*{{{4|1}}}}}]] [[:Category:{{#expr:{{{2|{{CURRENTYEAR}}}}}-2*{{{4|1}}}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}-2*{{{4|1}}}}}]] [[:Category:{{#expr:{{{2|{{CURRENTYEAR}}}}}-{{{4|1}}}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}-{{{4|1}}}}}]] [[:Category:{{{2|{{CURRENTYEAR}}}}}|{{{2|{{CURRENTYEAR}}}}}]] [[:Category:{{#expr:{{{2|{{CURRENTYEAR}}}}}+{{{4|1}}}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}+{{{4|1}}}}}]] [[:Category:{{#expr:{{{2|{{CURRENTYEAR}}}}}+2*{{{4|1}}}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}+2*{{{4|1}}}}}]] [[:Category:{{#expr:{{{2|{{CURRENTYEAR}}}}}+3*{{{4|1}}}}}|{{#expr:{{{2|{{CURRENTYEAR}}}}}+3*{{{4|1}}}}}]] |
|}</includeonly><noinclude>{{documentation}} | |}</includeonly><noinclude>{{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 21:09, 22 November 2014
| This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
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
| The above documentation is transcluded from Template:Cat topic year/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |