https://www.limswiki.org/index.php?title=Template:Db-meta/doc&feed=atom&action=historyTemplate:Db-meta/doc - Revision history2024-03-29T11:16:53ZRevision history for this page on the wikiMediaWiki 1.36.1https://www.limswiki.org/index.php?title=Template:Db-meta/doc&diff=12949&oldid=prevShawndouglas: Created as needed.2013-10-24T17:38:21Z<p>Created as needed.</p>
<p><b>New page</b></p><div>{{Documentation subpage}}<br />
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --><br />
<br />
===Usage===<br />
This template is a meta-template used to create the other speedy deletion templates used for nominating pages for [[LIMSWiki:Deletion policy|speedy deletion]]. '''Do not''' attempt to use this template directly on articles. For a generic speedy deletion template, see {{tlx|db}}.<br />
<br />
===Syntax===<br />
Basic syntax:<br />
<br />
<pre><br />
{{db-meta<br />
|bot={{{bot|}}}<br />
|raw={{{raw|}}}<br />
|criterion=<br />
|1=<br />
|2=<br />
|temp=<br />
|summary=<br />
}}</pre><br />
<br />
Extended syntax:<br />
<br />
<pre><br />
{{db-meta<br />
|bot={{{bot|}}}<br />
|raw={{{raw|}}}<br />
|criterion=<br />
|1=<br />
|2=<br />
|rationale=<br />
|summary=<br />
|self=<br />
|notes=<br />
|anote=<br />
|temp=<br />
|temp2=<br />
|sig=<br />
|image=<br />
|wiki=<br />
|blanked=<br />
|blanked-text=<br />
|pleaseblank=<br />
|divblank=<br />
}}</pre><br />
<br />
=== Parameters ===<br />
;Required parameters<br />
<br />
*<code>criterion</code> 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 [[WP:CSD#T2|CSD T2]]!<br />
*<code>1</code> 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 (&amp;#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<br />
<br />
;Recommended parameters<br />
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.<br />
<br />
*<code>2</code> is the text which appears in italics after <code>1</code>. This should be a complete sentence, minus trailing punctuation (a full stop is included in db-meta).<br />
*<code>temp</code> is the user warning template which corresponds to the CSD criterion. For instance, {{tlx|db-a1}} uses [[Template:empty-warn]], so passes the parameter {{para|temp|empty-warn}}. All such warning templates should be categorised at [[:Category:CSD warning templates]]<br />
*<code>summary</code> 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.<br />
*<code>bot</code> 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 <code><nowiki>|bot={{{bot|}}}</nowiki></code>. It should not be called directly from db-meta.<br />
*<code>raw</code> is used for generating a simple deletion message with no message box. It should be passed through to the specific deletion template, using <code><nowiki>|raw={{{raw|}}}</nowiki></code>. This parameter is used by {{tl|db-multiple}} to generate the notices about individual speedy deletion criteria.<br />
<br />
;Optional parameters<br />
<br />
*<code>rationale</code> adds a custom deletion rationale in red after the speedy deletion criterion number.<br />
*<code>self</code>: if this parameter exists, there is no message about not removing speedy deletion templates from things you have created/uploaded yourself.<br />
*<code>notes</code> 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.<br />
*<code>anote</code> adds an extra custom note to the message only visible to admins.<br />
*<code>temp2</code> allows the addition of extra parameters to the end of the user warning template specified in {{para|temp}}. <br />
*<code>sig</code>: if this exists, the four tildes normally appended to the user warning template text are removed.<br />
*<code>image</code> adds an image to the right-hand side of the template. Include only the image name; do not add "File:" or "Image:".<br />
*<code>wiki</code> is the [[Help:Interwikimedia links|interwikimedia link]] for the image named in {{para|image}}, if it is not on the English Wikipedia.<br />
*<code>blanked</code>: if this exists, a message box is shown beneath the main deletion template that says "This page has been blanked as a courtesy."<br />
*<code>blanked-text</code> is the custom text for the "blanked" message box. {{para|blanked}} must exist for this to work. <br />
*<code>pleaseblank</code>: 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."<br />
*<code>divblank</code>: if this parameter exists, the code <code><nowiki><div id="AttackPage" style="display:none"></nowiki></code> is added to the end of the deletion template, which prevents all subsequent content on the page from being displayed.<br />
<br />
=== Other notes ===<br />
*All CSD templates based ''directly'' on db-meta should ideally use {{tlx|db doc}} for centralised documentation. <br />
*All CSD templates using db-meta produce two invisible spans which may be useful for client-side java script:<br />
**<code><nowiki><div id="delete-criterion"></div></nowiki></code> contains only the CSD criterion ("A1", "P2", "R3", etc)<br />
**<code><nowiki><div id="delete-reason"></div></nowiki></code> contains a complete, legible deletion log summary which is suitable for preloading into the deletion confirmation screen.<br />
<br />
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||<br />
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --><br />
[[Category:Speedy deletion templates|Meta]]<br />
[[Category:LIMSwiki metatemplates]]<br />
[[Category:LIMSwiki templates which apply NOINDEX]]<br />
}}<br />
<br />
</includeonly></div>Shawndouglas