Last modified: 2011-04-14 15:12:02 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 T22076, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 20076 - Template Parser does not treat an Ideographic space 3000 as whitespace
Template Parser does not treat an Ideographic space 3000 as whitespace
Status: NEW
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
1.16.x
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-08-05 12:49 UTC by alex
Modified: 2011-04-14 15:12 UTC (History)
2 users (show)

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


Attachments

Description alex 2009-08-05 12:49:01 UTC
According to http://www.mediawiki.org/wiki/Help:Parser_functions_in_templates 

        {{#if: {{{1|}}} | Parameter 1 is defined and non-null/non-empty. | Parameter 1 is not defined, or is defined but null. It contains only empty string(s) or breaking space(s) etc.}}

    Result
        Parameter 1 is not defined, or is defined but null. It contains only empty string(s) or breaking space(s) etc.

But if Parameter 1 contains an Ideographic space 3000 rather an ASCII space 20 then it is treated as non-null.

This affects users editing a Latin based Wikipedia (i.e.. English) with a Asian based computer (i.e.. Japanese).

For example see this edit:

http://en.wikipedia.org/w/index.php?title=Kawagoe_Station&diff=306196218&oldid=305944473

which changes the spaces from U 3000 to U 20 and the "statistics" line in the Station infoboxes are then correctly formatted.

The U 3000 space should be evaluated as whitespace within a template if function.
Comment 1 Chad H. 2009-08-05 13:21:21 UTC
Cf. bug 19052.

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


Navigation
Links