Last modified: 2012-04-12 13:54:49 UTC
I have the following template, named "Highlight": =========== <div style="border: 1px solid #0080FF;"> {{{1}}} </div> =========== If I try to include the template with an table in that way =========== {{Highlight| <table> <tr> <td>some cell</td> <td>some cell</td> <td>some cell</td> </tr><tr> <td>some cell</td> <td>some cell</td> <td>some cell</td> </tr> </table> }} =========== everything is fine. But if I add a additional attribute to the table, tr or td tag, the page is not rendered properly, only showing "{{{1}}}" as content of the div element defined in Template:Highlight. =========== {{Highlight| <table class="wikitable"> <tr> <td>some cell</td> <td>some cell</td> <td>some cell</td> </tr><tr> <td>some cell</td> <td>some cell</td> <td>some cell</td> </tr> </table> }} =========== This shouldn't be the expected behaviour. BTW: Why is it impossible to match nested template inclusions against a regular pattern, so that the pipe hiding ("|" to e.g. {{!}}) is not neccessary? I would wish that something like that is possible in a near future version of MediaWiki: =========== {{someTemplate| {| |+ some table |- | content | content |- |} }} ===========
If the parameter contains a "=", you have to use it like this: {{Highlight|1= ... }} *** This bug has been marked as a duplicate of bug 14235 ***
> This shouldn't be the expected behaviour. BTW: Why is it impossible to match > nested template inclusions against a regular pattern, so that the pipe hiding > ("|" to e.g. {{!}}) is not neccessary? I would wish that something like that > is possible in a near future version of MediaWiki: depending on rené's actual needs, passing some table-generating template as a parameter might be easier and more scrutable than using {{!}}. > {{someTemplate| > {{make_some_table > | caption = some table > | c1 = content > | c2 = content > }} > }}