Last modified: 2011-03-13 18:04:54 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 T10438, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 8438 - Use triple-curly as shortcut for subst
Use triple-curly as shortcut for subst
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
unspecified
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

Description Roy Smith 2006-12-30 16:21:30 UTC
In [http://bugzilla.wikimedia.org/show_bug.cgi?id=5904 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.


Navigation
Links