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

From blackwiki
Jump to navigation Jump to search
imported>Certes
(Document new template)
 
imported>Vanisaac
m (→‎Usage: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(3 intermediate revisions by 3 users not shown)
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}})
 
* ''3'' - The suffix which appears after the year in the category name, including leading space if any
 
* ''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
 
* ''4'' - The number of years between each entry, default 1
{{-}}
+
{{clear}}
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- ADD CATEGORIES BELOW THIS LINE -->
 
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Navigational boxes]]
 
 
[[Category:Works-by-year templates]]
 
[[Category:Works-by-year templates]]
 
+
}}</includeonly>
<!-- ADD INTERWIKIS BELOW THIS LINE -->
 
[[ar:قالب:موضوع التصنيف في سنة]]
 
[[bs:Šablon:Kat tema u godini]]
 
[[ru:Шаблон:Cat topic in year]]
 
 
 
</includeonly>
 

Latest revision as of 00:53, 24 April 2020

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