Difference between revisions of "Template:Db-t3"

From blackwiki
Jump to navigation Jump to search
imported>Timrollpickering
m (→‎top: bypass category redirect, replaced: Candidates for speedy deletion as templates with incorrect formatting → Templates for speedy deletion with incorrect formatting (4))
imported>Primefac
(BOLD change - set up message to be more like PROD, to indicate when the template can be deleted, not when it was tagged (less maths))
 
Line 6: Line 6:
 
*<i>It is a substantial duplication of {{#if:{{{module|}}}|[[Module:{{{module|}}}]]|the template {{tl|{{{t|{{{template|{{{2|}}}}}}}}}}}}}, or</i>
 
*<i>It is a substantial duplication of {{#if:{{{module|}}}|[[Module:{{{module|}}}]]|the template {{tl|{{{t|{{{template|{{{2|}}}}}}}}}}}}}, or</i>
 
*<i>It is a hardcoded instance of {{#if:{{{module|}}}|part of [[Module:{{{module|}}}]]|template {{tl|{{{t|{{{template|{{{2|}}}}}}}}}}}}}, where the same functionality could be provided by that {{#if:{{{module|}}}|module|template}}.</i><br />
 
*<i>It is a hardcoded instance of {{#if:{{{module|}}}|part of [[Module:{{{module|}}}]]|template {{tl|{{{t|{{{template|{{{2|}}}}}}}}}}}}}, where the same functionality could be provided by that {{#if:{{{module|}}}|module|template}}.</i><br />
{{#if: {{{ts|{{{1|}}}}}}|{{#iferror: {{#time:d F Y|{{{ts|{{{1}}}}}}}}|{{error|Invalid time specified. Please use form <nowiki>{{db-t3|~~~~~|name of template duplicated}}</nowiki>}}|{{#switch:{{age switch|d={{{ts|{{{1}}}}}}}}|1=<b>This template has been listed for more than seven days (tagged {{#time:d F Y|{{{ts|{{{1}}}}}}}}), and may be deleted if it meets the criteria given above|#default=<b>Templates in this category may be deleted after being tagged for seven days. This template was tagged on {{#time:j F Y|{{{ts|{{{1<noinclude>|</noinclude>}}}}}}}}}}</b>}}|{{error|No time specified. Please use form <nowiki>{{db-t3|~~~~~|name of template duplicated}}</nowiki>}}}}<b>
+
{{#if: {{{ts|{{{1|}}}}}}
 +
|{{#iferror: {{#time:d F Y|{{{ts|{{{1}}}}}}}}
 +
  |{{error|Invalid time specified. Please use form <nowiki>{{db-t3|~~~~~|name of template duplicated}}</nowiki>}}
 +
  |<b>{{#ifexpr:{{#time:U}}>{{#time:U|{{{ts|{{{1|30200000000000}}}}}} +7 days}}
 +
        |This template may be deleted without further notice as it has been tagged for seven days
 +
        |The template may be deleted if this message remains in place for seven days , i.e. after {{#time:H:i, j F Y|{{{ts|{{{1}}}}}} +7 days}} (UTC)
 +
      }}</b>
 +
  }}
 +
|{{error|No time specified. Please use form <nowiki>{{db-t3|~~~~~|name of template duplicated}}</nowiki>}}
 +
}}<b>
 
|temp=Db-t3-notice
 
|temp=Db-t3-notice
 
|summary=Duplicate, redundant, or hardcoded template
 
|summary=Duplicate, redundant, or hardcoded template

Latest revision as of 22:55, 26 September 2020

Template:NOINDEX

Template documentation[view] [edit] [history] [purge]

Template:Speedy deletion templates

This template is used to tag pages for speedy deletion under the speedy deletion criteria, specifically CSD T3. There is a separate template for each criterion – see the table to the right.

This template places the page into the categories: Candidates for speedy deletion and Candidates for speedy deletion as redundant templates seven days after they are tagged.

Usage

The template should be placed at the top of the page to be deleted. Note the five "~" instead of the usual four for a signature.

If the date parameter is not correctly specified, along with at least one of the reasoning parameters, the page is categorised into Category:Templates for speedy deletion with incorrect formatting.

Parameters

{{db-t3|~~~~~|TemplateName}}

where TemplateName is the name of the template which has been duplicated or hardcoded

{{db-t3|~~~~~|module=ModuleName}}

where ModuleName is the name of the Lua module whose code replaces the template, rendering it redundant

{{db-t3|~~~~~|rationale=ExampleReason}}.

{{db-t3|bot=ExampleBot|~~~~~|TemplateName}}

Bot accounts will specify the |bot= parameter to notify the reviewing admin that the page was tagged by an automated process.

See also