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

From blackwiki
Jump to navigation Jump to search
imported>BrownHairedGirl
m (BrownHairedGirl moved page Template:FictionSetDecade/doc to Template:Fiction set in decade category/doc: to clarify purpose)
imported>BrownHairedGirl
(now parameterless)
 
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
== Usage ==
+
Creates a category of the form "Fiction set in the YYY0s", where YYY0s is a 4-digit decade.
  
'''{{tlx|FictionSetDecade| ''centuryyear '' | ''decadedigit '' | ''centuryname '' }}''' where:
+
e.g. [[:Category:Fiction set in the 1890s]]
:* '''''centuryyear''''' is the two-digit century, like '''18''' for 1800 to 1899, '''19''' for 1900-1999, '''20''' for 2000-2099 etc.
 
:* '''''decadedigit''''' is the single digit decade, e.g. 5 for the years 50-59 in the above century year.
 
:* '''''centuryname''''' is the equivalent name of that century, such as '''19th''' for the period 1801-1900 (or 1800-1899 depending on your opinion as to whether year '0' is part of that century), '''20th''' for 1900-1999 or 1901-2000, '''21st''' for 2000-2099 or 2001-2100 etc.
 
  
=== Example ===
+
== Usage ==
 +
* <code><nowiki>{{Fiction set in decade category}}</nowiki></code>
  
'''<code><nowiki>{{</nowiki>FictionSetDecade|14|3|15th}}</code>''' would generate the text "'''Fiction set in the 1430s'''", a reference box referring to '''<nowiki>[[</nowiki>Category:15th century fiction]]''', and links for ''1400s in fiction'', 1410s, etc. through ''1490s in fiction'', along with a category for 1430s in fiction.
+
No parameters needed.
  
 
== See also ==
 
== See also ==
* {{tl|Navseasoncats with centuries below decade}}
+
* [[Template:Fiction set in year category]]
* {{tl|Navseasoncats with decades below year}}
 
* {{tl|Navseasoncats}}
 
 
 
  
 
<includeonly>{{sandbox other||
 
<includeonly>{{sandbox other||
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
{{DEFAULTSORT:FictionSetDecade}}
 
 
[[Category:Fiction templates]]
 
[[Category:Fiction templates]]
 
[[Category:Works-by-year templates]]
 
[[Category:Works-by-year templates]]
 
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 11:26, 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