https://bugzilla.wikimedia.org/show_bug.cgi?id=32248
Web browser: ---
Bug #: 32248
Summary: Nested variables with some special character output
will output "" or other useless stuff
Product: MediaWiki
Version: 1.17
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Parser
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
When using variables outputting some special characters like "'" nested like:
"[[:{{TALKPAGENAME:{{FULLPAGENAME:Isn't anything}} }}]]" will output a literal
"[[:Diskussion:Isn't anything]]" instead of displaying a link.
This is because their output is escaped with wfEscapeWikiText(). This also
regards {{#ifeq:...}} where comparing variables output with text no longer
works as one would expect.
Is it really necessary to run the whole wfEscapeWikiText() over variables
output? For example escaping the ' ' after 'ISBN ' to ' ' looks like a bad
hack and kind of unnecessary to me. Even post-processing everything 'ISBN\s\d+'
would seem a better solution to me.
"{{TALKPAGENAME:{{FULLPAGENAMEE:Isn't anything}} }}" (don't miss the extra "E")
won't work as well since 'TALKPAGENAME' will consider the 'FULLPAGENAMEE'
invalid since it contains '&' as "'" becomes "'".
--
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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l