Difference between revisions of "Template:Fiction set in decade category/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>BrownHairedGirl
m (BrownHairedGirl moved page Template:FictionSetDecade/sandbox to Template:Fiction set in decade category/sandbox: to clarify purpose)
imported>Gonnym
(synced with live)
 
Line 1: Line 1:
Works of fiction '''[[Setting (narrative)|set]]''' in the '''[[{{{1}}}{{#ifeq:{{{2}}} | 0 | {{{2}}}0–{{{1}}}{{{2}}}9{{!}}{{{1}}}}}{{{2}}}0s]]'''. {{#ifexist:Category:{{{1}}}{{{2}}}0s novels|(See [[:Category:{{{1}}}{{{2}}}0s novels]] for novels published in that decade.)}}
+
<includeonly>{{#if: {{FindYDCportal|{{Title year}}}} |{{Portal|{{FindYDCportal|{{Title decade}}s}} }} }}
 +
'''Works of [[fiction]]''' set in the decade '''[[{{Decade link|{{Title decade}}}}]]'''.
 +
{{Navseasoncats with centuries below decade}}
  
{{Navseasoncats with centuries below decade/sandbox}}
+
:{{#ifexist:Category:{{Title decade}}s novels|''See also [[:Category:{{Title decade}}s novels]] for novels published in that year''}}
  
[[Category:{{{1}}}{{{2}}}0s|Fiction]]
+
[[Category:{{Title decade}}s|Fiction]]
[[Category:Fiction set in the {{{3}}} century| {{PAGENAME}}]]
+
[[Category:Fiction set in the {{Century name from decade or year|{{Title decade}}s}}|{{Title decade}}s]]
<noinclude>
+
[[Category:Fiction by decade of setting|{{Title decade}}s]]
{{Documentation}}
+
{{#ifexpr: {{Title decade}} >= {{#expr: 10*(floor({{CURRENTYEAR}}/10))}}<!--
</noinclude>
+
    -->|[[Category:Works about the future{{!}}{{Title decade}}s]]<!--
 +
-->}}</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>

Latest revision as of 10:17, 15 March 2020

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

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

e.g. Category:Fiction set in the 1890s

Usage

  • {{Fiction set in decade category}}

No parameters needed.

See also