Template:W-short/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:W-short. It contains usage information, categories and other content that is not part of the original template page. |
If you plan to make breaking changes to this template, move it, or nominate it for deletion, please notify Twinkle's users and maintainers at Wikipedia talk:Twinkle as a courtesy, as this template is used in the standard installation of Twinkle. Thank you! |
This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
This template should always be substituted (i.e., use {{subst:W-short}}). Any accidental transclusions will be automatically substituted by a bot. |
Usage
- To greet a user with this template just as it appears above (your signature will automatically replace the
~~~~
), place the following wikicode on the user's talk page:
{{subst:W-short}}
- To add a message before the last sentence, use:
{{subst:W-short|message}}
- Replace message with your desired message. It will be inserted into the greeting before "Happy editing!"
- To add an additional message specific to anonymous users which recommends creating an account, use:
{{subst:W-short|anon=true}}
- To add a border, use:
{{subst:W-short|border=color}}
- Replace color with the name or code of the color you'd like to use. This can be in either named (e.g.,
DarkOrchid
) or hexadecimal (e.g.,#9932CC
) format. For a list of colors, see web colors.
- Appears not to work well with
|heading=
- To add a heading to the greeting (changes "Welcome..." to a level-2 heading), use:
{{subst:W-short|heading=true}}
- Appears not to work well with
|border=
- To change the wording of the heading, use:
{{subst:W-short|headtext=your text}}
- Replace your text with type in the text you want to replace "Welcome..." with.
- The above options can be combined:
{{subst:W-short|One more thing:|border=DarkOrchid|heading=true|headtext=Welcome to Wikipedia}}
See also