Difference between revisions of "Template:Fiction set in decade category"
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: {{ | + | {{#ifexpr: {{Title decade}} >= {{#expr: 10*(floor({{CURRENTYEAR}}/10))}}<!-- |
| − | -->|[[Category:Works about the future{{!}}{{ | + | -->|[[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
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
| The above documentation is transcluded from Template:Fiction set in decade category/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |