Last modified: 2006-09-28 03:22:57 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.
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>
The fix worked--Thank you! However, I still think the real fix should be to make the first form work correctly.
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?
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.