Template:!: Difference between revisions
DavidJCobb (talk | contribs) (Created.) |
DavidJCobb (talk | contribs) (Problem.) |
||
Line 10: | Line 10: | ||
Then, the parameters will work. | Then, the parameters will work. | ||
1: <nowiki>[[User:DavidJCobb|]]</nowiki></noinclude> | 1: <nowiki>[[User:DavidJCobb|]]</nowiki></noinclude> | ||
== 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>). |
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]]
).