Jump to content

Template:SDC location chain

From Wikimedia Commons, the free media repository
Place of creation
InfoField
Template documentation[ view · edit · history · purge ]
This documentation is transcluded from Template:SDC location chain/doc.

Creates a chain of locations using Structured data, starting with the location given in location of creation, and ending with the country. Intended for use directly beneath {{Information}}, above {{Location}} if present.

Usage

{{SDC location chain |flag= }}

For example: {{SDC location chain|flag=Ireland}}, when placed in File:Erinaceus europaeus - formicacid - 44557453.jpg, returns: Ireland Greatwood  (GreatwoodCounty KilkennyLeinsterIreland). The two main advantages of this template are:
1: It uses Structured Data, so it can be easily automated.
2: Because it uses Wikidata, it automatically translates locations into the user's language.

Template parameters

ParameterDescriptionDefaultStatus
flagname of the country which you want to display the flag ofemptyoptional

Additional information

The template is intended to be used in the following namespaces: the File namespace

The template is intended to be used by the following user groups: all users

Example

{{SDC location chain|flag=Ireland}}

renders as:

Place of creation
InfoField
Ireland Greatwood  (GreatwoodCounty KilkennyLeinsterIreland)

See also

Localization

This template is localized by utilizing Wikidata, via {{Label}} template or similar approach.