Difference between revisions of "Template:Delmon/doc"

From blackwiki
Jump to navigation Jump to search
imported>Swpb
imported>WOSlinker
(tidy style for better HTML5 compatibility)
Line 52: Line 52:
 
| <sup>'''AfD'''</sup> (linked) || Page has an AfD tag
 
| <sup>'''AfD'''</sup> (linked) || Page has an AfD tag
 
|-
 
|-
| <font color="red"><sup>'''del tag removed!'''</sup></font> || No prod, AfD, or CSD tag is present on the page
+
| <span style="color:red;"><sup>'''del tag removed!'''</sup></span> || 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
+
| <span style="color:red;"><sup>'''prev nom!'''</sup></span> || Page has been to AfD previously; prod cannot be used to delete it
 
|-
 
|-
 
| <sup>'''(ed)'''</sup> (linked) || Most recent page editor differs from that of the page where this template is deployed (disable with "nocheck")
 
| <sup>'''(ed)'''</sup> (linked) || Most recent page editor differs from that of the page where this template is deployed (disable with "nocheck")
Line 65: Line 65:
  
 
<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>'''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>
+
'''■■<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]]<span style="color:red;"><sup>'''del tag removed!'''</sup></span> • [[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]]<span style="color:red;"><sup>'''prev nom!'''</sup></span>
 
</div>
 
</div>
  
Line 85: Line 85:
 
*** '''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>'''del tag removed!'''</sup></font> is shown
+
****{{Tree list/final branch}} Otherwise, <span style="color:red;"><sup>'''del tag removed!'''</sup></span> 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, <span style="color:red;"><sup>'''prev nom!'''</sup></span> is shown, indicating that proposed deletion is not allowed
 
****{{Tree list/final branch}} Otherwise:
 
****{{Tree list/final branch}} Otherwise:
 
*****If "nocheck" argument is not given:  
 
*****If "nocheck" argument is not given:  

Revision as of 12:32, 28 December 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 Required? Use Notes
1 page title Optional Article to be tracked If no argument is given, template will show nothing rather than giving an error
2 timestamp of proposed deletion Optional Allows:
1) Linking of recent entries
2) Independent tracking of PROD expiration
Copy from the substituted prod tag, or insert with {{subst:CURRENTTIMESTAMP}}
1) Template will only link to nonexistent/redirect pages if they were tagged recently, to reduce the number of expensive function calls
2) If timestamp is absent or invalid, template looks for text indicating that prod has expired
linkfor numeric Optional Number of days for which deleted or redirected pages will remain linked Default is 60 days
3 "nocheck" Optional Disables check of most recent page editor 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