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

From blackwiki
Jump to navigation Jump to search
imported>BrownHairedGirl
(add Category:Works about the future for current decade and later)
imported>BrownHairedGirl
(fix)
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))}}<!--
+
{{#ifexpr: {{Title decade}} >= {{#expr: 10*(floor({{CURRENTYEAR}}/10))}}<!--
     -->|[[Category:Works about the future{{!}}{{{decade}}}s]]<!--
+
     -->|[[Category:Works about the future{{!}}{{Title 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
 
-->{{CatAutoTOC}}<noinclude>
 
-->{{CatAutoTOC}}<noinclude>

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