Jump to content

Template:Service awards/select/doc

From Wikipedia, the free encyclopedia

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]

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]
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

[edit]