Last modified: 2013-01-14 02:11:39 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
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 }}