Template:UserLink: Difference between revisions

From Official Gamemode 4 Wiki
Jump to navigation Jump to search
(Allowed for renames)
m (No new line between includeonly and noinclude removes the new line under the page heading)
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{ #if: {{{2|}}}
{{#if: {{{2}}} | {{#ifexist: User:{{{2}}} | [[User:{{{2}}}|{{{1}}}]] | {{{1}}}}} | {{#ifexist: User:{{{1}}} | [[User:{{{1}}}|{{{1}}}]] | {{{1}}}}}}}
|{{ #ifexist: User:{{{1}}}
</includeonly>
|[[User:{{{1}}}|{{{2}}}]]
<noinclude>
|{{{2}}}
}}
|{{ #ifexist: User:{{{1}}}
|[[User:{{{1}}}|{{{1}}}]]
|{{{1}}}
}}
}}</includeonly><noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Revision as of 07:36, 23 May 2020

Template documentation[view] [edit] [history] [purge]

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:

Bloo___[1]

Denniss

ToffeeMax

ZombiesOnTheBus

  1. Note, underlines within links are ignored. Linking to Bloo's User page can also be achieved using {{UserLink | Bloo___}}