Template:Welcome/doc: Difference between revisions

From TestWiki
Content added Content deleted
m (→‎See also: Replace redirect for target template)
 
mNo edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#invoke:Template documentation|dokuseite}}
{{documentation subpage}}
<onlyinclude>
{{Twinkle standard installation}}
{{#invoke:Template documentation|doku
{{Subst only|auto=yes}}
|p1=art|t1=an example of an article that the user has edited
{{frequent substitution}}
|p2=2|t2=|d2=|m2=|f2=
=== Usage ===
|count=1
{{Warning|You must [[Help:Watching pages|watch]] the user talk page you add this to!}}
|aw1=art=template:Welcome

|text=is a template for a welcome message. This template should be used on user talk pages.
Add {{Tlsx|Welcome}}<code><nowiki> ~~~~</nowiki></code> to the user's talk page.
|rubrik= <!-- add the group name = name of template that creates group list -->}}</onlyinclude>

Parameters:
* {{Para|1|Sender}}&nbsp;– Username posting this message
* {{Para|art|Radar detector}}&nbsp;– Article to which the user contributed ''{{Green|positively}}'': {{Tlsx|Welcome|2=art=Radar detector}}
* {{Para|heading|no}}&nbsp;– Suppress the automatic heading: {{Tlsx|Welcome|2=heading=no}}
* {{Para|headtext|Greetings!}}&nbsp;– Change the contents of the heading: {{Tlsx|Welcome|2=headtext=Greetings!}}
* {{Para|newuser|y}}&nbsp;– for alternate text for users with 0 contributions (such as accounts just made via [[WP:ACC|ACC]])
* {{Para|notalk|y}} to disable automatic link back to poster's talk page (not sure why anyone would want to since it is in your signature anyway and is more friendly wording, but seems to be a common theme).

Shortcut: '''{{Tlsx|Wel}}<code><nowiki> ~~~~</nowiki></code>'''

=== For anonymous editors ===
Use {{Tlsx|Welcome-anon}} for anonymous (IP) editors.

=== With links to help forums ===
Use {{Tlsx|Welcome-t}} for a link to the [[Wikipedia:Teahouse|Teahouse]]. (This template does not need to be [[Wikipedia:Signatures|signed]], as it automatically adds signature).

Use {{Tlsx|Welcome-hd}} for a link to the [[Wikipedia:Help desk|Help desk]].

=== See also ===
* [[Wikipedia:Welcoming committee/Welcome templates|Wikipedia:Welcome templates]]
* {{tl|Register}}
* {{tl|Introductory article}}

<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- Add template's categories here -->
[[Category:Welcome templates|*]]
}}</includeonly>

Latest revision as of 13:13, 30 October 2020

This is the documention subpage ot the template Welcome


The template {{Welcome}} is a template for a welcome message. This template should be used on user talk pages.

Parameter list[edit]

x
namedescriptiondefaultstatus
artan example of an article that the user has editedemptyoptional

Copy&paste[edit]

{{Welcome|art=}}

Application[edit]

{{Welcome}}
unfolds as wikitext:
== Welcome! ==

{| style="background-color:black; padding:0;" cellpadding="0" || {| width="100%" cellpadding="1" cellspacing="3" style="vertical-align:top; background-color:#99ccff; padding:0;" ! <div style="margin:1; background-color:#ffffff; font-family:sans-serif; font-size:109%; font-weight:normal; border:1px solid lightgrey; text-align:justify; padding-left:0.8em; padding-right:0.8em; padding-top:0.4em; padding-bottom:0.4em;">[[File:NewLogo.png|center|link=Template:Welcome]]<br>'''Hello, Welcome!'''<br> Welcome to '''Public Test Wiki!''' Thank you for [[Special:Contributions/Welcome|your contributions]]! I hope that you get the most out of The Test Wiki! If you have any questions you can ask at the [[TestWiki:Community portal|Community Portal]]. Please remember to '''sign your name''' on talk pages by typing four tildes "~&#126;~~"; this will automatically produce your name and the date. If you so desire, feel free to [[TestWiki:Request permissions|request sysop rights]], taking care to read the [[TestWiki:Administrators|information page]] on how to do so. Finally, please do your best to always fill in the '''edit summary''' field. Happy editing! </div> |}

|}
renders as

Welcome!


Hello, Welcome!
Welcome to Public Test Wiki! Thank you for your contributions! I hope that you get the most out of The Test Wiki! If you have any questions you can ask at the Community Portal. Please remember to sign your name on talk pages by typing four tildes "~~~~"; this will automatically produce your name and the date. If you so desire, feel free to request sysop rights, taking care to read the information page on how to do so. Finally, please do your best to always fill in the edit summary field. Happy editing!
{{Welcome|art=template:Welcome}}
unfolds as wikitext:
== Welcome! ==

{| style="background-color:black; padding:0;" cellpadding="0" || {| width="100%" cellpadding="1" cellspacing="3" style="vertical-align:top; background-color:#99ccff; padding:0;" ! <div style="margin:1; background-color:#ffffff; font-family:sans-serif; font-size:109%; font-weight:normal; border:1px solid lightgrey; text-align:justify; padding-left:0.8em; padding-right:0.8em; padding-top:0.4em; padding-bottom:0.4em;">[[File:NewLogo.png|center|link=Template:Welcome]]<br>'''Hello, Welcome!'''<br> Welcome to '''Public Test Wiki!''' Thank you for [[Special:Contributions/Welcome|your contributions]]! I hope that you get the most out of The Test Wiki! If you have any questions you can ask at the [[TestWiki:Community portal|Community Portal]]. Please remember to '''sign your name''' on talk pages by typing four tildes "~&#126;~~"; this will automatically produce your name and the date. If you so desire, feel free to [[TestWiki:Request permissions|request sysop rights]], taking care to read the [[TestWiki:Administrators|information page]] on how to do so. Finally, please do your best to always fill in the '''edit summary''' field. Happy editing! </div> |}

|}
renders as

Welcome!


Hello, Welcome!
Welcome to Public Test Wiki! Thank you for your contributions! I hope that you get the most out of The Test Wiki! If you have any questions you can ask at the Community Portal. Please remember to sign your name on talk pages by typing four tildes "~~~~"; this will automatically produce your name and the date. If you so desire, feel free to request sysop rights, taking care to read the information page on how to do so. Finally, please do your best to always fill in the edit summary field. Happy editing!

Wikitext[edit]

<includeonly><onlyinclude>

{{#switch:{{NAMESPACENUMBER}} |3|10= == Welcome! == {{{!}} style="background-color:black; padding:0;" cellpadding="0" {{!}}{{!}} {{{!}} width="100%" cellpadding="1" cellspacing="3" style="vertical-align:top; background-color:#99ccff; padding:0;" ! <div style="margin:1; background-color:#ffffff; font-family:sans-serif; font-size:109%; font-weight:normal; border:1px solid lightgrey; text-align:justify; padding-left:0.8em; padding-right:0.8em; padding-top:0.4em; padding-bottom:0.4em;">[[File:NewLogo.png{{!}}center{{!}}link=Template:Welcome]]<br>'''Hello, {{BASEPAGENAME}}!'''<br> Welcome to '''Public Test Wiki!''' Thank you for [[Special:Contributions/{{BASEPAGENAME}}{{!}}your contributions]]!{{#if:{{{art{{!}}}}}{{!}}, such as the ones you made at [[{{{art}}}]].{{!}}.}} I hope that you get the most out of The Test Wiki! If you have any questions you can ask at the [[TestWiki:Community portal{{!}}Community Portal]]. Please remember to '''sign your name''' on talk pages by typing four tildes "~&#126;~~"; this will automatically produce your name and the date. If you so desire, feel free to [[TestWiki:Request permissions{{!}}request sysop rights]], taking care to read the [[TestWiki:Administrators|information page]] on how to do so. Finally, please do your best to always fill in the '''edit summary''' field. Happy editing! </div> {{!}}} {{!}}} |#default=<div class="strong error">This template should be used in {{ns:3}} namespace only</div> }}</onlyinclude> </includeonly>

{{Template documentation}}