https://bugzilla.wikimedia.org/show_bug.cgi?id=22555

           Summary: padleft: padright: and nowiki do not get on (guess
                    same for all parser functions) UNIQ exposed
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: Normal
         Component: Page rendering
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: conrad.ir...@gmail.com


{{padleft:<nowiki>{{{1}}}</nowiki>|50}} -> 000000000{{{1}}} (which has length
16)
 or ->  000000000<nowiki>{{{1}}}</nowiki> (which has length 33).

(I guess the length of the UNIQ blob thingies is 41 chars)

Of course, the horrible hack of a template {{str len}} measures incorrectly (as
it is based on the same)

{{str len|{{padleft:<nowiki>muchmuchmuchmuchmuchmuchlonger</nowiki>|50}}}} ->
50

The situation is worse when a <nowiki> is used for the padding:

{{padleft:<nowiki>{{{1}}}</nowiki>|84|<nowiki>{{{1}}}</nowiki>}}
-> UNIQ6d07314c6f88f655-nowiki-00000003-QIN{{{1}}}

{{padleft:<nowiki>{{{1}}}</nowiki>|86|<nowiki>{{{1}}}</nowiki>}} 
-> {{{1}}}{{{1}}}

-- 
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

Reply via email to