Template:Tcl
This template resolves page names as they would be handled by MediaWiki's template-transclusion process. It thereby removes ambiguity when doing other things with template pagenames, e.g. linking.
Usage
{{tcl| Template:Foo }}
→ Template:Foo{{tcl| Category:Foo }}
→ Category:Foo{{tcl| Foo }}
→ Template:Foo{{tcl| :Foo }}
→ Foo{{tcl| :File:Foo }}
→ File:Foo