Template:Service award progress/doc

A template to show progress towards a service award, in both edits and days. The values in the second progress bar will sometimes be fractional because of the varying number of days that go in a month.

Usage


The first four parameters (year, month, day, and edits) are all required and should be set in the same manner as those in Service awards. So:


 * year 4-digit year of account creation (e.g. "2001")
 * month Numerical month of account creation (e.g. "9" for September or "11" for November)
 * day Numerical day of account creation (e.g. "8" or "21")
 * edits Number of user edits

Optional parameters

 * genderoverride – If you don't want the system to indicate the gender set in your preferences, set this parameter to the one you want to be indicated (either,  ,  , or any other desired pronoun).
 * style Style to be appended to the box's style (at the moment, )
 * styleoverride Style which completely replaces the default box style.
 * displayall – When given any non-empty value, forces the display of both the "time" progress bar and the "edits" progress bar.
 * edit_count_url custom URL fragment for the edit counter. The default URL fragment used is . If you want the "quick and simple edit counter", use  . The value for this parameter will have your username appended to it.

TemplateData
{	"params": { "styleoverride": { "description": "Style which completely replaces the default box style.", "type": "string", "label": "Style (override default)" },		"style": { "type": "string", "description": "Style to be appended to the box's style (see doc)", "label": "Style" },		"year": { "required": true, "description": "Year of account creation (4 digits)", "type": "number", "label": "Year of account creation" },		"month": { "required": true, "description": "Month of account creation (2 digits)", "example": "\"09\" for September", "type": "number", "label": "Month of account creation" },		"day": { "required": true, "description": "Day of account creation (2 digits)", "label": "Day of account creation", "example": "\"01\" for the first day of the month", "type": "number" },		"edits": { "required": true, "description": "Number of user edits", "type": "number", "label": "User edits" },		"genderoverride": { "type": "string", "description": "If you don't want the system to indicate the gender set in your preferences, set this parameter to the one you want to be indicated (either he, she, he or she, or any other desired pronoun).", "default": "Gender set in your preferences.", "suggested": true, "label": "Gender" },		"displayall": { "type": "unknown", "description": "When given any non-empty value, forces the display of both the \"time\" progress bar and the \"edits\" progress bar", "label": "Display both bars" },		"edit_count_url": { "type": "url", "description": "Custom URL fragment for the edit counter. The value for this parameter will have your username appended to it.", "default": "https://xtools.wmflabs.org/ec/en.wikipedia.org/", "label": "Edit count URL" }	},	"paramOrder": [ "year", "month", "day", "edits", "genderoverride", "style", "styleoverride", "displayall", "edit_count_url" ],	"description": "A template to show progress towards a service award, in both edits and days. The values in the second progress bar will sometimes be fractional because of the varying number of days that go in a month.", "format": "inline" }