Roovet Articles

Category:Country data templates


This category contains reusable country and territory data templates used by the Roovet Articles flag-template system.

Pages in this category are normally named:

Template:Country data COUNTRY

Each country-data template stores information such as:

  • the canonical country or territory article title;
  • a shorter display name;
  • the default flag filename;
  • historical or alternate flag variants;
  • military, naval or service flags;
  • variant-specific article links;
  • default image-border behavior;
  • country abbreviations and redirect aliases; and
  • values passed to flag-rendering templates.

These templates are data containers. They are not normally transcluded directly into articles.

Basic structure

A minimal country-data template may use:

{{safesubst:{{{1|Country showdata}}}
|alias=Exampleland
|shortname alias=Exampleland
|flag alias=Flag of Exampleland.svg
|flag link=Flag of Exampleland
|border=border
|size={{{size|}}}
|name={{{name|}}}
|altlink={{{altlink|}}}
|altvar={{{altvar|}}}
|variant={{{variant|}}}
<noinclude>
|redir1=EX
</noinclude>
}}

When the country-data page is viewed directly, its stored values are passed to Template:Country showdata for documentation.

When called by another compatible template, the same values are passed to that template's renderer.

Naming convention

Canonical country-data templates should use the complete commonly recognized name:

Template:Country data United States
Template:Country data Canada
Template:Country data France

Abbreviations and alternate names should normally redirect to the canonical data page:

Template:Country data USA
Template:Country data US

Redirect source:

#REDIRECT [[Template:Country data United States]]

Avoid maintaining separate duplicate data pages for abbreviations unless the entities genuinely require different information.

Required parameters

Every country-data template should normally define:

`alias`
The canonical Roovet Articles page for the country, territory or entity.
`flag alias`
The default flag image filename without the `File:` prefix.

Most templates should also define:

`shortname alias`
A concise display name when it differs from the canonical article title.
`flag link`
The article describing the flag.
`border`
The default image-border behavior, normally `border` or blank.

Flag variants

Historical and alternate flags are stored with parameters such as:

|flag alias-1777=Flag of Exampleland (1777–1800).svg
|flag alias-1900=Flag of Exampleland (1900–1950).svg
|flag alias-naval=Naval ensign of Exampleland.svg

Each public variant should also be listed inside the template's `noinclude` section:

<noinclude>
|var1=1777
|var2=1900
|var3=naval
</noinclude>

This allows Template:Country showdata to document the available variants.

A variant may also define a custom article target:

|link alias-1777=Historical flags of Exampleland

or custom border behavior:

|border-1777=

Redirect aliases

Redirect aliases are documented using parameters such as:

<noinclude>
|redir1=EX
|redir2=Example
|redir3=Republic of Exampleland
</noinclude>

Each listed alias should correspond to a real redirect in the `Template:Country data` naming system.

Using country data

Country-data templates are normally accessed through public-facing templates such as:

{{Flag country|United States}}

or:

{{Flag country
|United States
|variant=1777
|name=United States in 1777
}}

The public template retrieves its values from:

Template:Country data United States

and passes them to Template:Flag country/core for rendering.

Maintenance guidance

Editors maintaining country-data templates should:

  • use the canonical Roovet Articles country or territory page in `alias`;
  • use local or shared-repository filenames without the `File:` prefix;
  • verify that every listed flag file exists;
  • document every supported public variant;
  • create redirects for commonly used abbreviations;
  • avoid duplicating country data across multiple templates;
  • preserve compatibility with Template:Country showdata;
  • test output through Template:Flag country;
  • check historical flag dates and descriptions carefully;
  • avoid using disputed political labels without explanatory article context;
  • keep article prose and references outside the data template;
  • preview changes before saving; and
  • check pages using the template before making breaking changes.

Changes to a widely used country-data template can affect many articles at once.

Related pages

Pages in category "Country data templates"

The following 200 pages are in this category, out of 203 total.

(previous page) (next page)

C

(previous page) (next page)