https://bugzilla.wikimedia.org/show_bug.cgi?id=43946
Web browser: ---
Bug ID: 43946
Summary: Inconsistent behavior between intro and introtemplate
and underscore substitution
Product: MediaWiki extensions
Version: REL1_20 branch
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Semantic MediaWiki
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
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
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l