Difference between revisions of "Template:Admin service awards/compose"
Jump to navigation
Jump to search
blackwiki>Jkudlick m (ce) |
blackwiki>Plastikspork (Add error checks) |
||
| Line 1: | Line 1: | ||
{{ #switch: {{{format|medal}}} | {{ #switch: {{{format|medal}}} | ||
| medal = {{ {{{medal|Vanguard Administrator}}} | size = {{{size|130px}}} | align = {{{align|left}}} | nocat = {{{nocat|true}}} }} | | medal = {{ {{{medal|Vanguard Administrator}}} | size = {{{size|130px}}} | align = {{{align|left}}} | nocat = {{{nocat|true}}} }} | ||
| − | | mop = {{ {{{mop|Quantum Custodian}}} | size = {{{size|130px}}} | align = {{{align|left}}} | nocat = {{{nocat|true}}} }} | + | | mop = {{#ifexist:Template:{{{mop|Quantum Custodian}}}|{{ {{{mop|Quantum Custodian}}} | size = {{{size|130px}}} | align = {{{align|left}}} | nocat = {{{nocat|true}}} }}|<span style="color:red">Error: [[Template:{{{mop|Quantum Custodian}}}]] does not exist!</span>}} |
| ubxmedal = {{ {{{medal|Vanguard Administrator}}} Userbox | align = {{{align|left}}} | | nocat = {{{nocat|true}}} }} | | ubxmedal = {{ {{{medal|Vanguard Administrator}}} Userbox | align = {{{align|left}}} | | nocat = {{{nocat|true}}} }} | ||
| − | | ubxmop = {{ {{{mop|Quantum Custodian}}} Userbox | align = {{{align|left}}} | | nocat = {{{nocat|true}}} }} | + | | ubxmop = {{#ifexist:Template:{{{mop|Quantum Custodian}}} Userbox|{{ {{{mop|Quantum Custodian}}} Userbox | align = {{{align|left}}} | | nocat = {{{nocat|true}}} }}|<span style="color:red">Error: [[Template:{{{mop|Quantum Custodian}}} Userbox]] does not exist!</span>}} |
| ribbon = {{ {{{medal|Vanguard Administrator}}} Ribbon | size = {{{size|120px}}} | align = {{{align|left}}} | nocat = {{{nocat|true}}} }} | | ribbon = {{ {{{medal|Vanguard Administrator}}} Ribbon | size = {{{size|120px}}} | align = {{{align|left}}} | nocat = {{{nocat|true}}} }} | ||
| smlribbon = [[File:{{{minirib}}}|{{{size|72px}}}|{{{align|}}}|{{{medal}}}]] | | smlribbon = [[File:{{{minirib}}}|{{{size|72px}}}|{{{align|}}}|{{{medal}}}]] | ||
Revision as of 14:50, 3 May 2020
Template:Vanguard Administrator
This is the {{Admin service awards/compose}} sub-template.
This template is called by {{Admin service awards/core}}. Do not use this template directly; use {{Admin service awards}} instead.
Purpose
This template is used by {{Admin service awards/core}} to display a service award based on parameters that describe the award.
This code is separate from the main {{Admin 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 {{Admin service awards}}). |
| size | Image size (passed from {{Admin service awards}}). |
| align | Image alignment (passed from {{Admin 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). |
See also
- Template:Admin service awards
- Template:Service awards - the template and associated subtemplates on which this template and associated subtemplates are based. Please see the histories of those templates for attribution.
| The above documentation is transcluded from Template:Admin service awards/compose/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |