Template:Keystat

From OpenStreetMap Wiki
Jump to navigation Jump to search
[Edit] [Purge] Template documentation

Key Satistic Template

This is a simple template, that adds a Taginfo statistic pictogramm and link for a given keyname.

Syntax:

{{Keystat|keyname|text|lang=}}

Parameters:

  • keyname: name of the tag key
  • text (optional): displayed text. If parameter is missing it defaults to Taginfo
  • lang (optional): language code

Examples:

{{Keystat|highway}}
{{Keystat|highway|lang=DE}}
{{Keystat|highway|}}
{{Keystat|highway|'''highway'''}}
{{Keystat|highway|{{Key|highway}}}}
{{Keystat|highway|[[Key:highway]]}}

Results in:

  • Taginfo (without parameters, Taginfo link is added)
  • Taginfo (link to german Taginfo page)
  • (with empty parameter, the text is suppressed)
  • highway (any text and format you like)
  • highway=* (combined with the key template)
  • Key:highway (combined with a wiki link)