Template:!: Difference between revisions

From Red Faction Wiki
(Created.)
 
(OSHI-)
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:
  <nowiki>{{Some template|[[User:DavidJCobb{{!}}]]}}</nowiki>
  <nowiki>{{Some template|[[User:DavidJCobb{{!}}]]}}</nowiki>
Then, the parameters will work.
Then, the parameters will work.
  1: <nowiki>[[User:DavidJCobb|]]</nowiki></noinclude>
  1: <nowiki>[[User:DavidJCobb|]]</nowiki>
 
== Pitfalls ==
*The pipe trick doesn't work. <code><nowiki>[[User:DavidJCobb{!}]]</nowiki></code> displays as <nowiki>[[User:DavidJCobb|]]</nowiki>. The workaround is to explicitly specify the link text (<code><nowiki>[[User:DavidJCobb|DavidJCobb]]</nowiki></code>).</noinclude>

Latest revision as of 01:33, 11 June 2010

|

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]]).