Template:TagPagename

From OpenStreetMap Wiki
Jump to navigation Jump to search

Key:{{{1}}}

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

This template generates the canonical wiki pagename for a given tag key or key/value pair. Language codes are incorporated as appropriate.

Note: this template does not generate links to the page in question. For this, you probably want {{Tag}}.

Usage

  • {{TagPagename|tag key}} generates the pagename for key tag key
  • {{TagPagename|tag key|tag value}} generates the pagename for key tag key and value tag value
  • {{TagPagename|tag key|lang=lang}} generates the pagename for key tag key for language lang
  • {{TagPagename|tag key|tag value|lang=lang}} generates the pagename for key tag key and value tag value for language lang

Examples

Wikitext Produces
{{TagPagename|power}} Key:power
{{TagPagename|power|generator}} Tag:power=generator
{{TagPagename|power|lang=de}} DE:Key:power
{{TagPagename|power|generator|lang=de}} DE:Tag:power=generator
{{TagPagename|power|lang=en}} Key:power
{{TagPagename|power|generator|lang=en}} Tag:power=generator
{{TagPagename|power|lang=}} Key:power
{{TagPagename|power|generator|lang=}} Tag:power=generator
!{{TagPagename|power|lang=}}! !Key:power!
!{{TagPagename|power|generator|lang=}}! !Tag:power=generator!

See also

  • template {{Tag}}