Template:Service awards/select
Jump to navigation
Jump to search
18
This is the {{Service awards/select}} sub-template.
This template is called by {{Service awards}}. Do not use this template directly; use {{Service awards}} instead.
Purpose
This template is used by {{Service awards}} to determine which award to display, based on an editor's length of service and number of edits. The output is a number from 1 to 18 reflecting the level of award, or 0 if the editor is not entitled to any award. The other half of the classification work is made by {{Service awards/select2}}, as a workaround to avoid a known template limit.
This code is separate from the main {{Service awards}} template to make the template easier to understand and less work for MediaWiki to parse.
Parameters
| Parameter | Definition |
|---|---|
| date | The date when the editor registered with Wikipedia, in yyyy-mm-dd format (passed from {{Service awards}}). |
| edits | Number of edits (passed from {{Service awards}}). |
See also
| The above documentation is transcluded from Template:Service awards/select/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |