Template:!

From ZeldaChaos
Jump to: navigation, search

|
Turns out, we needed this template. *failed*

Anyway, it allows the usage of a vertical pipe symbol in a template parameter.

Consider the following example: we need to check if a parameter has been specified, and if so, we need to output a link. Now, we can use the if template to run the check:

{{if|{{{my_paramter|}}}| It was specified. | It was not specified. }}

But now, we need to output the link, so we can try typing this:

{{if|{{{my_paramter|}}}| [[my_parameter|It was specified]] | It was not specified. }}

And... that's not going to work. "[[my_parameter" and "It was specified]]" are going to be split into two parameters.

Using this template, though, we can make the example work:

{{if|{{{my_paramter|}}}| [[my_parameter{{!}}It was specified]] | It was not specified. }}
Personal tools
Namespaces

Variants
Actions
Glitches
Navigation
Affiliates
Toolbox
Google AdSense