https://bugzilla.wikimedia.org/show_bug.cgi?id=28252
Summary: MediaWiki doesn't parse HTML table attributes within a
template inclusion
Product: MediaWiki
Version: 1.16.2
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: Normal
Component: Templates
AssignedTo: [email protected]
ReportedBy: [email protected]
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
|-
|}
}}
===========
--
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