Parsoid/Tests:templates
Plain
[edit]{{echo|Foo}}
Foo
Different parts of links
[edit]{{echo|[[Foo|bar]]}}
[[{{echo|Foo}}|bar]
[[Foo|{{echo|bar}}]
{{echo|[[{{echo|Foo}}|bar]]}}
Distinguishing between explicit/implicit targets
[edit][[{{echo|Foo}}]]
[[{{echo|Foo}}|Foo]]
External links
[edit]{{echo | [http://en.wikipedia.org]}}
[1]
[{{echo|http://en.wikipedia.org}}]
[{{echo|http://en.wikipedia.org}} {{echo|Wikipedia}}]
ISBN links
[edit]{{echo|ISBN}} 1234567890
ISBN {{echo|1234567890}}
Different part of divs
[edit]<div {{echo|style}}="color:red;">foo</div>
<div style="{{echo|color:red;}}">foo</div>
<div {{echo|style}}="{{echo|color:red;}}">foo</div>
Templating of partial values of an attribute
[edit]<div title="This is a long title with just one piece {{echo|templated}}">foo</div>
<div title="This is a long title with just {{echo|one piece}} templated">foo</div>
<div title="{{echo|This is a long title}} with just one piece templated">foo</div>
Parser functions
[edit]{{uc:foo}}
FOO
{{uc:{{lc:FOO}}}}
FOO
Tables
[edit]{|style={{echo|'color:blue'}}| |foo |}
foo |
{|border=1|{{echo|style}}='color:blue'| |foo |}
foo |