Proposal:New tag for forced substitution of templates
Every proposal should be tied to one of the strategic priorities below.
Edit this page to help identify the priorities related to this proposal!
- Achieve continued growth in readership
- Focus on quality content
- Increase Participation
- Stabilize and improve the infrastructure
- Encourage Innovation
Summary
Add a new tag <subst> (or a magic word __SUBST__) that would force the content of the template to be substituted.
Proposal
Create a new tag <subst>, similar to the existing <noinclude>, <includeonly>, and <onlyinclude> tags (or a magic word __SUBST__), that would force the content of the template to be substituted. More precisely, the part of the template between <subst> and </subst> tags (or the whole template in the case of the magic word __SUBST__) would be substituted, even if the template is transcluded without the "subst:" prefix.
Motivation
In some cases a template is designed to be substituted rather than transcluded (see here and here). Of course, one can always use the {{subst:...}} syntax to substitute it. However, it would be nice if one could specify this within the template itself, so that users would not not have to worry about this when using the template.
Key questions
This could potentially be used for vandalism (see Bug 2003).
See also
References
- en:Help:Template
- en:Help:Substitution
- mw:Transclusion
- en:Wikipedia:Substitution
- en:Category:Templates that must be substituted
Community Discussion
Do you have a thought about this proposal? A suggestion? Discuss this proposal by going to Proposal talk:New tag for forced substitution of templates.
Want to work on this proposal?
- .. Sign your name here!