- Portals
- The Current Year
- ED in the News
- Admins
- Help ED Rebuild
- Archive
- ED Bookmarklet
- Donate Bitcoin
Contact an admin on Discord or EDF if you want an account. Also fuck bots.
Template:Ribbon devices: Difference between revisions
Jump to navigation
Jump to search
imported>Caku No edit summary |
imported>Caku No edit summary |
||
Line 146: | Line 146: | ||
-->|0 | -->|0 | ||
|#default={{#if:{{{other_device|}}}|{{ribbon devices/device layout|{{{width|106}}}|1|{{{other_device}}}}}}} | |#default={{#if:{{{other_device|}}}|{{ribbon devices/device layout|{{{width|106}}}|1|{{{other_device}}}}}}} | ||
else | else | ||
-->|[[Image:{{{ribbon|{{{name}}}.png}}}|{{{width|106}}}px|alt={{{alt|{{ | -->|[[Image:{{{ribbon|{{{name}}}.png}}}|{{{width|106}}}px|alt={{{alt|{{|{{{name}}}}}}}}]]<!-- | ||
-->}}</includeonly><noinclude> | -->}}</includeonly><noinclude> | ||
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --> | <!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --> | ||
Line 178: | Line 178: | ||
|- | |- | ||
|ribbon | |ribbon | ||
|''Any image, without the "Image:" prefix. Do not specify if | |''Any image, without the "Image:" prefix. Do not specify if is also specified.'' | ||
| | | | ||
|- | |- | ||
|alt | |alt | ||
|''Alt text for ribbon image. The default alt text is derived from | |''Alt text for ribbon image. The default alt text is derived from using the lookup table in .'' | ||
| | | | ||
|- | |- | ||
Line 207: | Line 207: | ||
|} | |} | ||
<!-- Add categories and interwikis to the /doc subpage, not here, except in certain cases.--> | <!-- Add categories and interwikis to the /doc subpage, not here, except in certain cases.--> | ||
</noinclude> | </noinclude> |
Revision as of 21:33, 13 June 2021
pee pee poo poo
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 ".png" suffix | |
ribbon | Any image, without the "Image:" prefix. Do not specify if is also specified. | |
alt | Alt text for ribbon image. The default alt text is derived from using the lookup table in . | |
width | 106, 80, 60 | 106 |
- Examples
{{#ifexpr: 8 + 1 > 0 | {{ribbon devices|number=8|type=oak|other_device=v|name=Bronze Star ribbon|width=106}}
| |
{{#ifexpr: 6 + 0 > 0 | {{ribbon devices|number=6|type=award-star|name=Meritorious Service ribbon|width=106}}
| |
{{#ifexpr: 7 + 1 > 0 | {{ribbon devices|number=7|type=service-star|other_device=arrowhead|name=Asiatic-Pacific Campaign ribbon|width=106}}
| |
{{#ifexpr: 0 + 1 > 0 | {{ribbon devices|number=0|other_device=fmf|name=Ribbon OPR.png|width=106}}
|