Template:Ribbons: Difference between revisions

helps if you add the right name of the ribbon I guess
No edit summary
(helps if you add the right name of the ribbon I guess)
 
(87 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly><div style="position: relative; width: {{{2}}}px;">{{
<includeonly>{{#switch: {{{1}}}
#switch: {{{3}}}
|Prometheus Ribbon = {{CampaignRibbons|{{{1}}}|{{{2|200}}}|{{{3|}}}}}
  | 2 = <div style="position: absolute; left: {{#expr:({{{2}}}/2.6)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!--
|War of Shadows Ribbon = {{CampaignRibbons|{{{1}}}|{{{2|200}}}|{{{3|}}}}}
      -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4)}}px]]</div>
|Project Capstone Ribbon = {{CampaignRibbons|{{{1}}}|{{{2|200}}}|{{{3|}}}}}
  | 3 = <div style="position: absolute; left: {{#expr:({{{2}}}/5)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!--
|Denali Invitational Ribbon = {{CampaignRibbons|{{{1}}}|{{{2|200}}}|{{{3|}}}}}
      -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4)}}px]]</div>
|{{StandardRibbons|{{{1}}}|{{{2|200}}}|{{{3|}}}}}
<div style="position: absolute; left: {{#expr:({{{2}}}/1.8)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!--
}}</includeonly>
      -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4)}}px]]</div>
<noinclude>{{Quote box
  | 4 = <div style="position: absolute; left: {{#expr:({{{2}}}/9)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!--
|title = Multiple Service Ribbons Policy
      -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4)}}px]]</div>
|quote  = Any [[service ribbon]] may be awarded multiple times. A '''gold star''' represents each repeated citation, and a '''silver star''' represents five additional citations (and therefore five gold stars). For certain campaign ribbons awarded for participation in multi-phase campaigns, '''bronze stars''' represent the completion of a specific number of campaign phases.
<div style="position: absolute; left: {{#expr:({{{2}}}/2.6)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!--
|source = -The [[Captains Council]]
      -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4)}}px]]</div>
|width  = 50%
<div style="position: absolute; left: {{#expr:({{{2}}}/1.5)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!--
|align  = center
      -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4)}}px]]</div>
|qalign = center
  | 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>
:''To display all of your collected awards and service ribbons in a display case for your bio, use '''[[Template:Ribbons Display]]'''.''
<div style="position: absolute; left: {{#expr:({{{2}}}/3.6)}}px; top: {{#expr:({{{2}}}/25)}}px; padding: 0;"><!--
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.
      -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/4)}}px]]</div>
<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>
<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>
  | 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>
  | 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>
<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>
  | 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>
<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>
<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>
  | 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>
<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>
<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>
<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:{{{1}}}|{{{2}}}px]]</div></includeonly>
<noinclude>===Displaying Multiple Citations of the Same [[Service Ribbon]]===


Format:
{{Bluebox|
===For Staff: Adding new ribbons to this template===
New ribbons should be added to the wiki as PNGs and by their official name (i.e., what you want the user to enter in for their ribbons rack, etc.).
*For example, Quark's Bar is added to the wiki as [[:File:Quark's Bar.png]]
*Laudean Commendation would be added to the wiki as [[:File:Laudean Commendation.png]]
Edit the following template to add the newly created ribbon to the list of ribbons:
* [[Template:Ribbons List]]
}}


<nowiki>{{Ribbons|</nowiki>[[:Category:Service Ribbons Award Images|'''''file name''' of service ribbon'']]|'''''width''' in pixels''|'''''number of times awarded'''''<nowiki>}}</nowiki>
==How to use this template:==
<nowiki>{{</nowiki>Ribbons|'''''name of service ribbon'''''|'''''width''' in pixels''|'''''number of times awarded (optional)'''''<nowiki>}}</nowiki>


:''Service Ribbons are available here: [[:Category:Service Ribbons Award Images]]
:''See [[Awards]] and [[Service Ribbons]] for more details about each award and ribbon.


So for instance, just type in
So for instance, just type in
<pre>{{Ribbons|Legion of Merit|200}}</pre>


<pre>{{Ribbons|Awards ServiceRibbons LegionOfMerit 2011.jpg|200|4}}</pre>
and you will get the Legion of Merit service ribbon returned at a width of 200 pixels:


if you earned the Legion of Merit a total of four times and you'll get the appropriate arrangement of stars!
{{Ribbons|Legion of Merit|200}}


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


Let's say you've been awarded the Silver Star 7 times (wow!). You'd type in:
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.


<pre>{{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|100|7}}</pre>
{{Ribbons|Legion of Merit|200|4}}
 
{{Ribbons List}}
 
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:
 
<pre>{{Ribbons|Silver Star|100|7}}</pre>


and get
and get


{{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|100|7}}
{{Ribbons|Silver Star|100|7}}
 


The template currently supports up to 9 citations of the same service ribbon. Here's how they all look:
{| cellspacing="3" width="70%"
|- valign="top"
|bgcolor="#F5FAFF" style="border:1px solid #CEDFF2; padding:1em; padding-top:0.5em; padding-bottom:0em; color: black;"|


{| cellpadding="0" style="border: 1px solid darkgray;"
===Right-aligned single star===
!How many?
Some service ribbons such as the '''Explorer’s Ribbon''' and the '''Gold and Silver Lifesaving Ribbons''' have a special design in the center.
!Ribbon
<center>
|- border="0"
[[File:Awards ServiceRibbons Explorers 2011.jpg|100px]] [[File:Awards ServiceRibbons LifesavingGold 2011.jpg|100px]] [[File:Awards ServiceRibbons LifesavingSilver 2011.jpg|100px]]
| 2
</center>
| {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|100|2}}
 
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,
 
<pre>{{Ribbons|Silver Lifesaving Ribbon|100|2r}}</pre>
 
gives you
 
{{Ribbons|Silver Lifesaving Ribbon|100|2r}}
 
|}
 
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.
 
==Bronze Stars for Multi-Phase Campaigns==
Beginning with the [[Prometheus Incident]] (2392) campaign, characters can earn multiple bronze stars when participating in a multi-phase campaign. Each bronze star corresponds to participating in a mission in one phase of a campaign.
 
For example, the Prometheus Incident campaign is comprised of three phases:
{|border='2' cellspacing='0'
|-
|-
| 3
|
| {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|100|3}}
{|border='0' cellspacing='0' cellpadding='10'
!colspan=2 style="background:#343434; color:white"|Campaign Phases
|-
|-
| 4
|colspan=2|'''PHASE I'''
| {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|100|4}}
*Begins on: 1 February 2392
*Ends on: 30 April 2392
|-
|-
| 5
|colspan=2|'''PHASE II'''
| {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|100|5}}
*Begins on: 1 May 2392
*Ends on: 31 July 2392
|-
|-
| 6
|colspan=2|'''PHASE III'''
| {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|100|6}}
*Begins on: 1 August 2392
*Ends on: 30 November 2392
|-
|-
| 7
!style="background:#343434; color:white"|Phases<br>Completed
| {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|100|7}}
!style="background:#343434; color:white"|Ribbon
|-
|-
| 8
!style="background:#C0C0C0"|Any 1 of the 3
| {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|100|8}}
! style="background:#343434;"|{{Ribbons|Prometheus Ribbon|120|1}}
|-
|-
| 9
!style="background:#C0C0C0"|Any 2 of the 3
| {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|100|9}}
! style="background:#343434;"|{{Ribbons|Prometheus Ribbon|120|2}}
|-
!style="background:#C0C0C0"|All 3 phases
! style="background:#343434;" |{{Ribbons|Prometheus Ribbon|120|3}}
|}
|}
|}


For campaigns with more than four phases, a silver star corresponds to five phases completed.
===Specify phases completed as you would number of citations===
Template:Ribbons and all templates incorporating Template:Ribbons such as '''[[Template:Ribbons Display]]''' and '''[[Template:Ribbons Rack]]''' will automatically display bronze stars for such campaign ribbons.


And here's how it looks in a service rack:
Simply specify the number of phases completed as you would specify the number of citations for any other ribbon, and the correct number of campaign stars will be displayed, starting with one bronze on the first citation of the campaign ribbon (as opposed to the display of gold stars, which begins only on the second citation of a typical service ribbon).


{| cellpadding="0" style="border: 1px solid darkgray;"
<pre>
|- border="0"
{{Ribbons Rack
| [[File:Awards_General_Tosma1_2011.jpg|100px]]
|Silver Star|3
| {{Ribbons|Awards ServiceRibbons LegionOfMerit 2011.jpg|100|4}}
|Prometheus Ribbon|3
}}
</pre>
{|align=left
|{{Ribbons Rack
|Silver Star|3
|Prometheus Ribbon|3
}}
|}
<br clear=all>
 
==Reference Table==
Here's how they all look at a width of 120 pixels:
 
{|border='2' cellspacing='0'
|-
|
{|border='0' cellspacing='0' cellpadding='10'
!style="background:#343434; color:white"|Citations
!style="background:#343434; color:white"|Ribbon
!style="background:#343434; color:white"|Wikicode
|-
!style="background:#C0C0C0"|1
! style="background:#343434;"|{{Ribbons|Silver Star|120}}
|<nowiki>{{Ribbons|Silver Star|120}}</nowiki>
|-
!style="background:#C0C0C0"|2
! style="background:#343434;"|{{Ribbons|Silver Star|120|2}}
|<nowiki>{{Ribbons|Silver Star|120|2}}</nowiki>
|-
!style="background:#C0C0C0"|2r
! style="background:#343434;" |{{Ribbons|Silver Lifesaving Ribbon|120|2r}}
|<nowiki>{{Ribbons|Silver Lifesaving Ribbon|120|2r}}</nowiki>
|-
!style="background:#C0C0C0"|3
! style="background:#343434;"|{{Ribbons|Silver Star|120|3}}
|<nowiki>{{Ribbons|Silver Star|120|3}}</nowiki>
|-
!style="background:#C0C0C0"|4
! style="background:#343434;"|{{Ribbons|Silver Star|120|4}}
|<nowiki>{{Ribbons|Silver Star|120|4}}</nowiki>
|-
!style="background:#C0C0C0"|5
! style="background:#343434;"|{{Ribbons|Silver Star|120|5}}
|<nowiki>{{Ribbons|Silver Star|120|5}}</nowiki>
|-
!style="background:#C0C0C0"|6
! style="background:#343434;"|{{Ribbons|Silver Star|120|6}}
|<nowiki>{{Ribbons|Silver Star|120|6}}</nowiki>
|-
!style="background:#C0C0C0"|6r
! style="background:#343434;"|{{Ribbons|Explorer's Ribbon|120|6r}}
|<nowiki>{{Ribbons|Explorer's Ribbon|120|6r}}</nowiki>
|-
!style="background:#C0C0C0"|7
! style="background:#343434;"|{{Ribbons|Silver Star|120|7}}
|<nowiki>{{Ribbons|Silver Star|120|7}}</nowiki>
|-
|-
| {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|100|7}}
!style="background:#C0C0C0"|8
| [[File:Awards_General_Neelix_2011.jpg‎|100px]]
! style="background:#343434;"|{{Ribbons|Silver Star|120|8}}
|<nowiki>{{Ribbons|Silver Star|120|8}}</nowiki>
|-
|-
| [[File:Awards-ServiceRibbon-VaadwaurInvasion.jpg|100px]]
!style="background:#C0C0C0"|9
| [[File:KlingonInvasion.jpg|100px]]
! style="background:#343434;"|{{Ribbons|Silver Star|120|9}}
|<nowiki>{{Ribbons|Silver Star|120|9}}</nowiki>
|-
!style="background:#C0C0C0"|10
! style="background:#343434;"|{{Ribbons|Silver Star|120|10}}
|<nowiki>{{Ribbons|Silver Star|120|10}}</nowiki>
|-
!style="background:#C0C0C0"|11
! style="background:#343434;"|{{Ribbons|Silver Star|120|11}}
|<nowiki>{{Ribbons|Silver Star|120|11}}</nowiki>
|}
|}
|}
==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]].
{{Ribbons Rack
|TOSMA|1
|Legion of Merit|4
|Silver Star|7
|Purple Heart|2
|Vaadwaur Invasion Campaign Ribbon|1
|Gold Lifesaving Ribbon|2r
}}


The code used for that:
The code used for that:


<pre>
<pre>
{| cellpadding="0" style="border: 1px solid darkgray;"
{{Ribbons Rack
|- border="0"
|TOSMA|1
| [[File:Awards_General_Tosma1_2011.jpg|100px]]
|Legion of Merit|4
| {{Ribbons|Awards ServiceRibbons LegionOfMerit 2011.jpg|100|7}}
|Silver Star|7
|-
|Purple Heart|2
| {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|100|3}}
|Vaadwaur Invasion Campaign Ribbon|1
| [[File:Awards_General_Neelix_2011.jpg‎|100px]]
|Gold Lifesaving Ribbon|2r
|-
}}
| [[File:Awards-ServiceRibbon-VaadwaurInvasion.jpg|100px]]
| [[File:KlingonInvasion.jpg|100px]]
|}
</pre>
</pre>
[[Category:Templates]]</noinclude>
 
==Problems or Questions?==
Let [[User:Rich|Rich]] know!
__NOTOC__
[[Category:Templates]]
[[Category:Commendations]]
</noinclude>