Difference between revisions of "Template:!!"

From LCA2015 Delegate wiki
Jump to: navigation, search
(Created a metatemplate for the double pipe character.)
 
(No difference)

Latest revision as of 14:16, 9 December 2014

This is an auxiliary template allowing "||" 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 in templates as a shortcut to using {{!}} twice. For example, the table:

{| some table
|- some row
| some cell || some cell
|}

Can be coded as:

{{sometemplate|someparameter={
    {{!}} some table
    {{!}}- some row
    {{!}} some cell {{!!}} some cell
  |}
}}