Page MenuHomePhabricator

Default template parameters do not appear to work anymore.
Closed, DeclinedPublic

Description

Author: antibear

Description:
According to m:Template, inserting a template parameter in three braces will
pull up a default value of whatever template is contained in the center two
braces. I used this to some effect in [[Abu Ghraib prisoner abuse]]. This
feature no longer appears to work. Instead, parameters show as plain text.


Version: 1.4.x
Severity: normal
Platform: PC

Details

Reference
bz1160

Revisions and Commits

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 8:06 PM
bzimport set Reference to bz1160.
bzimport added a subscriber: Unknown Object (MLST).

rowan.collins wrote:

This was a case of exploiting a bug rather than using a deliberate feature:
undefined parameters were at one stage [mis]interpretted as nested templates, so
that a template containing "{{{1}}}" called with no unnamed arguments would
instead interpret this as "{{Template:1}}" (Or possibly
"{"+"{{Template:1}}"+"}", I forget). Some people took advantage of this as a
method of creating "default parameters", but this was only ever a hack: to use
it properly, every template parameter would have to have a globally unique name,
such as "{{{common name of plant species}}}" rather than the much more natural
"{{{common name}}}".

I'm marking this bug as WONTFIX because it's asking for a previous bug to be
reintroduced just so it can be used in what is anyway a non-ideal hack.
Meanwhile, bug 364 is a request for / discussion about a "proper" way of doing
default template parameters.

Diffusion changed the task status from Declined to Resolved by committing Unknown Object (Diffusion Commit).Mar 4 2015, 8:21 AM
Diffusion added a commit: Unknown Object (Diffusion Commit).
Aklapper changed the task status from Resolved to Declined.Mar 4 2015, 5:45 PM
Aklapper claimed this task.