Template:Ribbon devices: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Reverted |
No edit summary Tag: Manual revert |
||
(One intermediate revision by the same user not shown) |
Latest revision as of 22:37, 1 January 2024
Template documentation
|
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this documentation. (About template documentation) |
Editors can experiment in this template's sandbox and test case pages. |
This template is used on approximately 4,600 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template will superimpose United States military award devices onto military award ribbons. It currently does oak leaf clusters, award stars, service stars (up to a numeric value of 24 total awards) as well as the Arrowhead device, Valor device, Combat V, Fleet Marine Force Combat Operations Insignia, and Operational Distinguishing Device. Variables are as follows:
Variable | Accepted values | Default value |
---|---|---|
number | 0–23 | 0 |
type | oak, award-star, service-star | oak |
other_device | arrowhead, v, nv, fmf, odd | |
name | Name of ribbon image, without the "Image:" prefix or ".svg" suffix | |
ribbon | Any image, without the "Image:" prefix. Do not specify if |name= is also specified.
|
|
alt | Alt text for ribbon image. The default alt text is derived from |name= using the lookup table in {{ribbon devices/alt}}.
|
|
width | 106, 80, 60 | 106 |
- Examples
{{ribbon devices|number=8|type=oak|other_device=v|name=Bronze Star ribbon|width=106}}
| |
{{ribbon devices|number=6|type=award-star|name=Meritorious Service ribbon|width=106}}
| |
{{ribbon devices|number=7|type=service-star|other_device=arrowhead|name=Asiatic-Pacific Campaign ribbon|width=106}}
| |
{{ribbon devices|number=0|other_device=fmf|name=Global War on Terrorism Expeditionary ribbon|width=106}}
|
Subtemplates
This template makes use of three subtemplates, which are not intended to be used as standalone templates. They are: {{ribbon devices/device layout}}
, {{ribbon devices/device}}
, and {{ribbon devices/alt}}
. To add a new other_device
, modify {{ribbon devices/device}}
. To add alt text for a new ribbon, modify {{ribbon devices/alt}}
.
See also
- {{Medal Display}}
- {{Ribbon}}