Difference between revisions of "Template:Db-meta"

From Chevy Wiki
Jump to navigation Jump to search
m (1 revision)
 
m (1 revision)
 
Line 1: Line 1:
{{Languageicon|de|German}}<noinclude>
{{mbox
| type  = speedy
| image = none
| style = font-size:95%;
| text  =
<b><i>This page {{#if:{{{bot|}}}|was tagged by [[User:{{{bot}}}|{{{bot}}}]], because it}} may meet Wikipedia’s [[Wikipedia:Criteria for speedy deletion|criteria for speedy deletion]]</i>{{{1}}}{{#if:{{{2|}}}|.</b>&#32;<i>{{{2}}}</i>. <b>|.&#32;}}{{#ifeq:{{{criterion}}}|NA||See [[Wikipedia:Criteria for speedy deletion#{{uc:{{{criterion}}}}}|CSD {{uc:{{{criterion}}}}}]].}}</b><span id="delete-reason" style="display:none">{{urlencode:{{#ifeq:{{{criterion}}}|NA||[[WP:CSD#{{uc:{{{criterion}}}}}|{{uc:{{{criterion}}}}}]]:}} {{{summary|}}}}}</span><span id="delete-criterion" style="display:none">{{uc:{{{criterion}}}}}</span>{{#if:{{{rationale|}}}|&#32;<span style="color:red; font-weight:bold;">{{{rationale}}}</span>}}
 
If this page does not meet the criteria for speedy deletion, {{#ifeq:{{{self}}}|yes|please remove this notice.|or you intend to fix it, please remove this notice, but '''do not remove this notice from pages that you have created yourself'''. If you created this page and you disagree with its proposed speedy deletion, please add:
:<code><nowiki>{{hangon}}</nowiki></code><br>
'''directly below''' this tag, and then explain why you believe this {{#ifeq:{{NAMESPACE}}|{{ns:0}}|article|{{lc:{{NAMESPACE}}}} page}} should not be deleted on {{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}|this talk page|[[{{TALKPAGENAME}}|{{#ifeq:{{NAMESPACE}}|User|the user's talk page|its talk page}}]]}}. This will alert administrators to permit you the time to write your explanation. See [[WP:FIRST|help writing your first article]].}}
 
{{#if:{{{notes|}}}|<span class=plainlinks>{{{notes}}}</span></small><br>}}<!--
 
--><small><span class="plainlinks">''[[Wikipedia:Administrators|Administrators]]: check [[Special:Whatlinkshere/{{FULLPAGENAME}}|links]], [{{fullurl:{{FULLPAGENAME}}|action=history}} history] ([{{fullurl:{{FULLPAGENAME}}|diff=0}} last]), and [{{fullurl:Special:Log|page={{FULLPAGENAMEE}}}} logs] before [{{fullurl:{{FULLPAGENAME}}|wpReason={{urlencode:{{{summary|}}} {{#ifeq:{{{criterion}}}|NA||([[WP:CSD#{{uc:{{{criterion}}}}}|CSD {{uc:{{{criterion}}}}}]])}}}}&action=delete}} deletion]{{#if:{{{bot|}}}|, as this page was tagged by a [[Wikipedia:Bot policy|bot]]}}{{#if:{{{anote|}}}|{{{anote}}}|.}}'' Consider checking [[google:{{urlencode:{{PAGENAME}}}}|Google]].</span></small><!--
 
-->{{#if:{{{temp|}}}|
:<small>''Please consider placing the [[Wikipedia:Template|template]]:''</small>
:''<small><code><nowiki>{{subst:</nowiki>[[Template:{{{temp}}}|{{{temp}}}]]<nowiki>|</nowiki>{{FULLPAGENAME}}<nowiki>|header=1</nowiki>{{{temp2|}}}<nowiki>}} </nowiki>{{#ifeq:{{{sig|x}}}|x|<nowiki>~~~~</nowiki>}}</code></small>''
:''<small>on the talk page of the author.</small>''}}<!--
 
-->{{#if:{{{image|}}}|</td><td style="text-align:center;padding:0;font-size:x-small;">[[Image:{{{image}}}|150x175px]]<br/>''[[:Image:{{{image}}}|{{{image}}}]]''}}<!--
 
-->}}<noinclude>


{{pp-template|small=yes}}
{{pp-template|small=yes}}
{{Documentation}}
{{documentation}}  
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 14:55, 3 February 2009

[edit] Template-info.svg Template documentation

This template is a meta-template used to create the other speedy deletion templates used for nominating pages for speedy deletion. Do not attempt to use this template directly on articles. For a generic speedy deletion template, see {{db}}.

Usage

{{db-meta
|bot={{{bot|}}}
|criterion=
|1=
|2=
|temp=
|summary=
}}

Where:

  • criterion is the Criterion number from Wikipedia:Speedy deletion criteria. Do not create a CSD template which does not already have a CSD criterion, or it will itself be deleted under CSD T2!
  • 1 is the text which will go in bold immediately after "may qualify for speedy deletion". Note that there is no space between the word "deletion" and the parameter - if you want to continue the sentence without punctuation, use an HTML space (&#32;) to prevent the template 'eating' the leading space. A trailing full stop is already included in db-meta, so don't add it to this parameter
  • 2 is the text which appears in italics after 1. This should be a complete sentence, minus trailing punctuation (a full stop is included in db-meta).
  • temp is the user warning template which corresponds to the CSD criterion. For instance, {{db-a1}} uses Template:empty-warn, so passes the parameter |temp=empty-warn. All such warning templates should be categorised at Category:CSD warning templates
  • summary is the brief summary which will be preloaded into the deletion confirmation screen. There is no need to include the CSD criterion as this is added automatically.

Other notes

  • All CSD templates based directly on db-meta should ideally use {{db doc}} for centralised documentation.
  • For templates which have variants, like {{db-g6}} and {{db-a7}}, it is recommended to base the variants on those templates, rather than directly on db-meta. For instance, {{db-band}} calls {{db-a7}} which in turn calls db-meta, rather than db-band calling db-meta directly.
  • All CSD templates using db-meta produce two invisible spans which may be useful for client-side java script:
    • <div id="delete-criterion"></div> contains only the CSD criterion ("A1", "P2", "R3", etc)
    • <div id="delete-reason"></div> contains a complete, legible deletion log summary which is suitable for preloading into the deletion confirmation screen.

mk:Шаблон:Db-meta nl:Sjabloon:Nuweg, want ru:Шаблон:Deletebecause tw:Template:Db-meta km:Template:Db-meta