Difference between revisions of "Template:Document year"

From blackwiki
Jump to navigation Jump to search
imported>BrownHairedGirl
m (Protected "Template:Document year": Highly visible template: Used in over 200 category pages, which are wholly dependant on this template ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
imported>BrownHairedGirl
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{Works year header|WorkType=Documents|ParentType=works|portal=}}
+
<includeonly>{{Works year header|WorkType=Documents|ParentType=works|portal=Writing}}
 
{{Category see also if exists|{{Title year}} books}}<!--
 
{{Category see also if exists|{{Title year}} books}}<!--
--><!--
+
--></includeonly><!--
  # TOC, depending in category size
+
# Note {{CatAutoTOC}} needs to be available whether or not this template page has been transcluded
  # < 100 pages = no TOC
+
-->{{CatAutoTOC}}<noinclude>
  # 100–1200 pages = {{Category TOC}}
 
  # > 1200 pages = {{Large category TOC]]
 
-->{{#ifexpr: {{PAGESINCATEGORY|{{PAGENAME}}|R}} > 1200 | {{Large category TOC}} | {{#ifexpr: {{PAGESINCATEGORY|{{PAGENAME}}|R}} > 100 | {{Category TOC}}}}}}
 
</includeonly><noinclude>
 
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 12:59, 28 August 2019

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

To make a category of the form "YYYY documents"

e.g. Category:1916 documents

Usage

{{Document year}}

No parameters are needed

See also