Template:Ribbons: Difference between revisions

added Diplomacy Ribbon
No edit summary
(added Diplomacy Ribbon)
Line 60: Line 60:
       -->[[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:{{{1}}}|{{RibbonName|{{{1}}}}}]]</div>
}}[[File:{{RibbonNametoFile|{{{1}}}}}|{{{2}}}px|{{RibbonName|{{{1}}}}}]]</div></includeonly>
}}[[File:{{RibbonNametoFile|{{{1}}}}}|{{{2}}}px|{{RibbonName|{{{1}}}}}]]</div></includeonly>
<noinclude>===Displaying Multiple Citations of a [[Service Ribbons|Service Ribbon]]===
<noinclude>{{Quote box
{{Quote box
  |title = Multiple Service Ribbons Policy
  |title = Multiple Service Ribbons Policy
  |quote  = Any [[Service Ribbons|'''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).
  |quote  = Any [[Service Ribbons|'''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).
Line 69: Line 68:
  |qalign = center
  |qalign = center
}}
}}
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:===
===How to use this template:===
<nowiki>{{</nowiki>Ribbons|'''''name of service ribbon'''''|'''''width''' in pixels''|'''''number of times awarded (optional)'''''<nowiki>}}</nowiki>
:''See the [[List of Awards]] and [[Service Ribbons]] for more details about each award and ribbon.


<nowiki>{{Ribbons|</nowiki>[[:Category:Service Ribbons Award Images|'''''file name''' of service ribbon'']]|'''''width''' in pixels''|'''''number of times awarded'''''<nowiki>}}</nowiki>
So for instance, just type in
<pre>{{Ribbons|Legion of Merit|200}}</pre>


:''Service Ribbons are available here: [[:Category:Service Ribbons Award Images]]
and you will get the Legion of Merit service ribbon returned at a width of 200 pixels:


So for instance, just type in
{{Ribbons|Legion of Merit|200}}


<pre>{{Ribbons|Awards ServiceRibbons LegionOfMerit 2011.jpg|200|4}}</pre>
If you earned the Legion of Merit four times, you'd type in
<pre>{{Ribbons|Legion of Merit|200|4}}</pre>


if you earned the Legion of Merit a total of four times, and you'll get the appropriate arrangement of stars!
and you'll get the appropriate arrangement of stars!


{{Ribbons|Awards ServiceRibbons LegionOfMerit 2011.jpg|200|4}}
{{Ribbons|Legion of Merit|200|4}}


{| cellspacing="3" width="70%"  
{| cellspacing="3" width="70%"  
|- valign="top"
|- valign="top"
|bgcolor="#CCFFCC" style="border:1px solid #CEDFF2; padding:1em; padding-top:0.5em; padding-bottom:0em; color: black;"|
|bgcolor="#CCFFCC" style="border:1px solid #CEDFF2; padding:1em; padding-top:0.5em; padding-bottom:0em; color: black;"|
===NEW!===
You can also just type in the formal name of the ribbon instead of the file name:
<pre>{{Ribbons|Legion of Merit|200|4}}</pre>
{{Ribbons|Legion of Merit|200|4}}
===Use the following formal names:===
===Use the following formal names:===
{|
{|
|Diplomacy Ribbon
|-
|Prisoner of War Ribbon
|Prisoner of War Ribbon
|Purple Heart
|Purple Heart
Line 189: Line 190:


{{Ribbons|Purple Heart|100|9}}
{{Ribbons|Purple Heart|100|9}}
If you wish though, you can still use the raw file names instead.
|}
|}


Line 291: Line 289:
|}
|}


 
==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]].
And here's how it looks in a ribbons rack you can put in your sidebar, using [[Template:Ribbons Rack]].