Template:TagPagename/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:TagPagename. It contains usage information, categories and other content or metadata that is not part of the original template. |
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}}