Difference between revisions of "Template:AfC backlog elimination drive"

From blackwiki
Jump to navigation Jump to search
blackwiki>Technical 13
(Ahh.. day should use "j" instead of "t")
blackwiki>Technical 13
(Fix for duration)
Line 1: Line 1:
 
{{Ombox
 
{{Ombox
 
   | text = {{#ifeq:{{{1|}}}|none|The next backlog elimination drive has not been scheduled.|{{countdown
 
   | text = {{#ifeq:{{{1|}}}|none|The next backlog elimination drive has not been scheduled.|{{countdown
     | year       = {{#time:Y|{{{1|1/1/100}}}}}
+
     | year         = {{#time:Y|{{{1|1/1/100}}}}}
     | month       = {{#time:m|{{{1|1/1/100}}}}}
+
     | month         = {{#time:m|{{{1|1/1/100}}}}}
     | day         = {{#time:j|{{{1|1/1/100}}}}}
+
     | day           = {{#time:j|{{{1|1/1/100}}}}}
     | hour       = 00
+
     | hour         = 00
     | minute     = 00
+
     | minute       = 00
     | duration   = {{#time:t|{{{1|1/1/100}}}}}
+
     | duration     = {{#time:t|{{{1|1/1/100}}}}}
     | event       = the [[Wikipedia:WikiProject Articles for creation/{{#time:F Y|{{{1|1/1/100}}}}} Backlog Elimination Drive|next backlog elimination drive]] starts.
+
    | duration unit = days
     | eventstart = The [[Wikipedia:WikiProject Articles for creation/{{#time:F Y|{{{1|1/1/100}}}}} Backlog Elimination Drive|backlog elimination drive]] started on {{#time:F "1st," Y|{{{1|1/1/100}}}}} (UTC).
+
     | event         = the [[Wikipedia:WikiProject Articles for creation/{{#time:F Y|{{{1|1/1/100}}}}} Backlog Elimination Drive|next backlog elimination drive]] starts.
     | eventend   = The [[Wikipedia:WikiProject Articles for creation/{{#time:F Y|{{{1|1/1/100}}}}} Backlog Elimination Drive|backlog elimination drive]] ended on {{#time:F {{#time:t|{{{1|1/1/100}}}}}, Y|{{{1|1/1/100}}}}} (UTC).
+
     | eventstart   = The [[Wikipedia:WikiProject Articles for creation/{{#time:F Y|{{{1|1/1/100}}}}} Backlog Elimination Drive|backlog elimination drive]] started on {{#time:F "1st," Y|{{{1|1/1/100}}}}} (UTC).
 +
     | eventend     = The [[Wikipedia:WikiProject Articles for creation/{{#time:F Y|{{{1|1/1/100}}}}} Backlog Elimination Drive|backlog elimination drive]] ended on {{#time:F {{#time:t|{{{1|1/1/100}}}}}, Y|{{{1|1/1/100}}}}} (UTC).
 
   }} }}
 
   }} }}
 
   {{Navbar|AfC backlog elimination drive|mini=1|style=float: right;}}
 
   {{Navbar|AfC backlog elimination drive|mini=1|style=float: right;}}
 
}}<noinclude>{{Documentation}}<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES TO THE /doc SUBPAGE, THANKS --></noinclude>
 
}}<noinclude>{{Documentation}}<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES TO THE /doc SUBPAGE, THANKS --></noinclude>

Revision as of 14:36, 1 October 2013

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

The sole purpose of this template is to provide a way to announce the time of the next AfC backlog drive, or the lack thereof. To this end, the template has one parameter that can be set to each of the three different states.

Usage

The only place this template should be used is on the AfC WikiProject's Backlog elimination drives page via the header template.

Parameters

This template takes one optional unnamed parameter. The three possible values of that parameter are:

  • none - No drive scheduled. The default state.
  • start month/year - Countdown to start. Shows a countdown to the start of the next drive.

Examples

Who can I blame for this template?

If you have any questions or comments, feel free to yell at Technical 13 (talk⧼dot-separator⧽contribs) or APerson (talk⧼dot-separator⧽contribs).

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for AfC backlog elimination drive

The sole purpose of this template is to provide a way to announce the time of the next AfC backlog drive, or the lack thereof. The only place this template should be used is on the AfC WikiProject's Backlog elimination drives page.

Template parameters

ParameterDescriptionTypeStatus
Type1

This template takes one optional unnamed parameter. The three possible values of that parameter are:

  • <kbd>none</kbd> - '''No drive scheduled.''' The default state.
  • <kbd>start</kbd> - '''Countdown to start.''' Shows a countdown to the start of the next drive. The template should be left in this state until shortly after the drive actually starts.
  • <kbd>end</kbd> - '''Countdown to end.''' Shows a countdown to the end of the upcoming or current drive. The template should be changed to this state one day before the start of the upcoming or current drive.

    Default
    none
Stringrequired