Difference between revisions of "Template:AntiVandal"

From blackwiki
Jump to navigation Jump to search
blackwiki>NumeroEins
blackwiki>Mdann52
(Simplifying)
Line 1: Line 1:
<noinclude>==How to use:==
+
<includeonly>
 
+
== {{safesubst:CURRENTMONTHNAME}} {{safesubst:CURRENTYEAR}} ==
*Like this: '''<nowiki>{{subst:AntiVandal|Article|Template|Thank you.}} -- ~~~~</nowiki>'''
+
{{subst:{{{2|{{{1}}}}}}}} ~~<noinclude> </noinclude>~~
*You '''must''' use '''[[WP:SUBST|subst]]''' before you call this template.
+
</includeonly>
*In place of '''Article''' insert the affected article title.
+
{{doc}}
*For '''Template''' you may include any [[WP:UTM|user warning]] template (uw-vand2, uw-ad1, uw-delete1, uw-spam4, etc.)
 
*You may substitute your own comment in place of '''Thank you.'''
 
== Sample ==
 
Here is a sample of the template's output, using '''<nowiki>{{subst:AntiVandal|Article|uw-vand3|Thank you.}} -- ~~~~</nowiki>'''
 
 
 
Result:
 
<blockquote>
 
== August 2007 ==
 
=== Friday, August 24 ===
 
==== Re: [[:Article]] ====
 
{{{icon|[[File:Ambox warning pn.svg|25px|alt=|link=]] }}}Please stop. If you continue to [[Wikipedia:Vandalism|vandalize]] Wikipedia{{{{{subst|}}}#if:Article|, as you did to [[:Article]]}}, you ''will'' be [[Wikipedia:Blocking policy|blocked]] from editing. {{{{{subst|}}}#if:Thank you.|Thank you.|}}<!-- Template:uw-vandalism3 --> --'''YourSignature''' 05:10, 24 August 2007 (UTC)</blockquote>
 
 
 
----
 
*Here is an example of how the substituted code may read after you save your edit:
 
 
 
<blockquote><nowiki><!--Template:AntiVandal!-->== August 2007 ==</nowiki><br>
 
<nowiki>=== Friday, August 24 ===</nowiki><br>
 
<nowiki>==== Re: [[:Article]] ====</nowiki><br>
 
<nowiki>{{{icon|[[File:Ambox warning pn.svg|25px|alt=|link=]] }}}Please stop. If you continue to [[Wikipedia:Vandalism|vandalize]] Wikipedia{{{{{subst|}}}#if:Article|, as you did to [[:Article]]}}, you ''will'' be [[Wikipedia:Blocking policy|blocked]] from editing. {{{{{subst|}}}#if:Thank you.|Thank you.|}}<!-- Template:uw-vandalism3 --> --'''YourSignature''' 05:10, 24 August 2007 (UTC)
 
</nowiki></blockquote>
 
 
 
That's it! The actual template is below, if you're interested.
 
 
 
== Editing this template ==
 
'''PLEASE FEEL FREE TO IMPROVE THIS TEMPLATE!'''
 
 
 
'''Important:'''  Whenever you change the output of the template, you should update the sample [[Wikipedia:Template_messages/User_talk_namespace/Multi_level_details#Meta|here]]!
 
 
 
Parameters:
 
# Title of article
 
# Template to be called
 
# Extra text to be added to the end.
 
Link for testing: [[Template:X1]]
 
 
 
<noinclude><!-- Template originally created by Falconus. -->
 
</noinclude><!--Template:AntiVandal!-->== {{<includeonly>safesubst:</includeonly>CURRENTMONTHNAME}} {{<includeonly>safesubst:</includeonly>CURRENTYEAR}} ==
 
 
 
== See also: ==
 
*[[WP:TT#Multi_level_templates|Multi-level templates]]
 
*[[Wikipedia:Template messages/User talk namespace/Multi level details|Multi-level details]]
 
 
 
[[Category:User warning templates|{{PAGENAME}}]]
 
</noinclude>
 

Revision as of 13:59, 2 December 2013

Template documentation[view] [edit] [history] [purge]

How to use:

  • Like this: {{subst:AntiVandal|Article|Template|Thank you.}}
  • You must use subst before you call this template.
  • In place of Article insert the affected article title.
  • For Template you may include any user warning template (uw-vand2, uw-ad1, uw-delete1, uw-spam4, etc.)
  • You may substitute your own comment in place of Thank you.

Sample

Here is a sample of the template's output, using {{subst:AntiVandal|Article|uw-vand3|Thank you.}}

Result:


December 2013

Warning icon Please stop your disruptive editing. If you continue to vandalize Wikipedia, you may be blocked from editing. --Mdann52talk to me! 11:09, 3 December 2013 (UTC)


That's it!

Editing this template

PLEASE FEEL FREE TO IMPROVE THIS TEMPLATE!

Important: Whenever you change the output of the template, you should update the sample here!

Parameters:

  1. Title of article
  2. Template to be called
  3. Extra text to be added to the end.

Link for testing: Template:X1

See also: