Template:TagKey/sandbox

From OpenStreetMap Wiki
Jump to navigation Jump to search

removed:flag:type

[Edit] [Purge] Template-info.svg Template documentation

Inserts a linked reference to a key.

This template is powered by Module:Tag.

Usage

If you explicitly specify the language code in the kl (or lang) parameter, its letter case is not significant and the link with the correct language prefix for that language is generated directly to that language, using {{LangPrefix}}, even if there's still no such translation (a red link may appear in that case).

Otherwise the language to use will be determined from the current page using Module:Languages: a single existence test will be (costly) made to find a relevant page in that language, or otherwise it will default to the (unprefixed) English version of the key description page (no additional test is made to find another fallback language). No costly test occurs for linking to the English page, which is assumed to exist (a red link may appear in that case too).

TemplateData

This is the TemplateData for this template used by VisualEditor.
TemplateData for TagKey

Displays key without a value automatically linked to the appropriate wiki page

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Key1

Main key of the tag (the part before =)

Example
highway
Linerequired
Key page languagekl

Language code of the key description page

Example
de
Lineoptional
Subkeysubkey subkey1

Key part described on the same page as the main key

Lineoptional
Subkey 2subkey2

Second key part described on the same page as the main key

Lineoptional
Subkey 3subkey3

Third key part described on the same page as the main key

Lineoptional
Subkey 4subkey4

Fourth key part described on the same page as the main key

Lineoptional
Key component 2:

no description

Lineoptional
Key component 2 page languagekl:

Language code of the second key part description page

Example
de
Lineoptional
Key component 3::

Third key part described on a separate page

Lineoptional
Key component 3 page languagekl::

Language code of the third key part description page

Example
de
Lineoptional
Key component 4:::

Fourth key part described on a separate page

Lineoptional
Key component 4 page languagekl:::

Language code of the fourth key part description page

Example
de
Lineoptional
Key component 5::::

Fifth key part described on a separate page

Lineoptional
Key component 5 page languagekl::::

Language code of the fifth key part description page

Example
de
Lineoptional
Languagelang

Language code of all the link targets

Example
de
Lineoptional

See also