Template:Ribbons: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
#switch: {{{3}}} | #switch: {{{3}}} | ||
| 2 = <div style="position: absolute; left: {{#expr:({{{2}}}/2.6)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | | 2 = <div style="position: absolute; left: {{#expr:({{{2}}}/2.6)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4)}}px]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4) round 0}}px]]</div> | ||
| 3 = <div style="position: absolute; left: {{#expr:({{{2}}}/5)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | | 3 = <div style="position: absolute; left: {{#expr:({{{2}}}/5)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4)}}px]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4) round 0}}px]]</div> | ||
<div style="position: absolute; left: {{#expr:({{{2}}}/1.8)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | <div style="position: absolute; left: {{#expr:({{{2}}}/1.8)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4)}}px]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4) round 0}}px]]</div> | ||
| 4 = <div style="position: absolute; left: {{#expr:({{{2}}}/9)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | | 4 = <div style="position: absolute; left: {{#expr:({{{2}}}/9)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4)}}px]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4) round 0}}px]]</div> | ||
<div style="position: absolute; left: {{#expr:({{{2}}}/2.6)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | <div style="position: absolute; left: {{#expr:({{{2}}}/2.6)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4)}}px]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4) round 0}}px]]</div> | ||
<div style="position: absolute; left: {{#expr:({{{2}}}/1.5)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | <div style="position: absolute; left: {{#expr:({{{2}}}/1.5)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4)}}px]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4) round 0}}px]]</div> | ||
| 5 = <div style="position: absolute; left: {{#expr:({{{2}}}/15)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | | 5 = <div style="position: absolute; left: {{#expr:({{{2}}}/15)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4)}}px]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4) round 0}}px]]</div> | ||
<div style="position: absolute; left: {{#expr:({{{2}}}/3.6)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | <div style="position: absolute; left: {{#expr:({{{2}}}/3.6)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4)}}px]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4) round 0}}px]]</div> | ||
<div style="position: absolute; left: {{#expr:({{{2}}}/2)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | <div style="position: absolute; left: {{#expr:({{{2}}}/2)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4)}}px]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4) round 0}}px]]</div> | ||
<div style="position: absolute; left: {{#expr:({{{2}}}/1.4)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | <div style="position: absolute; left: {{#expr:({{{2}}}/1.4)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4)}}px]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4) round 0}}px]]</div> | ||
| 6 = <div style="position: absolute; left: {{#expr:({{{2}}}/2.6)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | | 6 = <div style="position: absolute; left: {{#expr:({{{2}}}/2.6)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | ||
-->[[File:Award-silverstar.png|{{#expr:({{{2}}}/4)}}px]]</div> | -->[[File:Award-silverstar.png|{{#expr:({{{2}}}/4) round 0}}px]]</div> | ||
| 7 = <div style="position: absolute; left: {{#expr:({{{2}}}/5)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | | 7 = <div style="position: absolute; left: {{#expr:({{{2}}}/5)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | ||
-->[[File:Award-silverstar.png|{{#expr:({{{2}}}/4)}}px]]</div> | -->[[File:Award-silverstar.png|{{#expr:({{{2}}}/4) round 0}}px]]</div> | ||
<div style="position: absolute; left: {{#expr:({{{2}}}/1.8)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | <div style="position: absolute; left: {{#expr:({{{2}}}/1.8)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4)}}px]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4) round 0}}px]]</div> | ||
| 8 = <div style="position: absolute; left: {{#expr:({{{2}}}/9)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | | 8 = <div style="position: absolute; left: {{#expr:({{{2}}}/9)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | ||
-->[[File:Award-silverstar.png|{{#expr:({{{2}}}/4)}}px]]</div> | -->[[File:Award-silverstar.png|{{#expr:({{{2}}}/4)) round 0}}px]]</div> | ||
<div style="position: absolute; left: {{#expr:({{{2}}}/2.6)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | <div style="position: absolute; left: {{#expr:({{{2}}}/2.6)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4)}}px]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4)}}px]]</div> | ||
<div style="position: absolute; left: {{#expr:({{{2}}}/1.5)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | <div style="position: absolute; left: {{#expr:({{{2}}}/1.5)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4)}}px]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4)) round 0}}px]]</div> | ||
| 9 = <div style="position: absolute; left: {{#expr:({{{2}}}/15)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | | 9 = <div style="position: absolute; left: {{#expr:({{{2}}}/15)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | ||
-->[[File:Award-silverstar.png|{{#expr:({{{2}}}/4)}}px]]</div> | -->[[File:Award-silverstar.png|{{#expr:({{{2}}}/4)}}px]]</div> | ||
<div style="position: absolute; left: {{#expr:({{{2}}}/3.6)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | <div style="position: absolute; left: {{#expr:({{{2}}}/3.6)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4)}}px]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4)) round 0}}px]]</div> | ||
<div style="position: absolute; left: {{#expr:({{{2}}}/2)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | <div style="position: absolute; left: {{#expr:({{{2}}}/2)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4)}}px]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4)) round 0}}px]]</div> | ||
<div style="position: absolute; left: {{#expr:({{{2}}}/1.4)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | <div style="position: absolute; left: {{#expr:({{{2}}}/1.4)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!-- | ||
-->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4)}}px]]</div> | -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4)) round 0}}px]]</div> | ||
}}[[File:{{{1}}}|{{{2}}}px]]</div></includeonly> | }}[[File:{{{1}}}|{{{2}}}px]]</div></includeonly> | ||
<noinclude>===Displaying Multiple Citations of the Same [[Service Ribbons|Service Ribbon]]=== | <noinclude>===Displaying Multiple Citations of the Same [[Service Ribbons|Service Ribbon]]=== | ||
Line 73: | Line 73: | ||
|- border="0" | |- border="0" | ||
| 2 | | 2 | ||
| {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg| | | {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|150|2}} | ||
|- | |- | ||
| | | 5 | ||
| {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg| | | {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|50|3}} | ||
|- | |- | ||
| 4 | | 4 | ||
| {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg| | | {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|50|4}} | ||
|- | |- | ||
| 5 | | 5 | ||
| {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg| | | {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|50|5}} | ||
|- | |- | ||
| 6 | | 6 | ||
| {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg| | | {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|50|6}} | ||
|- | |- | ||
| 7 | | 7 | ||
| {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg| | | {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|50|7}} | ||
|- | |- | ||
| 8 | | 8 | ||
| {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg| | | {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|50|8}} | ||
|- | |- | ||
| 9 | | 9 | ||
| {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg| | | {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|50|9}} | ||
|} | |} | ||
Revision as of 01:57, 26 January 2014
Displaying Multiple Citations of the Same Service Ribbon
Format:
{{Ribbons|file name of service ribbon|width in pixels|number of times awarded}}
- Service Ribbons are available here: Category:Service Ribbons Award Images
So for instance, just type in
{{Ribbons|Awards ServiceRibbons LegionOfMerit 2011.jpg|200|4}}
if you earned the Legion of Merit a total of four times and you'll get the appropriate arrangement of stars!
Let's say you've been awarded the Silver Star 7 times (wow!). You'd type in:
{{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|100|7}}
and get
The template currently supports up to 9 citations of the same service ribbon. Here's how they all look:
How many? | Ribbon |
---|---|
2 | |
5 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 |
And here's how it looks in a service rack:
The code used for that:
{| cellpadding="0" style="border: 1px solid darkgray;" |- border="0" | [[File:Awards_General_Tosma1_2011.jpg|100px]] | {{Ribbons|Awards ServiceRibbons LegionOfMerit 2011.jpg|100|7}} |- | {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|100|3}} | [[File:Awards_General_Neelix_2011.jpg|100px]] |- | [[File:Awards-ServiceRibbon-VaadwaurInvasion.jpg|100px]] | [[File:KlingonInvasion.jpg|100px]] |}