Last modified: 2006-09-28 03:22:57 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 6496 - Initial list character in parameter not accepted unless parameter at beginning of line in template
Initial list character in parameter not accepted unless parameter at beginnin...
Status: RESOLVED INVALID
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: 2006-06-30 06:41 UTC by Brian T. N. Gunney
Modified: 2006-09-28 03:22 UTC (History)
0 users

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


Attachments

Description Brian T. N. Gunney 2006-06-30 06:41:09 UTC
When a template parameter is a list, the first item is missed because 
the "*" is misinterpreted.

define Template:PersonalData
<table>
<tr>
<td>'''Given name'''</td> <td>{{{GivenName|Unknown}}}</td>
</tr>
<tr>
<td>'''Children'''</td> <td>{{{Children|Unknown}}}</td>
</tr>
</table>

Use it by
{{PersonalData
|GivenName=Given Name
|Children=
* Child One
* Child Two}}

Child one gets an unformatted "*" instead of a bullet.
Comment 1 Platonides 2006-09-25 14:42:46 UTC
You can fix it by setting PersonalData to 

<table>
<tr>
<td>'''Given name'''</td> <td>{{{GivenName|Unknown}}}</td>
</tr>
<tr>
<td>'''Children'''</td> <td>
{{{Children|Unknown}}}</td>
</tr>
</table>
Comment 2 Brian T. N. Gunney 2006-09-27 04:54:52 UTC
The fix worked--Thank you!
However, I still think the real fix should be to make 
the first form work correctly.
Comment 3 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-09-27 06:32:24 UTC
Leading and ending whitespace is deliberately stripped from template parameters,
because otherwise everything would have to be on the same line with no spaces in
the template call, which can be ugly for big templates.  This is intended
behavior at present.  Should an exception be made if a parameter starts on its
own line in the call *and* the first character is a list character?
Comment 4 Brian T. N. Gunney 2006-09-28 03:17:07 UTC
I understand better now.  I think the exception is not 
necessary.  If modifying the template is not possible 
(Comment #1 is not implementable), putting in a 
<nowiki></nowiki> in front of the template argument 
can also move the leading white space away so it would 
not be stripped.

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


Navigation
Links