https://bugzilla.wikimedia.org/show_bug.cgi?id=24284
Summary: Replace {{{0}}} with called-as name.
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Normal
Component: Templates
AssignedTo: [email protected]
ReportedBy: [email protected]
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}}"
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l