Template:Warning: Difference between revisions

From Inkipedia, the Splatoon wiki
(Used subst: so that the huge #switch: function is not saved to pages; only the result of the function should be saved.)
m (substitution is required for these examples to render correctly)
Line 57: Line 57:


<code><nowiki>{{subst:warning}}</nowiki></code> produces:
<code><nowiki>{{subst:warning}}</nowiki></code> produces:
{{warning}}
{| class="warningbox"
| [[File:Warning Icon.png|40px|link=]] <span style="font-size: large;">'''Warning'''</span>
 
This is a warning to stop your inappropriate behavior. '''Please follow the rules or you will be blocked.''' Thank you. <nowiki>~~~~</nowiki>
|}


'''Using reason numbers or reason keywords'''
'''Using reason numbers or reason keywords'''


<code><nowiki>{{subst:warning|1}}</nowiki></code> or <code><nowiki>{{subst:warning|vandal}}</nowiki></code> produces:
<code><nowiki>{{subst:warning|1}}</nowiki></code> or <code><nowiki>{{subst:warning|vandal}}</nowiki></code> produces:
{{warning|1}}
{| class="warningbox"
[[Category:Templates]]
| [[File:Warning Icon.png|40px|link=]] <span style="font-size: large;">'''Warning'''</span>
 
This is a warning to stop your inappropriate behavior&nbsp;([[Inkipedia:Policy/Vandalism|vandalizing or negatively changing articles]]). '''Please follow the rules or you will be blocked.''' Thank you. <nowiki>~~~~</nowiki>
|}


'''Using a custom reason'''
'''Using a custom reason'''


<code><nowiki>{{subst:warning|impersonating someone}}</nowiki></code> produces:
<code><nowiki>{{subst:warning|impersonating someone}}</nowiki></code> produces:
{{warning|impersonating someone}}
{| class="warningbox"
| [[File:Warning Icon.png|40px|link=]] <span style="font-size: large;">'''Warning'''</span>
 
This is a warning to stop your inappropriate behavior&nbsp;(impersonating someone). '''Please follow the rules or you will be blocked.''' Thank you. <nowiki>~~~~</nowiki>
|}


[[Category:Templates]]
[[Category:Templates]]

Revision as of 23:10, 13 February 2021

Place this template on editors' talk pages to warn them of violating Inkipedia's policy. Keep in mind that one should avoid templating the regulars.

This template must be substituted. The template will also automatically place your signature, so do not sign this warning as you normally would a message.

Syntax

Type {{subst:warning}} in a new section on an editor's talk page.

The template also accepts an optional parameter for the reason for the warning: {{subst:warning|reason}}. This should be used whenever possible.

Numbers or keywords can be used to quickly include a reason. Most reason numbers are from the 7 NOs of Inkipedia. The following reason codes are available:

Example

Using without a reason

{{subst:warning}} produces:

Warning Icon.png Warning

This is a warning to stop your inappropriate behavior. Please follow the rules or you will be blocked. Thank you. ~~~~

Using reason numbers or reason keywords

{{subst:warning|1}} or {{subst:warning|vandal}} produces:

Warning Icon.png Warning

This is a warning to stop your inappropriate behavior (vandalizing or negatively changing articles). Please follow the rules or you will be blocked. Thank you. ~~~~

Using a custom reason

{{subst:warning|impersonating someone}} produces:

Warning Icon.png Warning

This is a warning to stop your inappropriate behavior (impersonating someone). Please follow the rules or you will be blocked. Thank you. ~~~~