Template:=

From Feed The Beast Wiki
Jump to: navigation, search
Template-info.png Documentation

This is a meta-template that can be used to parse template parameters correctly. It acts similarly to an escape character.

Usage[edit source]

This template allows the character = to be used in template parameters.

Parameters[edit source]

This template does not use any parameters.

Example[edit source]

Consider the following code using an ordinary pipe character in the {{QuoteBox}} template:

{{QuoteBox|This is a sentence containing the character: =, which will normally be parsed as a parameter assignment operator.|{{U|Jinbobo}}}}

produces:

{{{author}}}

whereas using {{=}}:

{{QuoteBox|This is a sentence containing the character: {{=}}, which will normally be parsed as a  parameter assignment operator.|{{U|Jinbobo}}}}

produces:

This is a sentence containing the character: =, which will normally be parsed as a parameter assignment operator.
Jinbobo

the restriction can also be bypassed with named parameters:

{{QuoteBox|1=This is a sentence containing the character: =, which will normally be parsed as a  parameter assignment operator.|2={{U|Jinbobo}}}}

produces:

This is a sentence containing the character: =, which will normally be parsed as a parameter assignment operator.
Jinbobo

See also[edit source]

  • {{!!}} produces ||