Author: darklama
Description:
Given Template A:
My name is {{PAGENAME:{{{0}}}}}.
Given Template B:
#redirect [[Template:A]]
Now somewhere else add:
{{A}} {{B}}
The result should be:
My name is A. My Name is B.
Having this functionality available could allow at least two features:
- Templates that do different things depending on how its called. This could eliminate templates which are mostly the same, and the need to have some core/base/parent type templates. Perhaps more importantly this could reduce hitting the max number of included templates limit by providing an alternative way to implement some template functionality.
- Templates that explain how to use them could use this to show the right name depending on whether viewed directly or through a redirect. Like templates with a long name and a short name could use "Usage: {{[[{{{0}}}|{{PAGENAME:{{{0}}}}}]]|foobar}}"
Version: unspecified
Severity: enhancement