Last modified: 2011-03-13 18:04:54 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 8438 - Use triple-curly as shortcut for subst
Use triple-curly as shortcut for subst
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2006-12-30 16:21 UTC by Roy Smith
Modified: 2011-03-13 18:04 UTC (History)
1 user (show)

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


Description Roy Smith 2006-12-30 16:21:30 UTC
In [ ER 5905] a shortcut for subst was suggested.  The ER was rejected on 
technical grounds.  I suggest an alternative syntax, using triple curly braces to indicate substitution.  Thus {{foo}} would transclude 
template:foo and {{{fooo}}} would substitute it.
Comment 1 Rob Church 2006-12-30 16:23:05 UTC
Too simple to confuse it with regular transclusion or template parameters. I
would advise against it. What's the point in implementing a shortcut for
substitution? Is "subst:" really all that difficult to type?
Comment 2 Roy Smith 2006-12-30 17:55:38 UTC
"Too difficult" is somewhat subjective, but yes, I find it a pain.  Obviously the author of 5905 did as well :-)

On the other hand, this is really just a symptom of a deeper problem -- there should not two kinds of templates to begin with.  
It's a pain to have to remember which should be subst and which shouldn't.  If there is some good technical reason why some 
templates should be transcluded and others should be substituted, that information should be kept in one place (like in the 
template itself).
Comment 3 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-12-30 23:11:28 UTC
That's a different bug.  See bug 2003.  As for the feature request, it conflicts
with parameter syntax ({{{foo}}} is the parameter named "foo" or substitution of
the template named "foo"?), and even if it didn't, it would be syntax bloat in
an already bloated syntax where we already have a perfectly acceptable and
significantly more intuitive (even if longer to type) notation.  WONTFIX.

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