Template:Service awards/compose/sandbox: Difference between revisions
Content deleted Content added
simplifying |
*sigh* |
||
Line 16: | Line 16: | ||
| ubxbook = {{ {{{book|Cardinal Gom}}} Userbox | nocat = {{{nocat|true}}} |
| ubxbook = {{ {{{book|Cardinal Gom}}} Userbox | nocat = {{{nocat|true}}} |
||
| {{#ifeq:{{{size|X}}}|{{{size|Y}}}||dummy}}size = {{{size}}} |
| {{#ifeq:{{{size|X}}}|{{{size|Y}}}||dummy}}size = {{{size}}} |
||
| caption = {{{caption1|This editor is}}} {{{bookarticle}}} '''[[Wikipedia:Service awards#{{{medaltext|{{{medal|}}}}}} (or {{{booktext|{{{book |
| caption = {{{caption1|This editor is}}} {{{bookarticle}}} '''[[Wikipedia:Service awards#{{{medaltext|{{{medal|}}}}}} (or {{{booktext|{{{book}}}}}})|{{{booktext|{{{book}}}}}}]]''' {{{caption2|and is entitled to display this}}} {{{bookaward}}}{{if||{{{caption3|}}}| {{{caption3}}}}}{{{punctuation|.}}} |
||
}} |
}} |
||
| ribbon = {{ {{#ifeq:{{{ribname|}}}|na|{{{medal|Ultimate Vanguard Editor}}}|{{{ribname}}}}} Ribbon |
| ribbon = {{ {{#ifeq:{{{ribname|}}}|na|{{{medal|Ultimate Vanguard Editor}}}|{{{ribname}}}}} Ribbon |
Revision as of 22:01, 22 March 2022
Template documentation[view] [edit] [history] [purge]
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
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
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}}). |