Template:Keystat

From OpenStreetMap Wiki
Jump to navigation Jump to search
[Edit] [Purge] Template-info.svg Template documentation

Key Satistic Template

This is a simple template, that adds a Taginfo statistic pictogramm Statistic pictogramm.png 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 Statistic pictogramm.png (without parameters, Taginfo link is added)
  • Taginfo Statistic pictogramm.png (link to german Taginfo page)
  • Statistic pictogramm.png (with empty parameter, the text is suppressed)
  • highway Statistic pictogramm.png (any text and format you like)
  • highway=* Statistic pictogramm.png (combined with the key template)
  • Key:highway Statistic pictogramm.png (combined with a wiki link)