Template:Service awards/select/sandbox
Jump to navigation
Jump to search
| File:Edit In Sandbox Icon - Color.svg | This is the template sandbox page for Template:Service awards/select (diff). |
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
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
[edit source]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
[edit source]| 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}}). |