Template:Welcome to Wikipedia/doc: Difference between revisions
Appearance
Content deleted Content added
m fixed lint errors – missing end tag |
Adapt local policies, template notices and guidance for independent Elite Dangerous Wiki; preserve index layout |
||
| Line 7: | Line 7: | ||
'''Without substitution of this template (or its short versions), features of the template will not work correctly.''' |
'''Without substitution of this template (or its short versions), features of the template will not work correctly.''' |
||
*Use to welcome new editors and provide links to useful information spread out across Wikipedia. |
*Use to welcome new editors and provide links to useful information spread out across Wikipedia. |
||
*To add the default version to a user's talk page, write <code><nowiki>{{subst:Welcome to Wikipedia}}</nowiki></code>. To see how it works, ''[[ |
*To add the default version to a user's talk page, write <code><nowiki>{{subst:Welcome to Wikipedia}}</nowiki></code>. To see how it works, ''[[Project:Template documentation|transclude]]'' it in various forms to [[Special:MyTalk|your own talk page]] or sandbox. |
||
*Can be given to IP or registered users. If given to an IP user, the content changes to advise the user to create an account, pointing out a few of the benefits. This applies to [[IPv6|long IP addresses]] as well as the [[IPv4|shorter IP addresses]]. |
*Can be given to IP or registered users. If given to an IP user, the content changes to advise the user to create an account, pointing out a few of the benefits. This applies to [[IPv6|long IP addresses]] as well as the [[IPv4|shorter IP addresses]]. |
||
*An extra message can be appended to the header message. If desired, include your message as the first parameter, using a pipe (<code>|</code>) separator following the template name. |
*An extra message can be appended to the header message. If desired, include your message as the first parameter, using a pipe (<code>|</code>) separator following the template name. |
||
| Line 29: | Line 29: | ||
:<code><nowiki>{{subst:Welcome to Wikipedia}}</nowiki></code> → The standard version for registered or IP users. Auto detects whether IP or not. |
:<code><nowiki>{{subst:Welcome to Wikipedia}}</nowiki></code> → The standard version for registered or IP users. Auto detects whether IP or not. |
||
:<code><nowiki>{{subst:Welcome to Wikipedia|Thanks for correcting the spelling at [[Example]].}}</nowiki></code> → Adds an extra message to the header. |
:<code><nowiki>{{subst:Welcome to Wikipedia|Thanks for correcting the spelling at [[Example]].}}</nowiki></code> → Adds an extra message to the header. |
||
:<code><nowiki>{{subst:Welcome to Wikipedia||4}}</nowiki></code> → Sets the "Welcome to |
:<code><nowiki>{{subst:Welcome to Wikipedia||4}}</nowiki></code> → Sets the "Welcome to Elite Dangerous Wiki" section heading in the banner to level 4 (<code><nowiki>====</nowiki></code>) |
||
:<code><nowiki>{{subst:Welcome to Wikipedia||Message from a fellow editor}}</nowiki></code> → Sets the text as a ''normal'' level 2 (<code><nowiki>==</nowiki></code>) section heading above the template message's banner (The template is the message within the section titled "''Message from a fellow editor''"). |
:<code><nowiki>{{subst:Welcome to Wikipedia||Message from a fellow editor}}</nowiki></code> → Sets the text as a ''normal'' level 2 (<code><nowiki>==</nowiki></code>) section heading above the template message's banner (The template is the message within the section titled "''Message from a fellow editor''"). |
||
| Line 39: | Line 39: | ||
* {{Tl|Welcome}} |
* {{Tl|Welcome}} |
||
* {{Tl|Welcome cookie}} |
* {{Tl|Welcome cookie}} |
||
* [[ |
* [[Project:Template documentation|Welcome templates]] |
||
<includeonly>{{Sandbox other|| |
<includeonly>{{Sandbox other|| |
||
Latest revision as of 15:49, 31 October 2026
| This is a documentation subpage for Template:Welcome to Wikipedia. It may contain usage information, categories and other content that is not part of the original template page. |
__EXPECTED_UNCONNECTED_PAGE__
Usage
| This template should always be substituted – use {{subst:Welcome to Wikipedia}}. Any accidental transclusions will be automatically substituted by a bot. |
Without substitution of this template (or its short versions), features of the template will not work correctly.
- Use to welcome new editors and provide links to useful information spread out across Wikipedia.
- To add the default version to a user's talk page, write
{{subst:Welcome to Wikipedia}}. To see how it works, transclude it in various forms to your own talk page or sandbox. - Can be given to IP or registered users. If given to an IP user, the content changes to advise the user to create an account, pointing out a few of the benefits. This applies to long IP addresses as well as the shorter IP addresses.
- An extra message can be appended to the header message. If desired, include your message as the first parameter, using a pipe (
|) separator following the template name.- If your added message includes any equal signs (
=), each one must be wrapped in doubled braces, as in{{=}}. E.g., a diff should be written ashttps://en.wikipedia.org/w/index.php?title{{=}}Template_talk:Welcome_to_Wikipedia&curid{{=}}32277318&diff{{=}}465230338&oldid{{=}}465229550. - If your added message includes one or more pipes (
|), replace each instance with{{!}}. This calls the template {{!}}, which adds a pipe in its place.
- If your added message includes any equal signs (
- The template contains a section heading in the banner by default, so there is no need to add one manually.
- The section heading level is
<h2 />(==) by default, but can be changed by specifying the desired level as the second parameter. If the second parameter is a number from 2 to 6 (inclusive), the banner's heading will be set to the corresponding level. - If the second parameter is a non-numeric text (i.e., more than just "3" or "24" or an IP address), it will be used as a level 2 (
==) section heading placed outside (above) the template body (as normal).
- The section heading level is
- There is no need to sign your addition as the template already contains code that does it for you. This will not work if you do not substitute the template.
- A shorthand of
{{subst:Wtw}}or{{subst:Greet}}may be used for this template.
Syntax simplified
{{subst:Welcome to Wikipedia
|Extra message appended to header message
|Section level if number between 2 and 6 (inclusive) or level 2 section heading if text string
}}
Examples
{{subst:Welcome to Wikipedia}}→ The standard version for registered or IP users. Auto detects whether IP or not.{{subst:Welcome to Wikipedia|Thanks for correcting the spelling at [[Example]].}}→ Adds an extra message to the header.{{subst:Welcome to Wikipedia||4}}→ Sets the "Welcome to Elite Dangerous Wiki" section heading in the banner to level 4 (====){{subst:Welcome to Wikipedia||Message from a fellow editor}}→ Sets the text as a normal level 2 (==) section heading above the template message's banner (The template is the message within the section titled "Message from a fellow editor").
Notes
Find examples of this template substed onto User talk pages using this advanced search link. (Patience; this may take a while.)
See also
- {{Welcome}}
- {{Welcome cookie}}
- Welcome templates