Template:TagPagename
Jump to navigation
Jump to search
Key:{{{1}}}
This documentation is transcluded from Template:TagPagename/doc. (Edit | history)
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
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}}