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

From blackwiki
Jump to navigation Jump to search
imported>BrownHairedGirl
m (BrownHairedGirl moved page Template:FictionSetDecade to Template:Fiction set in decade category: to clarify purpose)
imported>BrownHairedGirl
(add Category:Works about the future for current decade and later)
Line 8: Line 8:
 
[[Category:Fiction set in the {{Century name from decade or year|{{Title decade}}s}}|{{Title decade}}s]]
 
[[Category:Fiction set in the {{Century name from decade or year|{{Title decade}}s}}|{{Title decade}}s]]
 
[[Category:Fiction by decade of setting|{{Title decade}}s]]
 
[[Category:Fiction by decade of setting|{{Title decade}}s]]
 +
{{#ifexpr: {{{decade}}} >= {{#expr: 10*(floor({{CURRENTYEAR}}/10))}}<!--
 +
    -->|[[Category:Works about the future{{!}}{{{decade}}}s]]<!--
 +
-->}}
 
</includeonly><!--
 
</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

Revision as of 12:44, 11 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