13,208
edits
m (Johan G moved page User:Johan G/Template:Welcome to the wiki to Template:Welcome to the wiki without leaving a redirect: Good enough, but can undoubtedly be further improved) |
(+- Some cleanup after the move; +- Better name of automatically added category; +- Better and uncommented category) |
||
Line 1: | Line 1: | ||
<div style="width: 75%; margin-left: 5%; background: #eeeeff; padding: 10px; border-color: #8888ff; border-style: solid; border-width: 1px; text-align: left;"><!-- | |||
-->{{LangSwitch | |||
| en = <!-- English --> | | en = <!-- English --> | ||
<big>'''Welcome to the wiki, {{#if: {{{name|}}} | {{{name}}} | {{BASEPAGENAME}}}}!'''</big> | <big>'''Welcome to the wiki, {{#if: {{{name|}}} | {{{name}}} | {{BASEPAGENAME}}}}!'''</big> | ||
Line 49: | Line 48: | ||
}} | }} | ||
</div><noinclude><includeonly>{{#if: {{{nocat|}}} || {{user talk other|[[Category: | </div><noinclude><includeonly>{{#if: {{{nocat|}}} || {{user talk other|[[Category:Users given welcome to the wiki template]]}}}}</includeonly> | ||
{{Informative template|1= | {{Informative template|1= | ||
__NOTOC__ | __NOTOC__ | ||
Line 55: | Line 54: | ||
This template can be added to the top of user discussion pages as a greeting message. | This template can be added to the top of user discussion pages as a greeting message. | ||
Adding this template to a user discussion page will automatically add [[:Category: | Adding this template to a user discussion page will automatically add [[:Category:Users given welcome to the wiki template]] to that page. | ||
== Usage == | == Usage == | ||
{{obr}}'''Welcome to the wiki''' {{!}}''name='' {{!}}''added-by='' {{!}}'' | {{obr}}'''Welcome to the wiki''' {{!}}''name='' {{!}}''added-by='' {{!}}''lang='' {{!}}''nocat='' {{cbr}} | ||
All parameters are optional. | All parameters are optional. | ||
; name: You can use a different name | ; name: You can use a different name than the wiki user name used by default if the user on his user page have stated his real or another name. | ||
; added-by: Your user name (shown in page history anyway) | ; added-by: Your user name (shown in page history anyway) | ||
; lang: Two-letter language code for language to use instead of English. If there is no translation for that language the English text will be used instead. | |||
; nocat: If not empty the page will not be automatically categorized | ; nocat: If not empty the page will not be automatically categorized | ||
== Examples == | == Examples == | ||
<nowiki>{{Welcome to the wiki}}</nowiki> | <nowiki>{{Welcome to the wiki}}</nowiki> | ||
{{ | {{Welcome to the wiki}} | ||
<nowiki>{{Welcome to the wiki |name=George "Auto" Butterfingers}}</nowiki> | <nowiki>{{Welcome to the wiki |name=George "Auto" Butterfingers}}</nowiki> | ||
{{ | {{Welcome to the wiki |name=George "Auto" Butterfingers}} | ||
<nowiki>{{Welcome to the wiki |added-by=Example user}}</nowiki> | <nowiki>{{Welcome to the wiki |added-by=Example user}}</nowiki> | ||
{{ | {{Welcome to the wiki |added-by=Example user}} | ||
}} | }} | ||
[[Category:Messagebox templates]] | |||
</noinclude> | </noinclude> |