Difference between revisions of "Template:Db-meta"
Shawndouglas (talk | contribs) (Reverting) |
Shawndouglas (talk | contribs) (Tesing) |
||
Line 10: | Line 10: | ||
| NA | | NA | ||
| | | | ||
| See [[ | | See [[Wikipedia:Criteria for speedy deletion#{{uc:{{{criterion}}}}}|CSD {{uc:{{{criterion}}}}}]]. | ||
}}</b><!-- | }}</b><!-- | ||
-->{{#if: {{{rationale|}}} | -->{{#if: {{{rationale|}}} | ||
Line 17: | Line 17: | ||
<!-- If raw != yes, then include the full deletion template with message box --> | <!-- If raw != yes, then include the full deletion template with message box --> | ||
|<!-- | |<includeonly>__NOINDEX__</includeonly><!-- | ||
-->{{mbox | -->{{mbox | ||
| class = mbox-db | | class = mbox-db | ||
Line 24: | Line 24: | ||
| style = font-size:95%; | | style = font-size:95%; | ||
| text = | | text = | ||
<b><i>This | <b><i>This {{pagetype|defaultns=all}} {{#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> <i>{{{2}}}</i>. <b>|. }}{{#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|}}}| <span style="color:red; font-weight:bold;">{{{rationale}}}</span>}} | ||
<p class="verbose">If this | <p class="verbose">If this {{pagetype|defaultns=all}} 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 {{#ifeq:{{NAMESPACE}}|File|files you have uploaded|pages that you have created yourself}}'''. If you {{#ifeq:{{NAMESPACE}}|File|uploaded this file|created this page}}, and you disagree with the given reason for deletion, you can click the button below and leave a message, explaining why you believe this {{pagetype|defaultns=all}} should not be deleted. You can {{talk other|check back later to see|also [[{{TALKPAGENAME}}|visit the talk page]] to check}} if you have received a response to your message. | ||
</p> | </p> | ||
Line 33: | Line 33: | ||
type=commenttitle | type=commenttitle | ||
default=Contested deletion | default=Contested deletion | ||
preload=Template:Hangon preload {{#switch:{{uc:{{{criterion|NA}}}}}|G3|G10|G11|G12|A1|A2|A3|A7|A9|A10|R3|F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|C1|T2|T3={{uc:{{{criterion}}}}}|#default=generic}} | preload=Template:Hangon preload {{#switch:{{uc:{{{criterion|NA}}}}}|G3|G10|G11|G12|A1|A2|A3|A7|A9|A10|A11|R3|F1|F2|F3|F4|F5|F6|F7|F8|F9|F10|F11|C1|T2|T3={{uc:{{{criterion}}}}}|#default=generic}} | ||
hidden=yes | hidden=yes | ||
page={{#titleparts:{{TALKPAGENAME}}|255}} | page={{#titleparts:{{TALKPAGENAME}}|255}} | ||
Line 40: | Line 40: | ||
}} | }} | ||
<p class="verbose">Note that once tagged with this notice, this | <p class="verbose">Note that once tagged with this notice, this {{pagetype|defaultns=all}} may be deleted at any time if it unquestionably meets the speedy deletion criteria, or if an explanation {{talk other|added below this notice|posted to the talk page}} is found to be insufficient.</p> | ||
<!-- Add notice about using the talk page, or a notice for administrators if the talk page exists --> | <!-- Add notice about using the talk page, or a notice for administrators if the talk page exists --> | ||
Line 50: | Line 50: | ||
-- Message for admins -- | -- Message for admins -- | ||
--><small><span class="sysop-show">''[[ | --><small><span class="sysop-show">''[[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:{{#ifeq:{{{criterion}}}|NA||[[WP:CSD#{{uc:{{{criterion}}}}}|{{uc:{{{criterion}}}}}]]:}} {{{summary|}}}}}&action=delete}} deletion]{{#if:{{{bot|}}}|, as this page was tagged by a [[Wikipedia:Bot policy|bot]]}}{{#if:{{{anote|}}}|{{{anote}}}|.}}'' Consider checking Google: [[google:{{urlencode:{{PAGENAME}}}}|web]], [[tools:~mzmcbride/redirector/googlearchivesearch/{{PAGENAME}}|news]].<br/></span>This page was [{{fullurl:{{FULLPAGENAME}}|diff=cur}} last edited] {{#if: {{REVISIONUSER}} | by [[{{ns:2}}:{{REVISIONUSER}}|{{REVISIONUSER}}]] <small>{{toolbar|1=[[Special:Contributions/{{REVISIONUSER}}|contribs]]|2=[[Special:Log/{{REVISIONUSER}}|logs]]}}</small> }} at {{#time:H:i|{{REVISIONTIMESTAMP}}}} UTC ([{{fullurl:{{FULLPAGENAME}}|action=purge}} {{time ago|{{REVISIONTIMESTAMP}}}}])</small> | ||
<!-- | <!-- | ||
Line 57: | Line 57: | ||
-->{{#if: {{{temp|}}} | -->{{#if: {{{temp|}}} | ||
| | | | ||
:<small>''Please consider placing the [[Help: | :<small>''Please consider placing the [[Help: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><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>''<!-- | :''<small>on the talk page of the author.</small>''<!-- | ||
Line 72: | Line 72: | ||
-- End main mbox code, start courtesy blanking notices and div blanking tag -- | -- End main mbox code, start courtesy blanking notices and div blanking tag -- | ||
-->{{#if: {{{blanked|}}} | {{mbox|image=none|text= {{{blanked-text|This page has been [[ | -->{{#if: {{{blanked|}}} | {{mbox|image=none|text= {{{blanked-text|This page has been [[Wikipedia:Deletion policy#Courtesy blanking|blanked as a courtesy]].}}}}} |}}{{#if: {{{pleaseblank|}}} | {{mbox|type=delete|text=<big>{{red|Please [[Wikipedia:Courtesy blanking|blank this page]] so that it only contains the deletion template.}}</big>}} |}}{{#if: {{{divblank|}}} | <div id="AttackPage" style="display:none"> |}} | ||
}}<!-- End if statement for "raw" parameter--><noinclude> | }}<!-- End if statement for "raw" parameter--><noinclude> |
Revision as of 21:26, 22 January 2015
This template may meet Wikipedia's criteria for speedy deletion{{{1}}}. See [[Wikipedia:Criteria for speedy deletion#{{{CRITERION}}}|CSD {{{CRITERION}}}]].
If this template does not meet the criteria for speedy deletion, 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 the given reason for deletion, you can click the button below and leave a message, explaining why you believe this template should not be deleted. You can also visit the talk page to check if you have received a response to your message. Note that once tagged with this notice, this template may be deleted at any time if it unquestionably meets the speedy deletion criteria, or if an explanation posted to the talk page is found to be insufficient. If you have already posted to the talk page but this message is still showing up, try purging the page cache. This page was last edited by Shawndouglas (contribs | logs) at 21:26 UTC (9 years ago) |
Usage
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}}.
Syntax
Basic syntax:
{{db-meta |bot={{{bot|}}} |raw={{{raw|}}} |criterion= |1= |2= |temp= |summary= }}
Extended syntax:
{{db-meta |bot={{{bot|}}} |raw={{{raw|}}} |criterion= |1= |2= |rationale= |summary= |self= |notes= |anote= |temp= |temp2= |sig= |image= |wiki= |blanked= |blanked-text= |pleaseblank= |divblank= }}
Parameters
- Required parameters
criterion
is the Criterion number from LIMSWiki:Deletion policy. 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 ( ) 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
- Recommended parameters
These parameters are generally used in all speedy deletion templates based on db-meta, and some may break other templates/scripts if they are omitted.
2
is the text which appears in italics after1
. 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 templatessummary
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.bot
is the name of the bot account that tagged the page for deletion, if applicable. This should be passed through to the specific deletion template, using|bot={{{bot|}}}
. It should not be called directly from db-meta.raw
is used for generating a simple deletion message with no message box. It should be passed through to the specific deletion template, using|raw={{{raw|}}}
. This parameter is used by {{db-multiple}} to generate the notices about individual speedy deletion criteria.
- Optional parameters
rationale
adds a custom deletion rationale in red after the speedy deletion criterion number.self
: if this parameter exists, there is no message about not removing speedy deletion templates from things you have created/uploaded yourself.notes
is a space for notes. It appears after the notice about using the talk page for contesting speedy deletions, and before the message only visible to admins.anote
adds an extra custom note to the message only visible to admins.temp2
allows the addition of extra parameters to the end of the user warning template specified in|temp=
.sig
: if this exists, the four tildes normally appended to the user warning template text are removed.image
adds an image to the right-hand side of the template. Include only the image name; do not add "File:" or "Image:".wiki
is the interwikimedia link for the image named in|image=
, if it is not on the English Wikipedia.blanked
: if this exists, a message box is shown beneath the main deletion template that says "This page has been blanked as a courtesy."blanked-text
is the custom text for the "blanked" message box.|blanked=
must exist for this to work.pleaseblank
: if this exists, a message box is shown beneath the main deletion template that says "Please blank this page so that it only contains the deletion template."divblank
: if this parameter exists, the code<div id="AttackPage" style="display:none">
is added to the end of the deletion template, which prevents all subsequent content on the page from being displayed.
Other notes
- All CSD templates based directly on db-meta should ideally use {{db doc}} for centralised documentation.
- 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.
The above documentation is transcluded from Template:Db-meta/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |