You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.

Template:U: Difference between revisions

From MafiaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{ #ifexist: User:{{{1|thisuserdoesnotexist}}} |[[User:{{{1}}}|{{{1|User}}}]]|{{ #ifexist:{{{1|thisuserdoesnotexist}}} |[[{{{1|:Category:Scummers}}}|{{{1|User}}}]]|[http://www.mafiascum.net/forum/memberlist.php?mode=viewprofile&un={{{1|}}} {{{1|User}}}]}}}}</includeonly><noinclude>This template links to a page of the user with username {{{1}}}.
<includeonly>{{ #ifexist: User:{{{1|thisuserdoesnotexist}}} |[[User:{{{1}}}|{{{2|{{{1|User}}}}}}]]|{{ #ifexist:{{{1|thisuserdoesnotexist}}} |[[{{{1|:Category:Scummers}}}|{{{2|{{{1|User}}}}}}]]|[http://www.mafiascum.net/forum/memberlist.php?mode=viewprofile&un={{{1|}}} {{{2|{{{1|User}}}}}}]}}}}</includeonly><noinclude>This template links to a page of the user with username {{{1}}}.


*It will first check for a wiki page <nowiki>[[User:username]]</nowiki>, and link to it if it exists.
*It will first check for a wiki page <nowiki>[[User:username]]</nowiki>, and link to it if it exists.
*If the above is a redlink, it will check if there is a wiki page at <nowiki>[[username]]</nowiki> (without the ''User:'' prefix), and link to it if it exists.
*If the above is a redlink, it will check if there is a wiki page at <nowiki>[[username]]</nowiki> (without the ''User:'' prefix), and link to it if it exists.
*If the above is a redlink, too, it will link to the user's profile page on the forum.
*If the above is a redlink, too, it will link to the user's profile page on the forum.
==={{{1}}}===
The user name. If the link shows up wrong, replace whitespace with %20.
==={{{2}}}===
The displayed text. If not specified, {{{1}}} is used.


[[Category:Fenhl's Templates]][[Category:Templates]]</noinclude>
[[Category:Fenhl's Templates]][[Category:Templates]]</noinclude>

Revision as of 02:20, 23 October 2010

This template links to a page of the user with username {{{1}}}.

  • It will first check for a wiki page [[User:username]], and link to it if it exists.
  • If the above is a redlink, it will check if there is a wiki page at [[username]] (without the User: prefix), and link to it if it exists.
  • If the above is a redlink, too, it will link to the user's profile page on the forum.

{{{1}}}

The user name. If the link shows up wrong, replace whitespace with %20.

{{{2}}}

The displayed text. If not specified, {{{1}}} is used.