Template:TagKey/exists/doc

From OpenStreetMap Wiki
Jump to navigation Jump to search

This is a documentation subpage for Template:TagKey/exists.
It contains usage information, categories and other content or metadata that is not part of the original template.

This is used by {{Map Features:.../tagkeylink}}.

Usage

Examples

Example wikitext Result
{{TagKey/exists|amenity}} amenity
{{TagKey/exists|amenity|the best key!}} the best key!
{{TagKey/exists|amenity:type:wikidata:num}} amenity:type:wikidata:num
{{TagKey/exists|amenity:type:wikidata:num|made-up key no one will use}} made-up key no one will use

TemplateData

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

Automatically format the name of your tag key with a wikilink to its page, if it exists.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Key1

The key to be used in tagging

Linerequired
Key text2

The text to display instead of the key itself

Linesuggested
Key page languagelang kl

The language of the page that would describe the key.

Example
fr
Linesuggested
Key page link togglelink

Set to none if you don't want to link to the key's page regardless of its existence.

Example
none
Linesuggested