Difference between revisions of "Template:Fiction set in year category"

From blackwiki
Jump to navigation Jump to search
imported>BrownHairedGirl
(make parameterless, auto-TOC)
imported>BrownHairedGirl
({{Navseasoncats with decades below year}} no longer needs any parameters)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if: {{FindYDCportal|{{Title year}}}} |{{Portal|{{FindYDCportal|{{Title year}}}} }}
+
<includeonly>{{#if: {{FindYDCportal|{{Title year}}}} |{{Portal|{{FindYDCportal|{{Title year}}}} }} }}
'''[[Fiction]]''' set in the year '''[[{{Title year}}]]'''.
+
'''Works of [[fiction]]''' set in the year '''[[{{Title year}}]]'''.
{{Navseasoncats with decades below year|Fiction set in |{{Title year}}|}}
+
{{Navseasoncats with decades below year}}
  
 
:{{#ifexist:Category:{{Title year}} novels|''See also [[:Category:{{Title year}} novels]] for novels published in that year''}}
 
:{{#ifexist:Category:{{Title year}} novels|''See also [[:Category:{{Title year}} novels]] for novels published in that year''}}
  
[[Category:{{Title year}}|{{Title year}}]]
+
[[Category:{{Title year}}|Fiction]]
[[Category:Fiction set in the {{DECADE|{{Title year}}}}|{{Title year}}]]</includeonly><!--
+
[[Category:Fiction set in the {{DECADE|{{Title year}}}}|{{Title year}}]]
 +
[[Category:Fiction by year of setting|{{Title year}}]]
 +
</includeonly><!--
 
  # Note {{CatAutoTOC}} needs to be available whether or not this template page has been transcluded
 
  # Note {{CatAutoTOC}} needs to be available whether or not this template page has been transcluded
 
-->{{CatAutoTOC}}<noinclude>
 
-->{{CatAutoTOC}}<noinclude>
Line 12: Line 14:
 
Add categories and interwikis to the /doc subpage, please, not here!
 
Add categories and interwikis to the /doc subpage, please, not here!
 
--></noinclude>
 
--></noinclude>
[[Category:Works-by-year templates]]
 
</noinclude>
 

Latest revision as of 17:00, 19 August 2020

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

Creates a category of the form "Fiction set in YYYY", where YYYY is a 4-digit year.

e.g. Category:Fiction set in 1937

Usage

  • {{Fiction set in year category}}

No parameters needed.

See also