Last modified: 2011-07-17 03:03:52 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 T27453, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 25453 - Special default parameter value issue when embedding
Special default parameter value issue when embedding
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
1.15.x
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-10-08 11:20 UTC by Jeahra
Modified: 2011-07-17 03:03 UTC (History)
2 users (show)

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


Attachments

Description Jeahra 2010-10-08 11:20:11 UTC
When I use {{{parametername|default value}}} in a template, but with a question mark "?" as the default value then it only works in that template - and not when embedding it inside another template.

I assume ""(blank) is returned because it is stripped due to being a special character.
Nonetheless do I wish to use a question mark as a value, as "N/A" could be an actual value and "No information" is too long.

Using a template to insert only a question mark showed same behavior as with a parameter - eg not working when embedded.
[code]
Template:Qm
<includeonly>?</includeonly>
[/code]
Comment 1 Bawolff (Brian Wolff) 2010-10-08 23:42:39 UTC
I don't think I understand what you're trying to report. Here's what I think you're saying, please correct me if I am wrong:

template A contains
{{{foo|?}}}

Template B contains
{{A}}

Output of {{B}} on a page gives the empty string, when you expect it to give a "?".


Is that what you're reporting? If it is, that definitely should not happen.
Comment 2 Jeahra 2010-10-09 08:39:54 UTC
Yes, you understood it correctly.

Same behavior also applies to [[File:Placeholder|200px|right]], but that might not be related. On Template B no empty space box nor the button, "Add a photo", is present.
Comment 3 Dan Collins 2011-07-17 03:03:52 UTC
Tested this in my userspace (type {{User:ST47/A}} on enwiki) output is '?'.

Closing fixed.

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


Navigation
Links