Difference between revisions of "Template:Initiated"

From blackwiki
Jump to navigation Jump to search
imported>Galobtter
m (Protected "Template:Initiated": Persistent vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access] (indefinite)))
imported>Wbm1058
 
Line 1: Line 1:
{{#ifeq:{{{from|}}}||<span style="color: #{{#ifeq:{{Yesno|{{{done|{{{closed|no}}}}}}}}|yes|000|{{#ifexpr:{{#invoke:String|match|{{Time ago|{{{1|now}}}|magnitude=days|ago=}}|%d*|nomatch=0}}<{{#switch:{{lc:{{{type|rfc}}}}}|tban|block=3|afd|cfd|ffd|mfd|rfd|tfd|drv|mrv|rm|rmv|xfd=7|rfa|rfc|#default=30}}|00F|{{#ifexpr:{{#invoke:String|match|{{Time ago|{{{1|now}}}|magnitude=days|ago=}}|%d*|nomatch=0}}>{{#switch:{{lc:{{{type|rfc}}}}}|tban|block=7|afd|cfd|ffd|mfd|rfd|tfd|drv|mrv|rm|rmv|xfd=21|rfa|rfc|#default=60}}|F00; font-weight: bold|008000}}}}}};" class="wpRfC {{#invoke:String|match|{{Time ago|{{{1|now}}}|magnitude=days|ago=}}|%d*|nomatch=0}}_{{lc:{{{type|rfc}}}}}">}}(Initiated {{Time ago|{{{1|{{{from|now}}}}}}|magnitude=days}} on {{#time:j F Y|{{{1|{{{from|now}}}}}}}}){{#ifeq:{{{from|}}}||</span><includeonly>{{#ifeq:{{Yesno|{{{done|{{{closed|no}}}}}}}}|yes||{{#ifexpr:{{#invoke:String|match|{{Time ago|{{{1|now}}}|magnitude=days|ago=}}|%d*|nomatch=0}}>{{#switch:{{lc:{{{type|rfc}}}}}|tban|block=7|afd|cfd|ffd|mfd|rfd|tfd|drv|mrv|rm|rmv|xfd=21|rfa|rfc|#default=60}}|{{#ifexpr:{{Str find|{{lc:{{FULLPAGENAME}}}}|archive}}<=0|[[Category:Administrative backlog]]}}}}}}</includeonly>}}<noinclude>
+
{{#ifeq:{{{from|}}}||<span style="color: #{{#ifeq:{{Yesno|{{{done|{{{closed|no}}}}}}}}|yes|000|{{#ifexpr:{{#invoke:String|match|{{Time ago|{{replace|{{{1|now}}}|‎|}}|magnitude=days|ago=}}|%d*|nomatch=0}}<{{#switch:{{lc:{{{type|rfc}}}}}|tban|block=3|afd|cfd|ffd|mfd|rfd|tfd|drv|mrv|rm|rmv|xfd=7|rfa|rfc|#default=30}}|00F|{{#ifexpr:{{#invoke:String|match|{{Time ago|{{replace|{{{1|now}}}|‎|}}|magnitude=days|ago=}}|%d*|nomatch=0}}>{{#switch:{{lc:{{{type|rfc}}}}}|tban|block=7|afd|cfd|ffd|mfd|rfd|tfd|drv|mrv|rm|rmv|xfd=21|rfa|rfc|#default=60}}|F00; font-weight: bold|008000}}}}}};" class="wpRfC {{#invoke:String|match|{{Time ago|{{replace|{{{1|now}}}|‎|}}|magnitude=days|ago=}}|%d*|nomatch=0}}_{{lc:{{{type|rfc}}}}}">}}(Initiated {{Time ago|{{replace|{{{1|{{{from|now}}}}}}|‎|}}|magnitude=days}} on {{#time:j F Y|{{replace|{{{1|{{{from|now}}}}}}|‎|}}}}){{#ifeq:{{{from|}}}||</span><includeonly>{{#ifeq:{{Yesno|{{{done|{{{closed|no}}}}}}}}|yes||{{#ifexpr:{{#invoke:String|match|{{Time ago|{{replace|{{{1|now}}}|‎|}}|magnitude=days|ago=}}|%d*|nomatch=0}}>{{#switch:{{lc:{{{type|rfc}}}}}|tban|block=7|afd|cfd|ffd|mfd|rfd|tfd|drv|mrv|rm|rmv|xfd=21|rfa|rfc|#default=60}}|{{#ifexpr:{{Str find|{{lc:{{FULLPAGENAME}}}}|archive}}<=0|[[Category:Administrative backlog]]}}}}}}</includeonly>}}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 19:51, 9 February 2021

<span style="color: #Expression error: Unexpected < operator.;" class="wpRfC _rfc">(Initiated Template:Time ago on 11 September 2025)

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

Usage

This template adds some color coding to requests on WP:ANRFC that allows a closer to quickly see which ones have been waiting the longest for a close.

{{Initiated|DATE|type=|done=}}

Replace DATE with the day the discussion was initiated in "DAY MONTH YEAR" format with the month as a word (example: 22 January 2014).

Set the type by filling in the |type= parameter with the discussion type's code (which will be automatically normalized to lowercase letters). Valid values are: afd; block; cfd; drv; ffd; mfd; mrv; rfa; rfc; rfd; rm; rmv; tban; tfd; xfd.[clarification needed] If another value is used, or this parameter is left blank, it defaults to rfc.

It color codes into three categories:

  • If the request was initiated less than 30 (7 for XfD, 3 for Topic Ban requests) days ago, the template text will display in blue.
  • If the request was initiated 31 to 60 (8 to 21 for XfD, 3 to 7 for Topic Ban requests) days ago, the template text will display in green.
  • If the request was initiated more than 60 (21 for XfD, 7 for Topic Ban requests) days ago, the template text will display in red.

In addition to the visual colorings, requests more than 60 (21 for XfD/xRv, 7 for Topic Ban requests) days old will also add non-"archive" pages the template is used on to Category:Administrative backlog.

You can also use this to mention previous discussions by using the |from= parameter which will prevent coloring and categorization but will use the same styling.

When requests are completed, please mark them with |done=yes to remove the formatting and disable the categorization.


No description.

Template parameters

ParameterDescriptionTypeStatus

no description

Unknownoptional