Proposal:New tag for forced substitution of templates

From Strategic Planning
Status (see valid statuses)

The status of this proposal is:
Request for Discussion / Sign-Ups

Every proposal should be tied to one of the strategic priorities below.

Edit this page to help identify the priorities related to this proposal!


  1. Achieve continued growth in readership
  2. Focus on quality content
  3. Increase Participation
  4. Stabilize and improve the infrastructure
  5. Encourage Innovation


A feature request or bug related to this proposal has been submitted to Bugzilla under ID 2003.

See Category:Proposals with Bugzilla submissions for all submitted bugs.

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

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?

  1. .. Sign your name here!