https://bugzilla.wikimedia.org/show_bug.cgi?id=22555
--- Comment #15 from Philippe Verdy <verd...@wanadoo.fr> 2012-03-26 15:41:27 UTC --- Concerning {{padleft:}} and {{padright:}}, if those functions have to return a string, it should still contain the nowiki markers, for the same reason as the one given for {{LC:...}}, because the output should not be reinterpreted as being using a wiki syntax, for all characters in the input that have been protected (partly) in a nowiki section. So: {{padright:|2|x<nowiki/>y}} will in a first pass (before processing parser functions) be converted into {{padright:|2|x\x7F\x7Fy}} Then its result should be: x\x7F\x7Fy which only contains the 2 visible characters x and y (as expected), plus 2 DEL markers that will be filtered out after the end of the wiki parsing and just before the HTML generation. This means that when counting the characters to output in the result of the function, you just still have to output the DEL character as counting for zero in length, but you must still ensure that they are outputed in pairs. So for: {{padright:|2|xy<nowiki/>}} will in a first pass (before processing parser functions) be converted into {{padright:|2|xy\x7F\x7F}} Then its result should be: xy (you can safely drop the rest of the filling parameter, because you have enough characters in the output, and the markers are still associated in pairs here, even if there are none of them). But for: {{padright:|2|x<nowiki>yz<nowiki>}} will in a first pass (before processing parser functions) be converted into {{padright:|2|x\x7Fyz\x7F}} Then its result should be: w\x7Fy\x2F with an additional marker added after y, to preserve the pair started before y. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l