Wikipedia:WikiProject User warnings/Design guidelines: Difference between revisions

Content deleted Content added
That's how they start, add what level 2 warnings often start with
 
(14 intermediate revisions by 9 users not shown)
Line 8:
* Templates will not include <nowiki>~~~~</nowiki>
* All templates made obsolete are to have the relevant redirects added.
* All templates should include a comment containing the template name in the format <code><nowiki><!-- Template:templatename --></nowiki></code>. For example, the {{t|uw-vandalism1}} template contains the comment <code><nowiki><!-- Template:uw-vandalism1 --></nowiki></code>). This is to assist counter-vandalism tools and bots in detecting and identifying user warning templates, and to be transparent to recipients.
 
==Severity levels==
Line 14:
 
===Multi-level templates for vandalism===
There are 4 levels of template for editing actions that can be considered [[WP:VANDAL|vandalism]]. For editing actions that can include severe, or gross examples of vandalism, a '''level 4im''' template is also included in the template series.
 
* '''Level 1''' – A notice – [[Wikipedia:Assume good faith|Assumes good faith]]. Generally includesstarts with "Welcome to Wikipedia" or some variant.
* '''Level 2''' – Caution – No faith assumption; just a note. Often starts with "Please do not..." or "Please refrain from...".
* '''Level 3''' – Warning – Assumes bad faith; cease and desist. GenerallyStarts includeswith "Please stop".
* '''Level 4''' – Final Warning – Assumes bad faith; strong cease and desist, last warning. Starts with something like "You may be blocked from editing the next time you..." in bold.
* '''Level 4im''' – Only Warning – Assumes bad faith; very strong cease and desist, first and only warning. Generally used in the case of excessive or continuous disruption from a user or specific IP.
 
Line 27:
* '''Level 1''' – A notice – [[Wikipedia:Assume good faith|Assumes good faith]]. Generally includes "Welcome to Wikipedia" or some variant.
* '''Level 2''' – Caution – No faith assumption; just a note.
* '''Level 3''' – Warning – Assumes bad faith; cease and desist. Generally includesStarts with "Please stop" or "Stop".
* '''Level 4''' – Final warning – Starts with "You may be blocked from editing the next time...".
 
===Single issue notices===
Line 38 ⟶ 39:
===Civility===
{{see also|Wikipedia:Please do not bite the newcomers|Wikipedia:Civility|Wikipedia:Etiquette}}
Regardless of the severity level of the template, any user warning should be a model of civility (even for the most destructive vandal). Remember thanthat when you use a warning template, you may be seen to do so in Wikipedia's name.
 
===Language===
Line 44 ⟶ 45:
* Keep the message of the template 'on-track', avoid [[digression]].
* Try to keep sentences as concise as possible, see [[WP:MOS|Wikipedia's manual of style]] for advice on writing style.
* Level 1 and Level 2 templates, and single issue notices should [[WP:AGF|assume good faith]]. Beginning the message with "Welcome to Wikipedia" or "Hello" and ending with "Thank you" is considered appropriate.
* [[Colloquialism]]s should be avoided in all templates.
* The message should identify specific behavior. If possible, avoid "or" statements and other language that would not be used had the message been written out by a human.
 
====Block advisories====
Line 76 ⟶ 78:
===Parameters===
====Default values====
Nearly every parameter should have a default value, such that misuse does not break the template. You can set the default value of a parameter by using piped syntax (<code><nowiki>{{{1|default value}}}</nowiki></code>). For example, the template below takes a parameter; whichit expects the user to supply the propera [[pronounnoun]], but if they don't, it uses a default noun ("This").
<pre>{{{1|He or sheThis}}} is cool.</pre>
 
Supplied with the pronoun withnoun <code><nowiki>{{template|HeWikipedia}}</nowiki></code>, the template will expand to "HeWikipedia is cool". Ignoring<code><nowiki>{{template|This thehelp parameterpage}}</nowiki></code> will expand to "This help page is cool". If the with <code><nowiki>{{template}}</nowiki></code>, the template will defaultuse the default value, and expand to "He or sheThis is cool".
 
====Named syntax====
Line 99 ⟶ 101:
===Block template CSS===
Wikipedia allows registered users to maintain a [[Help:User style|personal stylesheet]] located at [[Special:Mypage/monobook.css|user:username/skin.css]], where 'username' is the username and 'skin' is the name of the skin in use (usually monobook). To help users take full advantage of this feature, block templates should be enclosed in a CSS container with the "user-block" class.
<presyntaxhighlight lang=html><div class="user-block">template message</div></presyntaxhighlight>
 
Should the user wish to, they can customize the appearance of all block templates by adding CSS to their user stylesheet. For example, the following code adds a dark red background with white text.
<pre>*syntaxhighlight lang=css>.user-block { background:#C00 !important; color:#FFF; }</presyntaxhighlight>
 
===Compatibility with lists===