• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.55
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Decade in country category

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
Template documentation[view] [edit] [history] [purge]
This template uses Lua:
  • Module:String
WarningThis template is used on approximately 1,600 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.

Purpose

Template:Decade in country category is intended to be used on decade in country categories (for example, Category:2000s in Canada or Category:1530s in England). It creates a "timeline" style table of links to categories for adjacent decades before or after it (see example below).

Syntax

{{Decade in country category| | | |}}

Parameters

The first three parameters indicate the country and its continent(s).

  • The first parameter is the country name as indicated in the category name (but without prefixes which are unwanted for sorting, these should be added to the 4th parameter).
  • The second parameter is the continent where the country is located.
  • The third parameter is optional: if a country is located in two continents (mainly for countries in Europe and Asia, like Russia or Turkey), then a second continent can be included here. The order of the two continents is not important. This third parameter can also be used with member states of the United Kingdom (use "United Kingdom"), the former Soviet Union ("Soviet Union"), or former Yugoslavia ("Yugoslavia").
  • The 4th parameter is used for sorting of countries which start with "The" (or other prefixes like "the Socialist Republic of "): this can be left empty for most countries.

Simple example using

In most cases, only two parameters will be needed: the country and the continent.

When placed on the page Category:1860s in Japan:

{{Decade in country category|Japan|Asia}}

  • displays the following:

Lua error in mw.title.lua at line 318: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').This category is for topics specifically related to the decade 1860s in Japan

Example using all parameters

When placed on the page Category:1950s in the Socialist Republic of Macedonia:

{{Decade in country category|Macedonia|Europe|Yugoslavia|the Socialist Republic of }}

  • displays the following:

Lua error in mw.title.lua at line 318: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').This category is for topics specifically related to the decade 1950s in the Socialist Republic of Macedonia

Subtemplate

  • {{Decade in country category/core}}

See also

  • {{Year in country category}}
  • {{Navseasoncats}}
The above documentation is transcluded from Template:Decade in country category/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:Decade_in_country_category&oldid=14144"
Categories:
  • Pages with script errors
  • Templates using CatAutoTOC
  • Templates based on the String Lua module
  • Chronology category header templates
Last edited on 21 March 2020, at 11:04

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 21 March 2020, at 11:04.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop