Last modified: 2005-06-21 14:14:02 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 2476 - Template auto-subst enhancement request
Template auto-subst enhancement request
Status: RESOLVED DUPLICATE of bug 2003
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2005-06-21 14:10 UTC by Robert Rohde
Modified: 2005-06-21 14:14 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Robert Rohde 2005-06-21 14:10:43 UTC
Templates have created a lot of useful new capabilities for users; however, 
their abuse has also been blamed for performance hits.  I would like to suggest 
that a feature be added allowing certain templates to default to being inline 
substituted.  This could be used for templates like {{sub|2}} = <sub>2</sub> 
where the ability to alter the template after its initial use is not really a 
virtue.  Similarly, it's use could be encouraged for templates that are 
basically just user shortcuts, such as used in sigs or in voting, where the 
template's use might want to become common but the usefulness of the 
transclusion is often low.

Deciding how or when to use such a feature would be used would need to be a 
matter of community discussion, but it could help reduce the impact of overly 
abundant uses of transclusion, and hence presumably benefit the servers (unless 
of course all of you developers have some other solution for stoping templates 
from being blamed for performance hits).

In my view, the easiest way to implement this might be to create some tag 
analogous to "__NOTOC__" that could be added to the template ("__SUBST__" 
perhaps?) and which the code would interpret to mean that {{foo}} should be 
replaced with the effect of {{subst:foo}} whenever a user enters it into an edit 

Best wishes, and thanks for a great Mediawiki experience.

Comment 1 Ævar Arnfjörð Bjarmason 2005-06-21 14:14:02 UTC

*** This bug has been marked as a duplicate of 2003 ***

Note You need to log in before you can comment on or make changes to this bug.