Template:UserLink: Difference between revisions
Jump to navigation
Jump to search
(I think this fixed the second argument) |
m (Messed up order of arguments. Typical) |
||
Line 1: | Line 1: | ||
<includeonly>{{ #if: {{{2}}} | <includeonly>{{ #if: {{{2}}} | ||
| {{ #ifexist: User:{{{1}}} | [[User:{{{1}}}|{{{2}}}]] | {{{1}}} }} | |||
| {{ #ifexist: User:{{{1}}} | [[User:{{{1}}}|{{{1}}}]] | {{{1}}} }} | | {{ #ifexist: User:{{{1}}} | [[User:{{{1}}}|{{{1}}}]] | {{{1}}} }} | ||
}}</includeonly> | }}</includeonly> | ||
<noinclude> | <noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 18:51, 22 May 2020
Using this template, you can create a link to a user page, if a page exists. If the user has a different name, a second name can be listed to rename the link.
Usage
{{UserLink | actual page link}} {{UserLink | actual page link | shown link}}
Example Usage
{{UserLink | Bloo | Bloo___}} {{UserLink | Dennis | Denniss}} {{UserLink | ToffeeMax}} {{UserLink | ZombiesOnTheBus}}
produces:
ZombiesOnTheBus
The above documentation is transcluded from Template:UserLink/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
- ↑ Note, underlines within links are ignored. Linking to Bloo's User page can also be achieved using
{{UserLink | Bloo___}}