Template:SDC location chain
| Place of creation |
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:
Greatwood
(Greatwood→County Kilkenny→Leinster→Ireland). 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
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
flag | name of the country which you want to display the flag of | empty | optional | |
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 |
See also
- {{Geograph from structured data}} (where the original code for this template came from)
- {{Location}}
- {{SDC location chain/other}} – the same template, but for use in the "other fields" section of {{Information}}
Localization
This template is localized by utilizing Wikidata, via {{Label}} template or similar approach.