Difference between revisions of "Template:Decade in country category/doc"

From blackwiki
Jump to navigation Jump to search
imported>BrownHairedGirl
(ce)
imported>BrownHairedGirl
(update)
Line 5: Line 5:
 
[[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).
 
[[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).
  
== New syntax ==
+
== Syntax ==
<pre>{{Decade in country category| | | |}}</pre>
+
<code><nowiki>{{Decade in country category| | | |}}</nowiki></code>
  
=== New-style parameters ===
+
=== Parameters ===
 
The first three parameters indicate the country and its continent(s).
 
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 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).
Line 19: Line 19:
  
 
When placed on the page [[:Category:1860s in Japan]]:
 
When placed on the page [[:Category:1860s in Japan]]:
<pre>{{Decade in country category|Japan|Asia}}</pre>
+
 
 +
<code><nowiki>{{Decade in country category|Japan|Asia}}</nowiki></code>
 
* displays the following:
 
* displays the following:
 
<blockquote>{{Decade in country category|Japan|Asia|nocat=yes|decade=1860}}</blockquote>
 
<blockquote>{{Decade in country category|Japan|Asia|nocat=yes|decade=1860}}</blockquote>
Line 25: Line 26:
 
=== Example using all parameters ===
 
=== Example using all parameters ===
 
When placed on the page [[:Category:1950s in the Socialist Republic of Macedonia]]:
 
When placed on the page [[:Category:1950s in the Socialist Republic of Macedonia]]:
<pre>{{Decade in country category|Macedonia|Europe|Yugoslavia|the Socialist Republic of }}</pre>
+
 
 +
<code><nowiki>{{Decade in country category|Macedonia|Europe|Yugoslavia|the Socialist Republic of }}</nowiki></code>
 
* displays the following:
 
* displays the following:
 
<blockquote>{{Decade in country category|Macedonia|Europe|Yugoslavia|the Socialist Republic of |nocat=yes|decade=1950}}</blockquote>
 
<blockquote>{{Decade in country category|Macedonia|Europe|Yugoslavia|the Socialist Republic of |nocat=yes|decade=1950}}</blockquote>

Revision as of 03:28, 23 September 2019

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:

Template:YearInCountryPortalBoxThis category is for topics specifically related to the decade 1860s in Japan

Template:Navseasoncats with centuries below decade


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:

Template:YearInCountryPortalBoxThis category is for topics specifically related to the decade 1950s in the Socialist Republic of Macedonia

Template:Navseasoncats with centuries below decade


See also