Registration has been disabled and the moderation extension has been turned off.
Contact an admin on Discord or EDF if you want an account. Also fuck bots.

Template:Ribbon devices: Difference between revisions

From Encyclopedia Dramatica
Jump to navigation Jump to search
imported>Caku
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}}}}}}}
<!-- /switch: {{number}} -->}}[[Image:{{{ribbon|{{{name}}}.svg}}}|{{{width|106}}}px|alt={{{alt|{{ribbon devices/alt|{{{name}}}}}}}}]]</div></div><!--
<!-- /switch: {{number}} -->}}[[Image:{{{ribbon|{{{name}}}.png}}}|{{{width|106}}}px|alt={{{alt|{{ribbon devices/alt|{{{name}}}}}}}}]]</div></div><!--


else
else
-->|[[Image:{{{ribbon|{{{name}}}.svg}}}|{{{width|106}}}px|alt={{{alt|{{ribbon devices/alt|{{{name}}}}}}}}]]<!--
-->|[[Image:{{{ribbon|{{{name}}}.png}}}|{{{width|106}}}px|alt={{{alt|{{ribbon devices/alt|{{{name}}}}}}}}]]<!--
-->}}</includeonly><noinclude>
-->}}</includeonly><noinclude>
{{Documentation}}
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE -->
 
This template will superimpose [[United States military award devices]] onto [[Awards and decorations of the United States military|military award ribbons]].  It currently does [[oak leaf cluster]]s, [[award star]]s, [[service star]]s (up to a numeric value of 24 total awards) as well as the [[Arrowhead device]], [[Valor device]], [[Valor device|Combat V]], [[Fleet Marine Force Combat Operations Insignia]], and [[Operational Distinguishing Device]].  Variables are as follows:
 
{| class="wikitable"
|-
!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 {{para|name}} is also specified.''
|
|-
|alt
|''Alt text for ribbon image. The default alt text is derived from {{para|name}} using the lookup table in {{tl|ribbon devices/alt}}.''
|
|-
|width
|106, 80, 60
|106
|}
 
;Examples
 
{|
|-
|{{ribbon devices|number=8|type=oak|other_device=v|name=Ribbon OPR|width=106}}
|<code><nowiki>{{ribbon devices|number=8|type=oak|other_device=v|name=Bronze Star ribbon|width=106}}</nowiki></code>
|-
|{{ribbon devices|number=6|type=award-star|name=Ribbon OPR|width=106}}
|<code><nowiki>{{ribbon devices|number=6|type=award-star|name=Meritorious Service ribbon|width=106}}</nowiki></code>
|-
|{{ribbon devices|number=7|type=service-star|other_device=arrowhead|name=Ribbon OPR|width=106}}
|<code><nowiki>{{ribbon devices|number=7|type=service-star|other_device=arrowhead|name=Asiatic-Pacific Campaign ribbon|width=106}}</nowiki></code>
|-
|{{ribbon devices|number=0|other_device=fmf|name=Ribbon OPR|width=106}}
|<code><nowiki>{{ribbon devices|number=0|other_device=fmf|name=Ribbon OPR.png|width=106}}</nowiki></code>
|}
 
=== Subtemplates ===
 
This template makes use of three subtemplates, which are not intended to be used as standalone templates. They are: {{tl2|ribbon devices/device layout}}, {{tl2|ribbon devices/device}}, and {{tl2|ribbon devices/alt}}. To add a new <code>other_device</code>, modify {{tl2|ribbon devices/device}}. To add alt text for a new ribbon, modify {{tl2|ribbon devices/alt}}.


<!-- 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 20:49, 13 June 2021


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 ".png" suffix
ribbon Any image, without the "Image:" prefix. Do not specify if Template:Para is also specified.
alt Alt text for ribbon image. The default alt text is derived from Template:Para using the lookup table in {{ribbon devices/alt}}.
width 106, 80, 60 106
Examples
V
Silver oak leaf cluster
Bronze oak leaf cluster
Bronze oak leaf cluster
Bronze oak leaf cluster
pee
{{ribbon devices|number=8|type=oak|other_device=v|name=Bronze Star ribbon|width=106}}
Silver star
Gold star
pee
{{ribbon devices|number=6|type=award-star|name=Meritorious Service ribbon|width=106}}
Arrowhead
Silver star
Bronze star
Bronze star
pee
{{ribbon devices|number=7|type=service-star|other_device=arrowhead|name=Asiatic-Pacific Campaign ribbon|width=106}}
Bronze eagle atop globe covering anchor
pee
{{ribbon devices|number=0|other_device=fmf|name=Ribbon OPR.png|width=106}}

Subtemplates

This template makes use of three subtemplates, which are not intended to be used as standalone templates. They are: Template:Tl2, Template:Tl2, and Template:Tl2. To add a new other_device, modify Template:Tl2. To add alt text for a new ribbon, modify Template:Tl2.