Template:Delete/doc: Difference between revisions

(Corr.)
(→‎Examples: Example with Blank template)
 
(8 intermediate revisions by 2 users not shown)
Line 2: Line 2:
__NOTOC__
__NOTOC__
==Usage==
==Usage==
{{tlf|'''delete'''}} creates an information box telling the user that the page is proposed for deletion. The box will show at the position on the page where you put the template and stretch horizontally to fill at least 75 % of the width of the available space, and vertically depending on how many rows of text are needed.
{{tlf|'''delete'''}} creates an information box telling the user that the page is proposed for deletion. The box will show at the position on the page where you put the template and stretch horizontally to fill the width of the available space, and vertically depending on how many rows of text are needed.


To mark a page for deletion, add the template to the top of the page. The page will automatically be added to the category {{category|Delete}}.
To flag a page for deletion, add the template to the top of the page. The page will automatically be added to the category {{category|Delete}}.


{{admon/caution|Do not remove the page content!|Deletion of entire pages or all the content on a page should only be done by MozillaWiki administrators. The page will be listed under {{category|Delete}}, and eventually deleted.}}
{{admon/caution|Do not remove the page content!|Deletion of entire pages or all the content on a page should <u>'''only'''</u> be done by MozillaWiki administrators. The page will be listed under {{category|Delete}}, and eventually deleted.}}


==Parameter==
==Parameter==
There are 2 parameters, of which 1 is unnamed and required, and 1 is named and optional.
There are 3 parameters, of which 1 is unnamed and required, and 2 are named and optional.


===Syntax===
===Syntax===
To use the template, type {{tlc|delete|''reason for deletion''&nbsp;|date{{=}}''date of reporting''&nbsp;}}.
{| class="wikitable" style="background-color: white;"
|-
! Case !! Template code !! Placement
|-
| Entire page || {{tlc|delete|''reason for deletion''&nbsp;}} || Top of page
|-
| Section || {{tlc|delete|''reason for deletion''&nbsp;|section{{=}}yes}} || Beneath section header
|-
| Date || {{tlc|delete|''reason for deletion''&nbsp;|date{{=}}&nbsp;}} || style="text-align: center;" | &#8212;
|-
| Full || {{tlc|delete|''reason for deletion''&nbsp;|date{{=}}&nbsp;|section{{=}}yes&nbsp;}} || style="text-align: center;" | &#8212;
|}
 
If request about empty page, you can include [[Template:Blank]] {{tlc|blank|''another one reason for deletion''}}
<br>Example: {{tlc|delete|{{tlc|blank|''another one reason for deletion''}} }}


===Required parameter===
===Required parameter===
Line 24: Line 38:
* {{tlc|delete|<big>'''1'''</big>}}
* {{tlc|delete|<big>'''1'''</big>}}


===Optional parameter===
===Optional parameters===
====date====
====date====
;<big>Date of reporting</big>
;<big>Date of reporting</big>
Line 34: Line 48:
;<big>Usage</big>
;<big>Usage</big>
* {{tlc|delete|1|<big>'''date{{=}}'''date value</big>}}
* {{tlc|delete|1|<big>'''date{{=}}'''date value</big>}}
====section====
;<big>Changes the words "page" and "article" to "section"</big>
If you want to propose only a section of the page to be deleted, use this parameter.
Any value you specify will be interpreted as "{{samp|true}}", and invoke the parameter; i.e. {{para|section|yes}} will yield the same result as {{para|section|haggis}}.
;<big>Usage</big>
* {{tlc|delete|1|<big>'''section'''</big>{{=}}yes}}


==Examples==
==Examples==
{| class="wikitable" style="background-color: white;"
{| class="wikitable" style="background-color: white;"
|-
|-
! Case !! What you type !! What you see
! Case !! style="width: 450px;" | What you type !! What you see
|-
| Basic use || {{tlc|delete|Since this page is …}} || {{delete/doc/example template|Since this page is …}}
|-
| With date || {{tlc|delete|Since this page is …|date{{=}}2015-01-02}} || {{delete/doc/example template|Since this page is …|date=2015-01-02}}
|-
|-
| Basic use || {{tlc|delete|This page should be deleted by pure spite}} || {{delete/doc/example template|This page should be deleted by pure spite}}
| For section || {{tlc|delete|Since this section is …|section{{=}}yes}} || {{delete/doc/example template|Since this section is …|section=yes}}
|-
|-
| With date || {{tlc|delete|This page should be deleted by pure spite|date{{=}}2015-01-02}} || {{delete/doc/example template|This page should be deleted by pure spite|date=2015-01-02}}
| With Blank Template || {{tlc|delete|{{tlc|blank|''other reasons to delete''}} }} ||  
|}
|}


==See also==
==See also==
* {{tl|blackboxwarning}}
* {{tl|duplicate}}
* {{tl|draft}}
* {{tl|draft}}
* {{tl|outdated}}
* {{tl|outdated}}
* {{tl|restricted}}
* {{tl|spam}}
* {{tl|warning}}
* {{tl|warning}}
* {{tl|blackboxwarning}}


<!-- Add categories below -->
<!-- Add categories below -->
<includeonly>
<includeonly>
[[Category:MozillaWiki maintenance templates|Delete]]
[[Category:MozillaWiki maintenance templates|Delete]]
[[Category:Message box templates|delete]]
</includeonly>
</includeonly>

Latest revision as of 11:10, 4 December 2024

Edit-copy green.svg
This is a documentation subpage for Template:Delete.
It contains usage information, categories and other content that is not part of the original template page.

Usage

{{delete}} creates an information box telling the user that the page is proposed for deletion. The box will show at the position on the page where you put the template and stretch horizontally to fill the width of the available space, and vertically depending on how many rows of text are needed.

To flag a page for deletion, add the template to the top of the page. The page will automatically be added to the category Category:Delete.

Stop (medium size).png
Do not remove the page content!
Deletion of entire pages or all the content on a page should only be done by MozillaWiki administrators. The page will be listed under Category:Delete, and eventually deleted.

Parameter

There are 3 parameters, of which 1 is unnamed and required, and 2 are named and optional.

Syntax

Case Template code Placement
Entire page {{delete|reason for deletion }} Top of page
Section {{delete|reason for deletion |section=yes}} Beneath section header
Date {{delete|reason for deletion |date= }}
Full {{delete|reason for deletion |date= |section=yes }}

If request about empty page, you can include Template:Blank {{blank|another one reason for deletion}}
Example: {{delete|{{blank|another one reason for deletion}}}}

Required parameter

1

Reason for deletion

This parameter is used to provide an explanation and a motivation for why the page should be deleted. Give a good description of the circumstances. It is unnamed, so no parameter name needs to be entered.

The text you enter will be prefixed by the string "This page is proposed for deletion: ".

Usage
  • {{delete|1}}

Optional parameters

date

Date of reporting

You can add the date of your report by using this parameter.

Note
  • Use a date format that can be understood across cultures, languages and borders, i.e. either by using the ISO standard (YYYY-MM-DD), or by giving the name of the month in full or as an abbreviation (e.g. 24 Aug, 2014).
Usage
  • {{delete|1|date=date value}}

section

Changes the words "page" and "article" to "section"

If you want to propose only a section of the page to be deleted, use this parameter.

Any value you specify will be interpreted as "true", and invoke the parameter; i.e. |section=yes will yield the same result as |section=haggis.

Usage
  • {{delete|1|section=yes}}

Examples

Case What you type What you see
Basic use {{delete|Since this page is …}}
Do not edit this page THIS PAGE IS PROPOSED FOR DELETION
Since this page is …
With date {{delete|Since this page is …|date=2015-01-02}}
Do not edit this page THIS PAGE IS PROPOSED FOR DELETION 2015-01-02
Since this page is …
For section {{delete|Since this section is …|section=yes}}
Do not edit this page THIS SECTION IS PROPOSED FOR DELETION
Since this section is …
With Blank Template {{delete|{{blank|other reasons to delete}}}}

See also