Difference between revisions of "Template:Delmon/doc"

From blackwiki
Jump to navigation Jump to search
imported>Swpb
imported>Swpb
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, AfD, or CSD tag is present on the page
+
| <font color="red"><sup>'''del tag 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 67: Line 67:
  
 
<div style="background: white; border:1px solid black;">
 
<div style="background: white; border:1px solid black;">
'''■■<small>R</small>■■■<small>R</small>■■[[redlink|<small>R</small>]][[redlink|■]]''' [[WP:TEST|Made up article 1]]<sup>'''[[WP:TEST|AfD]]'''</sup> • '''[[redlink|<small>R</small>]][[redlink|■]][[redlink|■]]''' [[WP:TEST|Made up article 2]]<sup>'''overdue'''</sup> • '''[[redlink|■]]''' [[WP:TEST|Made up article 3]]<font color="red"><sup>'''prod/AfD removed!'''</sup></font> • [[WP:TEST|Made up article 4]]<sup>'''[https://en.wikipedia.org/w/index.php?title=made_up_article_4&action=history (ed)]'''</sup> • [[WP:TEST|Made up article 5]] • [[WP:TEST|Made up article 6]]<font color=red><sup>'''prev nom!'''</sup></font>
+
'''■■<small>R</small>■■■<small>R</small>■■[[redlink|<small>R</small>]][[redlink|■]]''' [[WP:TEST|Made up article 1]]<sup>'''[[WP:TEST|AfD]]'''</sup> • '''[[redlink|<small>R</small>]][[redlink|■]][[redlink|■]]''' [[WP:TEST|Made up article 2]]<sup>'''overdue'''</sup> • '''[[redlink|■]]''' [[WP:TEST|Made up article 3]]<font color="red"><sup>'''del tag removed!'''</sup></font> • [[WP:TEST|Made up article 4]]<sup>'''[https://en.wikipedia.org/w/index.php?title=made_up_article_4&action=history (ed)]'''</sup> • [[WP:TEST|Made up article 5]] • [[WP:TEST|Made up article 6]]<font color=red><sup>'''prev nom!'''</sup></font>
 
</div>
 
</div>
  
Line 87: Line 87:
 
*** '''If no prod or CSD template is present''':
 
*** '''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>'''del tag removed!'''</sup></font> is shown
 
***{{Tree list/final branch}} '''If the page is tagged with a prod or CSD template''':
 
***{{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

Revision as of 13:26, 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
del tag 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 3del tag 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