Last modified: 2013-01-14 02:11:39 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 T45946, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 43946 - Inconsistent behavior between intro and introtemplate and underscore substitution
Inconsistent behavior between intro and introtemplate and underscore substitu...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
REL1_20-branch
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-14 02:09 UTC by LY Meng
Modified: 2013-01-14 02:11 UTC (History)
4 users (show)

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


Attachments

Description LY Meng 2013-01-14 02:09:02 UTC
It seems that Semantic Mediawiki is applying an underscore substitution to ALL the text inside a template when using the "intro" parameter in ask queries. This does not happen with the "introtemplate" parameter. For an example, it can be a problem when an intro template has CSS classes with underscores definied in it.

Example:
-----------
Template:Test1 :

<div class="hello_world">Hello !</div>
-----------
Template:Test2 :

{{{1|}}}
-----------

Request 1

{{#ask:[[somepage]]
|format=template
|template=Test2
|intro={{Test1}}
}}

Will return: <div class="hello world">Hello !</div>
The CSS class underscore became a space


{{#ask:[[Kanon]]
|format=somepage
|template=Test2
|introtemplate=Test1
}}

Will return: <div class="hello_world">Hello !</div>
The CSS class underscore is still here
Comment 1 LY Meng 2013-01-14 02:11:39 UTC
Semantic Mediawiki 1.8 and Madiawiki 1.20.2 by the way, and the second request is of course

{{#ask:[[somepage]]
|format=somepage
|template=Test2
|introtemplate=Test1
}}

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


Navigation
Links