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

From blackwiki
Jump to navigation Jump to search
imported>Opera hat
(hope this works...)
imported>BrownHairedGirl
(make parameterless, auto-TOC)
Line 1: Line 1:
{| class="toccolours hlist" style="float:right;"
+
<includeonly>{{#if: {{FindYDCportal|{{Title year}}}} |{{Portal|{{FindYDCportal|{{Title year}}}} }}
|'''[[:Category:Fiction set in the {{{1}}}0s|Fiction set in the {{{1}}}0s]]''':  
+
'''[[Fiction]]''' set in the year '''[[{{Title year}}]]'''.
|
+
{{Navseasoncats with decades below year|Fiction set in |{{Title year}}|}}
* {{LinkCatIfExists2|Fiction set in {{{1}}}0|{{{1}}}0}}
 
* {{LinkCatIfExists2|Fiction set in {{{1}}}1|{{{1}}}1}}
 
* {{LinkCatIfExists2|Fiction set in {{{1}}}2|{{{1}}}2}}
 
* {{LinkCatIfExists2|Fiction set in {{{1}}}3|{{{1}}}3}}
 
* {{LinkCatIfExists2|Fiction set in {{{1}}}4|{{{1}}}4}}
 
* {{LinkCatIfExists2|Fiction set in {{{1}}}5|{{{1}}}5}}
 
* {{LinkCatIfExists2|Fiction set in {{{1}}}6|{{{1}}}6}}
 
* {{LinkCatIfExists2|Fiction set in {{{1}}}7|{{{1}}}7}}
 
* {{LinkCatIfExists2|Fiction set in {{{1}}}8|{{{1}}}8}}
 
* {{LinkCatIfExists2|Fiction set in {{{1}}}9|{{{1}}}9}}
 
|}
 
[[Fiction]] set in [[{{{1}}}{{{2}}}]].
 
  
:{{#ifexist:Category:{{{1}}}{{{2}}} novels|''See also [[:Category:{{{1}}}{{{2}}} 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:{{{1}}}{{{2}}}|Fiction, {{{1}}}{{{2}}} in]]
+
[[Category:{{Title year}}|{{Title year}}]]
[[Category:Fiction set in the {{{1}}}0s|Fiction set in {{{1}}}{{{2}}}]]<noinclude>
+
[[Category:Fiction set in the {{DECADE|{{Title year}}}}|{{Title year}}]]</includeonly><!--
 +
# Note {{CatAutoTOC}} needs to be available whether or not this template page has been transcluded
 +
-->{{CatAutoTOC}}<noinclude>
 +
{{Documentation}}<!--
 +
Add categories and interwikis to the /doc subpage, please, not here!
 +
--></noinclude>
 
[[Category:Works-by-year templates]]
 
[[Category:Works-by-year templates]]
 
</noinclude>
 
</noinclude>

Revision as of 23:58, 10 March 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