Template:Ribbons: Difference between revisions
(missing the) |
(fixing star links) |
||
Line 2: | Line 2: | ||
#switch: {{{3}}} | #switch: {{{3}}} | ||
| 2 = <div style="position: absolute; left: {{#expr:({{{2}}}/2.48)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | | 2 = <div style="position: absolute; left: {{#expr:({{{2}}}/2.48)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{{1}}}|{{RibbonName|{{{1}}}}}]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{RibbonNametoFile|{{{1}}}}}|{{RibbonName|{{{1}}}}}]]</div> | ||
| 2r = <div style="position: absolute; left: {{#expr:({{{2}}}/1.4)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | | 2r = <div style="position: absolute; left: {{#expr:({{{2}}}/1.4)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{{1}}}|{{RibbonName|{{{1}}}}}]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{RibbonNametoFile|{{{1}}}}}|{{RibbonName|{{{1}}}}}]]</div> | ||
| 3 = <div style="position: absolute; left: {{#expr:({{{2}}}/5)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | | 3 = <div style="position: absolute; left: {{#expr:({{{2}}}/5)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{{1}}}|{{RibbonName|{{{1}}}}}]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{RibbonNametoFile|{{{1}}}}}|{{RibbonName|{{{1}}}}}]]</div> | ||
<div style="position: absolute; left: {{#expr:({{{2}}}/1.65)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | <div style="position: absolute; left: {{#expr:({{{2}}}/1.65)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{{1}}}|{{RibbonName|{{{1}}}}}]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{RibbonNametoFile|{{{1}}}}}|{{RibbonName|{{{1}}}}}]]</div> | ||
| 4 = <div style="position: absolute; left: {{#expr:({{{2}}}/8)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | | 4 = <div style="position: absolute; left: {{#expr:({{{2}}}/8)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{{1}}}|{{RibbonName|{{{1}}}}}]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{RibbonNametoFile|{{{1}}}}}|{{RibbonName|{{{1}}}}}]]</div> | ||
<div style="position: absolute; left: {{#expr:({{{2}}}/2.48)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | <div style="position: absolute; left: {{#expr:({{{2}}}/2.48)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{{1}}}|{{RibbonName|{{{1}}}}}]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{RibbonNametoFile|{{{1}}}}}|{{RibbonName|{{{1}}}}}]]</div> | ||
<div style="position: absolute; left: {{#expr:({{{2}}}/1.48)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | <div style="position: absolute; left: {{#expr:({{{2}}}/1.48)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{{1}}}|{{RibbonName|{{{1}}}}}]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{RibbonNametoFile|{{{1}}}}}|{{RibbonName|{{{1}}}}}]]</div> | ||
| 5 = <div style="position: absolute; left: {{#expr:({{{2}}}/15)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | | 5 = <div style="position: absolute; left: {{#expr:({{{2}}}/15)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{{1}}}|{{RibbonName|{{{1}}}}}]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{RibbonNametoFile|{{{1}}}}}|{{RibbonName|{{{1}}}}}]]</div> | ||
<div style="position: absolute; left: {{#expr:({{{2}}}/3.5)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | <div style="position: absolute; left: {{#expr:({{{2}}}/3.5)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{{1}}}|{{RibbonName|{{{1}}}}}]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{RibbonNametoFile|{{{1}}}}}|{{RibbonName|{{{1}}}}}]]</div> | ||
<div style="position: absolute; left: {{#expr:({{{2}}}/1.95)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | <div style="position: absolute; left: {{#expr:({{{2}}}/1.95)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{{1}}}|{{RibbonName|{{{1}}}}}]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{RibbonNametoFile|{{{1}}}}}|{{RibbonName|{{{1}}}}}]]</div> | ||
<div style="position: absolute; left: {{#expr:({{{2}}}/1.36)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | <div style="position: absolute; left: {{#expr:({{{2}}}/1.36)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{{1}}}|{{RibbonName|{{{1}}}}}]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{RibbonNametoFile|{{{1}}}}}|{{RibbonName|{{{1}}}}}]]</div> | ||
| 6 = <div style="position: absolute; left: {{#expr:({{{2}}}/2.48)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | | 6 = <div style="position: absolute; left: {{#expr:({{{2}}}/2.48)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | ||
-->[[File:Award-silverstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{{1}}}|{{RibbonName|{{{1}}}}}]]</div> | -->[[File:Award-silverstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{RibbonNametoFile|{{{1}}}}}|{{RibbonName|{{{1}}}}}]]</div> | ||
| 6r = <div style="position: absolute; left: {{#expr:({{{2}}}/1.4)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | | 6r = <div style="position: absolute; left: {{#expr:({{{2}}}/1.4)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | ||
-->[[File:Award-silverstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{{1}}}|{{RibbonName|{{{1}}}}}]]</div> | -->[[File:Award-silverstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{RibbonNametoFile|{{{1}}}}}|{{RibbonName|{{{1}}}}}]]</div> | ||
| 7 = <div style="position: absolute; left: {{#expr:({{{2}}}/5)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | | 7 = <div style="position: absolute; left: {{#expr:({{{2}}}/5)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | ||
-->[[File:Award-silverstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{{1}}}|{{RibbonName|{{{1}}}}}]]</div> | -->[[File:Award-silverstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{RibbonNametoFile|{{{1}}}}}|{{RibbonName|{{{1}}}}}]]</div> | ||
<div style="position: absolute; left: {{#expr:({{{2}}}/1.65)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | <div style="position: absolute; left: {{#expr:({{{2}}}/1.65)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{{1}}}|{{RibbonName|{{{1}}}}}]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{RibbonNametoFile|{{{1}}}}}|{{RibbonName|{{{1}}}}}]]</div> | ||
| 8 = <div style="position: absolute; left: {{#expr:({{{2}}}/8)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | | 8 = <div style="position: absolute; left: {{#expr:({{{2}}}/8)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | ||
-->[[File:Award-silverstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{{1}}}|{{RibbonName|{{{1}}}}}]]</div> | -->[[File:Award-silverstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{RibbonNametoFile|{{{1}}}}}|{{RibbonName|{{{1}}}}}]]</div> | ||
<div style="position: absolute; left: {{#expr:({{{2}}}/2.48)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | <div style="position: absolute; left: {{#expr:({{{2}}}/2.48)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{{1}}}|{{RibbonName|{{{1}}}}}]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{RibbonNametoFile|{{{1}}}}}|{{RibbonName|{{{1}}}}}]]</div> | ||
<div style="position: absolute; left: {{#expr:({{{2}}}/1.48)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | <div style="position: absolute; left: {{#expr:({{{2}}}/1.48)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{{1}}}|{{RibbonName|{{{1}}}}}]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{RibbonNametoFile|{{{1}}}}}|{{RibbonName|{{{1}}}}}]]</div> | ||
| 9 = <div style="position: absolute; left: {{#expr:({{{2}}}/15)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | | 9 = <div style="position: absolute; left: {{#expr:({{{2}}}/15)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | ||
-->[[File:Award-silverstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{{1}}}|{{RibbonName|{{{1}}}}}]]</div> | -->[[File:Award-silverstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{RibbonNametoFile|{{{1}}}}}|{{RibbonName|{{{1}}}}}]]</div> | ||
<div style="position: absolute; left: {{#expr:({{{2}}}/3.5)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | <div style="position: absolute; left: {{#expr:({{{2}}}/3.5)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{{1}}}|{{RibbonName|{{{1}}}}}]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{RibbonNametoFile|{{{1}}}}}|{{RibbonName|{{{1}}}}}]]</div> | ||
<div style="position: absolute; left: {{#expr:({{{2}}}/1.95)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | <div style="position: absolute; left: {{#expr:({{{2}}}/1.95)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{{1}}}|{{RibbonName|{{{1}}}}}]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{RibbonNametoFile|{{{1}}}}}|{{RibbonName|{{{1}}}}}]]</div> | ||
<div style="position: absolute; left: {{#expr:({{{2}}}/1.36)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | <div style="position: absolute; left: {{#expr:({{{2}}}/1.36)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{{1}}}|{{RibbonName|{{{1}}}}}]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{RibbonNametoFile|{{{1}}}}}|{{RibbonName|{{{1}}}}}]]</div> | ||
| 10 = <div style="position: absolute; left: {{#expr:({{{2}}}/25)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | | 10 = <div style="position: absolute; left: {{#expr:({{{2}}}/25)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | ||
-->[[File:Award-silverstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{{1}}}|{{RibbonName|{{{1}}}}}]]</div> | -->[[File:Award-silverstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{RibbonNametoFile|{{{1}}}}}|{{RibbonName|{{{1}}}}}]]</div> | ||
<div style="position: absolute; left: {{#expr:({{{2}}}/4.5)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | <div style="position: absolute; left: {{#expr:({{{2}}}/4.5)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{{1}}}|{{RibbonName|{{{1}}}}}]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{RibbonNametoFile|{{{1}}}}}|{{RibbonName|{{{1}}}}}]]</div> | ||
<div style="position: absolute; left: {{#expr:({{{2}}}/2.48)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | <div style="position: absolute; left: {{#expr:({{{2}}}/2.48)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{{1}}}|{{RibbonName|{{{1}}}}}]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{RibbonNametoFile|{{{1}}}}}|{{RibbonName|{{{1}}}}}]]</div> | ||
<div style="position: absolute; left: {{#expr:({{{2}}}/1.71)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | <div style="position: absolute; left: {{#expr:({{{2}}}/1.71)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{{1}}}|{{RibbonName|{{{1}}}}}]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{RibbonNametoFile|{{{1}}}}}|{{RibbonName|{{{1}}}}}]]</div> | ||
<div style="position: absolute; left: {{#expr:({{{2}}}/1.31)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | <div style="position: absolute; left: {{#expr:({{{2}}}/1.31)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{{1}}}|{{RibbonName|{{{1}}}}}]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{RibbonNametoFile|{{{1}}}}}|{{RibbonName|{{{1}}}}}]]</div> | ||
| 11 = <div style="position: absolute; left: {{#expr:({{{2}}}/5)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | | 11 = <div style="position: absolute; left: {{#expr:({{{2}}}/5)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | ||
-->[[File:Award-silverstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{{1}}}|{{RibbonName|{{{1}}}}}]]</div> | -->[[File:Award-silverstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{RibbonNametoFile|{{{1}}}}}|{{RibbonName|{{{1}}}}}]]</div> | ||
<div style="position: absolute; left: {{#expr:({{{2}}}/1.65)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | <div style="position: absolute; left: {{#expr:({{{2}}}/1.65)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!-- | ||
-->[[File:Award-silverstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{{1}}}|{{RibbonName|{{{1}}}}}]]</div> | -->[[File:Award-silverstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{RibbonNametoFile|{{{1}}}}}|{{RibbonName|{{{1}}}}}]]</div> | ||
}}[[File:{{RibbonNametoFile|{{{1}}}}}|{{{2}}}px|{{RibbonName|{{{1}}}}}]]</div></includeonly> | }}[[File:{{RibbonNametoFile|{{{1}}}}}|{{{2}}}px|{{RibbonName|{{{1}}}}}]]</div></includeonly> | ||
<noinclude>{{Quote box | <noinclude>{{Quote box |
Revision as of 06:38, 14 April 2015
Any general ribbon, ribbon of gallantry & heroism, or lifesaving ribbon may be awarded multiple times, but any campaign ribbon may only be awarded once. A gold star represents each repeated citation, and a silver star represents five additional citations (and therefore five gold stars).
- To display all of your collected awards and service ribbons in a display case for your bio, use Template:Ribbons Display.
This template lets you call up any award or service ribbon just using the name of the ribbon itself instead of finding the exact filename. It also allows you to display multiple citations of a service ribbon.
How to use this template:
{{Ribbons|name of service ribbon|width in pixels|number of times awarded (optional)}}
- See the List of Awards and Service Ribbons for more details about each award and ribbon.
So for instance, just type in
{{Ribbons|Legion of Merit|200}}
and you will get the Legion of Merit service ribbon returned at a width of 200 pixels:
If you earned the Legion of Merit four times, you'd type in
{{Ribbons|Legion of Merit|200|4}}
and you'll get the appropriate arrangement of stars! If you put your cursor over the image, the name of the ribbon will be displayed.
Use the following formal names:
|
Let's say you've been awarded the Silver Star 7 times (wow!) and you want to display the ribbon at a width of 100 pixels. You'd type in:
{{Ribbons|Silver Star|100|7}}
and get
Right-aligned single starSome service ribbons such as the Explorer’s Ribbon and the Gold and Silver Lifesaving Ribbons have a special design in the center. If you don't want to block it with your star, use 2r and 6r to display a gold (2 citations) and silver star (6 citations) respectively, aligned to the right of the ribbon's center. For instance, {{Ribbons|Silver Lifesaving Ribbon|100|2r}} gives you
|
The template currently supports up to 11 citations of the same service ribbon, and yes, you can use this template to also display a single citation of the ribbon as well by leaving off the last number or putting a 1.
Reference Table
Here's how they all look at a width of 120 pixels:
|
Displaying Ribbons in a Ribbons Rack
And here's how it looks in a ribbons rack you can put in your sidebar, using Template:Ribbons Rack.
| ||||||||
|
The code used for that:
{{Ribbons Rack |TOSMA|1 |Legion of Merit|4 |Silver Star|7 |Purple Heart|2 |Vaadwaur Invasion Campaign Ribbon|1 |Gold Lifesaving Ribbon|2r }}
Adding New Ribbons
Edit the following templates to add new ribbons:
Problems or Questions?
Let Rich know!