Difference between revisions of "Template:Delmon/doc"

From blackwiki
Jump to navigation Jump to search
imported>Swpb
imported>Swpb
Line 5: Line 5:
 
This template (short for '''deletion monitor''') monitors articles that have been proposed or nominated for deletion, and shows status information at a glance, including:
 
This template (short for '''deletion monitor''') monitors articles that have been proposed or nominated for deletion, and shows status information at a glance, including:
 
*Whether the page <u>exists</u>, and whether it is a <u>redirect</u>
 
*Whether the page <u>exists</u>, and whether it is a <u>redirect</u>
*Whether the page is tagged for <u>AfD</u> or <u>proposed deletion</u>
+
*Whether the page is tagged for <u>AfD</u>, <u>proposed deletion</u>, or <u>speedy deletion</u>
 
*Whether the page has been <u>edited</u> since being tagged for deletion
 
*Whether the page has been <u>edited</u> since being tagged for deletion
 
*Whether the page has an <u>expired prod</u> and may be deleted
 
*Whether the page has an <u>expired prod</u> and may be deleted
Line 54: Line 54:
 
| <sup>'''AfD'''</sup> (linked) || Page has an AfD tag
 
| <sup>'''AfD'''</sup> (linked) || Page has an AfD tag
 
|-
 
|-
| <font color="red"><sup>'''prod/AfD removed!'''</sup></font> || No prod or AfD tag is present on the page
+
| <font color="red"><sup>'''prod/AfD removed!'''</sup></font> || No prod, AfD, or CSD tag is present on the page
 
|-
 
|-
 
| <font color=red><sup>'''prev nom!'''</sup></font> || Page has been to AfD previously; prod cannot be used to delete it
 
| <font color=red><sup>'''prev nom!'''</sup></font> || Page has been to AfD previously; prod cannot be used to delete it
Line 85: Line 85:
 
**{{Tree list/final branch}} If page is not a redirect:
 
**{{Tree list/final branch}} If page is not a redirect:
 
***A link to the page is shown
 
***A link to the page is shown
***'''If the page is ''not'' tagged with a prod template''':
+
*** '''If no prod or CSD template is present''':
 
****If the page is tagged with an AfD template, <sup>'''AfD'''</sup> is shown, linked to the latest AfD
 
****If the page is tagged with an AfD template, <sup>'''AfD'''</sup> is shown, linked to the latest AfD
 
****{{Tree list/final branch}} Otherwise, <font color="red"><sup>'''prod/AfD removed!'''</sup></font> is shown
 
****{{Tree list/final branch}} Otherwise, <font color="red"><sup>'''prod/AfD removed!'''</sup></font> is shown
***{{Tree list/final branch}} '''If a prod template is present''':
+
***{{Tree list/final branch}} '''If the page is tagged with a prod or CSD template''':
 
****If page has been to AfD before, <font color=red><sup>'''prev nom!'''</sup></font> is shown, indicating that proposed deletion is not allowed
 
****If page has been to AfD before, <font color=red><sup>'''prev nom!'''</sup></font> is shown, indicating that proposed deletion is not allowed
 
****{{Tree list/final branch}} Otherwise:
 
****{{Tree list/final branch}} Otherwise:

Revision as of 13:24, 1 November 2016

This template (short for deletion monitor) monitors articles that have been proposed or nominated for deletion, and shows status information at a glance, including:

  • Whether the page exists, and whether it is a redirect
  • Whether the page is tagged for AfD, proposed deletion, or speedy deletion
  • Whether the page has been edited since being tagged for deletion
  • Whether the page has an expired prod and may be deleted

Existing articles are shown with status tags. Pages which do not exist, or are redirects, are indicated with a small marker ( or R respectively).

Template:Tocright

Usage

Typical: {{delmon | <article> | <timestamp> }}
Full: {{delmon | <article> | <timestamp> | linkfor=<value> | nocheck }}

The template may be used with all arguments empty, useful for when article titles will be inserted later.

Argument Value Use Required? Notes
1 page title Article to be tracked Optional If no argument is given, template will show nothing rather than giving an error
2 timestamp of proposed deletion 1) Linking of recent entries
2) Independent tracking of PROD expiration
Optional Copy from the substituted prod tag, or insert with {{subst:CURRENTTIMESTAMP}}
(If timestamp is absent or invalid, template looks for text indicating that prod has expired)
linkfor numeric Number of days for which deleted or redirected pages will remain linked Optional Default is 60 days
3 "nocheck" Disables check of most recent page editor Optional Must be third unnamed argument

Outputs

Output Meaning
Page does not exist
(linked) Page does not exist (tagged less than [linkfor] days ago)
R Page is a redirect
R (linked) Page is a redirect (tagged less than [linkfor] days ago)
[Article title] • Page exists and is not a redirect
For existing article pages:
AfD (linked) Page has an AfD tag
prod/AfD removed! No prod, AfD, or CSD tag is present on the page
prev nom! Page has been to AfD previously; prod cannot be used to delete it
(ed) (linked) Most recent page editor differs from that of the page where this template is deployed (disable with "nocheck")
overdue Page has been prod tagged for over seven days, and may be deleted

Example output

In this example of typical use, {{delmon}} is called multiple times, to monitor several articles at once. In this way, several hundred articles can be monitored at a glance:

■■R■■■R■■R Made up article 1AfDR Made up article 2overdue Made up article 3prod/AfD removed!Made up article 4(ed)Made up article 5Made up article 6prev nom!

Logical flow

The template performs a branching series of conditional checks to determine page status, as shown in the adjacent flowchart:

Template:Tree list

Template:Tree list/end