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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T4476, the corresponding Phabricator task for complete and up-to-date bug report information.
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)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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 
box.

Best wishes, and thanks for a great Mediawiki experience.

-DF
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.


Navigation
Links