Difference between revisions of "Template:Cat topic year/doc"

From blackwiki
Jump to navigation Jump to search
imported>Certes
(Document new template)
 
imported>Certes
(Add parameter 4 step by number of years)
Line 4: Line 4:
  
 
== Usage ==
 
== Usage ==
  <nowiki>{{</nowiki>Cat topic year|prefix|year|suffix}}
+
  <nowiki>{{</nowiki>Cat topic year|prefix|year|suffix|step}}
{{Cat topic year|List of |1850| things}}
+
{{Cat topic year|List of |1850| things|5}}
Parameters (example shown at right):
+
Parameters (example <nowiki>{{</nowiki>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
 
* ''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={{CURRENTYEAR}})
 
* ''2'' - The primary year for the center element of the links (default={{CURRENTYEAR}})

Revision as of 21:06, 27 January 2012

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