Jump to content

Template:Service awards/compose/doc

From Wikipedia, the free encyclopedia

This is the {{Service awards/compose}} sub-template.

This template is called by {{Service awards/core}}. Do not use this template directly; use {{Service awards}} instead.

Purpose

[edit]

This template is used by {{Service awards/core}} to display a service award based on parameters that describe the award.

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
format The display format to use (passed from {{Service awards}}).
size Image size (passed from {{Service awards}}).
align Image alignment (passed from {{Service awards}}).
medal The name of the template for the medal award. 'Userbox' and 'Ribbon' variants of this template should also exist.
medalarticle Word to use before the name of the medal award: a or an. Default is a. Can also be blank for no word.
medaltext Displayed name of the medal award if different from the medal parameter.
medalaward Description of the medal associated with this award.
medalimg Filename of the medal image for this award (without the File: prefix).
book The name of the template for the book award. A 'Userbox' variant of this template should also exist.
bookarticle Word to use before the name of the book award: a or an. Default is a. Can also be blank for no word.
booktext Displayed name of the book award if different from the book parameter.
bookaward Description of the book associated with this award.
bookimg Filename of the book image for this award (without the File: prefix).
minirib Filename of the small ribbon image for this award (without the File: prefix).
ribbon2 Filename of the ribbon option #2 image for this award (without the File: prefix).
caption1 Caption customisation (passed from {{Service awards}}).
caption2 Caption customisation (passed from {{Service awards}}).
caption2book If specified, this is used instead of caption2 if format is set to 'book' or 'ubxbook'.
caption3 Caption customisation (passed from {{Service awards}}).
punctuation Caption customisation (passed from {{Service awards}}).

See also

[edit]