User:Rich/Sandbox: Difference between revisions

Jump to navigation Jump to search
Replaced content with "If you're looking for the service ribbon stars template, it's now live: Template:Ribbons"
No edit summary
(Replaced content with "If you're looking for the service ribbon stars template, it's now live: Template:Ribbons")
Line 1: Line 1:
===NEW! EVEN EASIER!===
If you're looking for the service ribbon stars template, it's now live: [[Template:Ribbons]]
 
Just type in
 
<pre>{{Ribbons|Awards ServiceRibbons LegionOfMerit 2011.jpg|200|4}}</pre>
 
Where the last number is the number of times you've been awarded that ribbon and you'll get the appropriate arrangement of stars!
 
{{Ribbons|Awards ServiceRibbons LegionOfMerit 2011.jpg|200|4}}
 
So for instance, let's say you've been awarded the Silver Star 7 times (wow!). You'd type in:
 
<pre>{{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|100|7}}</pre>
 
and get
 
{{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|100|7}}
 
The number after the award name is obviously how wide in pixels you want the ribbon.
 
And here's how it looks in a service rack:
 
{| cellpadding="0" style="border: 1px solid darkgray;"
|- border="0"
| [[File:Awards_General_Tosma1_2011.jpg|100px]]
| {{Ribbons|Awards ServiceRibbons LegionOfMerit 2011.jpg|100|4}}
|-
| {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|100|7}}
| [[File:Awards_General_Neelix_2011.jpg‎|100px]]
|-
| [[File:Awards-ServiceRibbon-VaadwaurInvasion.jpg|100px]]
| [[File:KlingonInvasion.jpg|100px]]
|-
|}
 
The code used for that:
 
<pre>
{| 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]]
|-
|}
</pre>

Navigation menu