Template:Service awards/select/doc

This is the Service awards/select sub-template.

This template is called by Service awards. Do not use this template directly; use instead.

Purpose
This template is used by 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 template to make the template easier to understand and less work for MediaWiki to parse.