Template:Admin-abbr: Difference between revisions

From TestWiki
Content added Content deleted
Enwikipedia>Splarka
(font -> span)
Enwikipedia>Freakofnurture
(fixed template to use one parameter, regardless of spacing, gave example of revised usage)
Line 1: Line 1:
<span class="plainlinks">[[User:{{{1}}}|{{{1}}}]] ([[User talk:{{{1}}}|t]] [[Special:Contributions/{{{1}}}|c]] [{{SERVER}}/wiki/Special:Log/block?user={{{2|{{{1}}}}}} <span style="color:#002bb8">b</span>] [{{SERVER}}/wiki/Special:Log/protect?user={{{2|{{{1}}}}}} <span style="color:#002bb8">p</span>] [{{SERVER}}/wiki/Special:Log/delete?user={{{2|{{{1}}}}}} <span style="color:#002bb8">d</span>] [{{SERVER}}/wiki/Special:Log/move?user={{{2|{{{1}}}}}} <span style="color:#002bb8">m</span>])</span><noinclude>
<span class="plainlinks">[[User:{{{1|Jimbo Wales}}}|{{{1|Jimbo Wales}}}]] ([[User talk:{{{1|Jimbo Wales}}}|t]] [[Special:Contributions/{{{1|Jimbo Wales}}}|c]] <font color="002bb8">[{{fullurl:Special:Log/block|user={{urlencode:{{{1|Jimbo Wales}}}}}}} b]</font> <font color="002bb8">[{{fullurl:Special:Log/protect|user={{urlencode:{{{1|Jimbo Wales}}}}}}} p]</font> <font color="002bb8">[{{fullurl:Special:Log/delete|user={{urlencode:{{{1|Jimbo Wales}}}}}}} d]</font> <font color="002bb8">[{{fullurl:Special:Log/move|user={{urlencode:{{{1|Jimbo Wales}}}}}}} m]</font>)</span><noinclude>
----

Example: <tt>{&#123;Admin-abbr|Jimbo Wales}}</tt>
===Usage===
[[Category:Internal link templates|Admin-abbr]]
NOTE: if username has SPACE ' ' within it, use UNDERSCORE _ instead (as the SECOND parameter), its unfixable for logs, there is no wikilink to go to a user's logs. It's not the template's fault, its the fault of whoever's using the template. (ex: use <nowiki>{{admin|Name_with_spaces}} rather than {{admin|Name with spaces}}</nowiki>.

'''<nowiki>{{admin-abbr|username}}</nowiki>'''

If the admin has a username with spaces in it, instead use:

'''<nowiki>{{admin-abbr|Username with spaces|Username_with_underscores}}</nowiki>'''

===Note===
This template is the same as [[Template:Admin]] except that the words are abbreviated.

<nowiki>{{admin}}:</nowiki><br>
Username (talk • contribs • blocks • protects • deletions • moves)

<nowiki>{{admin-abbr}}:</nowiki><br>
Username (t c b p d m)

[[Category:Internal link templates|Admin]]
</noinclude>
</noinclude>

Revision as of 09:30, 26 May 2006

Jimbo Wales (t c b p d m)


Example: {{Admin-abbr|Jimbo Wales}}