Template:Delete: Difference between revisions

Jump to navigation Jump to search
Add template data
(Tip on when to use Template:Delete-sp)
(Add template data)
 
Line 27: Line 27:


== Usage ==
== Usage ==
Add the template to the top of the article, file or template you want to nominate for deletion.
Add the template to the top of the article, file or template you want to nominate for deletion. If you need arguments to support your reason, please do so on the page's talk page, allowing others to discuss the nomination.
 
<templatedata>
If you need arguments to support your reason, please do so on the page's talk page, allowing others to discuss the nomination.
{
 
"params": {
<nowiki>{{</nowiki>'''delete'''
"day": {
<nowiki>|</nowiki> reason =
"label": "Day",
<nowiki>|</nowiki> day    = {{CURRENTDAY2}}
"type": "number",
<nowiki>|</nowiki> month = {{CURRENTMONTH}}
"autovalue": "{{subst:CURRENTDAY2}}",
<nowiki>|</nowiki> year   = {{CURRENTYEAR}}
"required": true,
<nowiki>|</nowiki> ''nocat''  =
"description": "Day of the deletion proposal"
<nowiki>}}</nowiki>
},
 
"month": {
All parameters except '''nocat''' are mandatory.
"label": "Month",
 
"type": "number",
; reason:           Explanation for why the page needs to be deleted.
"autovalue": "{{subst:CURRENTMONTH}}",
 
"required": true,
; day, month, year: Two digit day of the month and month, and four-digit year when the template was added, for example '''{{CURRENTDAY2}}''', '''{{CURRENTMONTH}}''', and '''{{CURRENTYEAR}}''' for today.
"description": "Month of the deletion proposal"
 
},
; nocat:             If '''true''' automatic categorisation of the page will be suppressed. Useful for demonstration purposes.
"year": {
"label": "Year",
"type": "number",
"autovalue": "{{subst:CURRENTYEAR}}",
"required": true,
"description": "Year of the deletion proposal"
},
"reason": {
"label": "Reason",
"description": "Why should this wiki entry be deleted?",
"type": "string",
"required": true
},
"nocat": {
"description": "If true automatic categorisation of the page will be suppressed. Useful for demonstration purposes.",
"label": "Suppress automatic categorisation",
"type": "boolean"
}
},
"paramOrder": [
"reason",
"day",
"month",
"year",
"nocat"
],
"description": "This template will mark articles, templates or files considered for deletion."
}
</templatedata>


== Example ==
== Example ==

Navigation menu