Template:!

From Red Faction Wiki
Jump to: navigation, search

|

Usage

Use when you need to pass a "|" as part of a template parameter. For example, you may need to pass a piped link to a template.

{{Some template|[[User:DavidJCobb|]]}}

That gets interpreted as two different parameters, however:

1: [[User:DavidJCobb
2: ]]

To fix it, use this template.

{{Some template|[[User:DavidJCobb{{!}}]]}}

Then, the parameters will work.

1: [[User:DavidJCobb|]]

Pitfalls

  • The pipe trick doesn't work. [[User:DavidJCobb{!}]] displays as [[User:DavidJCobb|]]. The workaround is to explicitly specify the link text ([[User:DavidJCobb|DavidJCobb]]).