Difference between pages "Template:!" and "File:twitter.png"

From LCA2015 Delegate wiki
(Difference between pages)
Jump to: navigation, search
m (Added the template documentation, due to missing $wgNamespacesWithSubpages variable.)
 
 
Line 1: Line 1:
<includeonly>|</includeonly><noinclude>
 
  
This is an auxiliary template allowing the pipe character "|" to be encoded within template parameters. The "|" delimiter for a Wiki table has to be escaped by a template if it's used within a template.
 
 
This template can be used to parse tables correctly in templates. For example, the table:
 
<pre>
 
{| some table
 
|- some row
 
| some cell
 
|
 
|}
 
}}
 
</pre>
 
Can be written as:
 
<pre>
 
{{sometemplate|someparameter={
 
    {{!}} some table
 
    {{!}}- some row
 
    {{!}} some cell
 
    {{!}}
 
    {{!}}
 
  }
 
}}
 
</pre></noinclude>
 

Revision as of 07:54, 11 December 2014