Last modified: 2008-08-11 20:30:50 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 12448 - #ifeq bug when using Magic words that include quotes (")
#ifeq bug when using Magic words that include quotes (")
Product: MediaWiki extensions
Classification: Unclassified
ParserFunctions (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-12-29 21:18 UTC by Agony
Modified: 2008-08-11 20:30 UTC (History)
3 users (show)

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


Description Agony 2007-12-29 21:18:12 UTC
When using Magic words (such as {{PAGENAME}}) with quotes, this function do not match to " but match to ".

Simple test case under [["]] could be:

{{#ifeq: " | " | 1 | 0}} (return 1 as supposed)
{{#ifeq: " | {{PAGENAME}} | 1 | 0}} (return 0, should return 1)
{{#ifeq: " | {{PAGENAME}} | 1 | 0}} (return 1, should return 0)
{{#ifeq: {{localurl:"}} | {{localurl:{{PAGENAME}}}} | 1 | 0}} (return 1 as supposed)
Comment 1 Jelte (WebBoy) 2008-08-11 20:30:50 UTC
On [["]] {{PAGENAME}} returns " to prevent parsing. This is not a bug in #ifeq.

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