Template:Userblock: Difference between revisions

Content added Content deleted
Enwikipedia>Splarka
(font -> span, but should these really be stealthed? if so, perhaps a new class in MediaWiki.Common.css like .stealthlink a {color:#002bb8}, a :visited color could be matched too.)
Enwikipedia>Splarka
({{urlencode}} -> this template should now work without underscoring spaces)
Line 1: Line 1:
<span class="plainlinks">[[User:{{{1}}}|{{{1}}}]] ([[User talk:{{{1}}}|talk]] &bull; [[Special:Contributions/{{{1}}}|contribs]] &bull; [{{SERVER}}/wiki/Special:Log/block?page=User:{{{2|{{{1}}}}}} <span style="color:#002bb8">block log</span>])</span><noinclude>
<span class="plainlinks">[[User:{{{1}}}|{{{1}}}]] ([[User talk:{{{1}}}|talk]] &bull; [[Special:Contributions/{{{1}}}|contribs]] &bull; [{{SERVER}}/wiki/Special:Log/block?page=User:{{urlencode:{{{1}}}}} <span style="color:#002bb8">block log</span>])</span><noinclude>


== Usage ==
== Usage ==
*<nowiki>{{Userblock|Willy on wheel}}</nowiki>
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>{{Userblock|Willy on wheels|Willy_on_wheels}}</nowiki> rather than <nowiki>{{Userblock|Willy on wheels}}</nowiki>.


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