Template:!/doc

From Iron Chariots Wiki
Jump to: navigation, search
Template:!
Purpose
This template generates a single "pipe" character (|). It should only be necessary to use this template in certain special cases, as explained below, where the pipe character would be mistakenly interpreted as an element of wiki syntax.
Usage
{{!}}
Example
  • Goal: To output code marking the beginning of a wikitable row (|-) if the first parameter value is nonempty.
Wrong: {{if|test={{{1|}}}|then=|-}}
Right: {{if|test={{{1|}}}|then=<tt>{{!}}-}}</tt>
Note
The pipe character can also be coded as the numerical character entity &#124; (or &#x7C;), which should take care of most cases where an ambiguity exists — although using this template may make the intended meaning easier to recognize.
Needed or not?
This template should only be needed when a template parameter value contains a pipe character, as illustrated in the example above.
See also
External link
Personal tools
Namespaces
Variants
Actions
wiki navigation
IronChariots.Org
Toolbox