Page MenuHomePhabricator

bug12974.html

Authored By
bzimport
Nov 21 2014, 10:03 PM
Size
2 KB
Referenced Files
None
Subscribers
None

bug12974.html

<html>
<head>
<style type="text/css">
.wikitable, .wikitable td, .wikitable th {
border: 1px solid black;
}
</style>
</head>
<body>
<h1>Input</h1>
<pre>
{| class="wikitable"
|-
! 1
! <code><nowiki>{{foo}}</nowiki></code>
| {{foo}}
|-
! 2
! <code><nowiki>\n{{foo}}</nowiki></code>
|
{{foo}}
|-
! 3
! <code><nowiki>{{PAGENAME:{{foo2}}}}</nowiki></code>
| {{PAGENAME:{{foo2}}}}
|-
! 4
! <code><nowiki>\n{{PAGENAME:{{foo2}}}}</nowiki></code>
|
{{PAGENAME:{{foo2}}}}
|-
! 5
! <code><nowiki>xxx{{PAGENAME:{{foo2}}}}yyy</nowiki></code>
| xxx{{PAGENAME:{{foo2}}}}yyy
|-
! 6
! <code><nowiki>[[:{{PAGENAME}}]]</nowiki></code>
| [[:{{PAGENAME}}]]
|-
! 7
! <code><nowiki>xxx{{#if:1|:foo|:bar}}yyy</nowiki></code>
| xxx{{#if:1|:foo|:bar}}yyy
|-
! 8
! <code><nowiki>\n{| style="background:{{foo}}" \n | Foo \n |}</nowiki></code>
|
{| style="background:{{foo}}"
| Foo
|}
|}
</pre>
<h1>[[Template:Foo]]</h1>
<pre>#aaa</pre>
<h1>[[Template:Foo2]]</h1>
<pre>*aaa</pre>
<h1>Output with bug529 hack</h1>
<table class="wikitable">
<tr>
<th> 1
</th><th> <code>{{foo}}</code>
</th><td>
<ol><li>aaa
</li></ol>
</td></tr>
<tr>
<th> 2
</th><th> <code>\n{{foo}}</code>
</th><td>
<ol><li>aaa
</li></ol>
</td></tr>
<tr>
<th> 3
</th><th> <code>{{PAGENAME:{{foo2}}}}</code>
</th><td>
<ul><li>aaa
</li></ul>
</td></tr>
<tr>
<th> 4
</th><th> <code>\n{{PAGENAME:{{foo2}}}}</code>
</th><td>
<ul><li>aaa
</li></ul>
</td></tr>
<tr>
<th> 5
</th><th> <code>xxx{{PAGENAME:{{foo2}}}}yyy</code>
</th><td> xxx
<ul><li>aaayyy
</li></ul>
</td></tr>
<tr>
<th> 6
</th><th> <code>[[:{{PAGENAME}}]]</code>
</th><td> [[:
<ul><li>Page]]
</li></ul>
</td></tr>
<tr>
<th> 7
</th><th> <code>xxx{{#if:1|:foo|:bar}}yyy</code>
</th><td> xxx
<dl><dd>fooyyy
</dd></dl>
</td></tr>
<tr>
<th> 8
</th><th> <code>\n{| style=&quot;background:{{foo}}&quot; \n | Foo \n |}</code>
</th><td>
<table>
<ol><li>aaa"
</li></ol>
<tr>
<td> Foo
</td></tr></table>
</td></tr></table>
<h1>Output without bug529 hack</h1>
<table class="wikitable">
<tr>
<th> 1
</th><th> <code>{{foo}}</code>
</th><td> #aaa
</td></tr>
<tr>
<th> 2
</th><th> <code>\n{{foo}}</code>
</th><td>
<ol><li>aaa
</li></ol>
</td></tr>
<tr>
<th> 3
</th><th> <code>{{PAGENAME:{{foo2}}}}</code>
</th><td> *aaa
</td></tr>
<tr>
<th> 4
</th><th> <code>\n{{PAGENAME:{{foo2}}}}</code>
</th><td>
<ul><li>aaa
</li></ul>
</td></tr>
<tr>
<th> 5
</th><th> <code>xxx{{PAGENAME:{{foo2}}}}yyy</code>
</th><td> xxx*aaayyy
</td></tr>
<tr>
<th> 6
</th><th> <code>[[:{{PAGENAME}}]]</code>
</th><td> <strong class="selflink">*Page</strong>
</td></tr>
<tr>
<th> 7
</th><th> <code>xxx{{#if:1|:foo|:bar}}yyy</code>
</th><td> xxx:fooyyy
</td></tr>
<tr>
<th> 8
</th><th> <code>\n{| style=&quot;background:{{foo}}&quot; \n | Foo \n |}</code>
</th><td>
<table style="background:#aaa">
<tr>
<td> Foo
</td></tr></table>
</td></tr></table>
</body></html>

File Metadata

Mime Type
text/html
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4222
Default Alt Text
bug12974.html (2 KB)

Event Timeline