Template:Ribbons: Difference between revisions

1,796 bytes removed ,  16 November 2023
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)
 
(67 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.48)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!--
|War of Shadows Ribbon = {{CampaignRibbons|{{{1}}}|{{{2|200}}}|{{{3|}}}}}
      -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{{1}}}]]</div>
|Project Capstone Ribbon = {{CampaignRibbons|{{{1}}}|{{{2|200}}}|{{{3|}}}}}
  | 2r = <div style="position: absolute; left: {{#expr:({{{2}}}/1.4)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!--
|Denali Invitational Ribbon = {{CampaignRibbons|{{{1}}}|{{{2|200}}}|{{{3|}}}}}
      -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{{1}}}]]</div>
|{{StandardRibbons|{{{1}}}|{{{2|200}}}|{{{3|}}}}}
  | 3 = <div style="position: absolute; left: {{#expr:({{{2}}}/5)}}px; top: {{#expr:({{{2}}}/16)}}px; padding: 0;"><!--
}}</includeonly>
      -->[[File:Award-goldstar.png|{{#expr:({{{2}}}/5) round 0}}px|link=File:{{{1}}}]]</div>
<noinclude>{{Quote box
<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}}}]]</div>
  | 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}}}]]</div>
<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}}}]]</div>
<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}}}]]</div>
  | 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}}}]]</div>
<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}}}]]</div>
<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}}}]]</div>
<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}}}]]</div>
  | 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}}}]]</div>
  | 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}}}]]</div>
  | 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}}}]]</div>
<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}}}]]</div>
  | 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}}}]]</div>
<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}}}]]</div>
<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}}}]]</div>
  | 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}}}]]</div>
<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}}}]]</div>
<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}}}]]</div>
<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}}}]]</div>
  | 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}}}]]</div>
<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}}}]]</div>
<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}}}]]</div>
<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}}}]]</div>
<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}}}]]</div>
  | 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}}}]]</div>
<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}}}]]</div>
}}[[File:{{{1}}}|{{{2}}}px]]</div></includeonly>
<noinclude>===Displaying Multiple Citations of the Same [[Service Ribbons|Service Ribbon]]===
{{Quote box
  |title = Multiple Service Ribbons Policy
  |title = Multiple Service Ribbons Policy
  |quote  = 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).
  |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.
  |source = -The [[Captains Council]]
  |source = -The [[Captains Council]]
  |width  = 50%
  |width  = 50%
Line 69: Line 14:
  |qalign = center
  |qalign = center
}}
}}
:''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:'''
{{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>
and you will get the Legion of Merit service ribbon returned at a width of 200 pixels:
{{Ribbons|Legion of Merit|200}}
If you earned the Legion of Merit four times, you'd type in
<pre>{{Ribbons|Legion of Merit|200|4}}</pre>


<pre>{{Ribbons|Awards ServiceRibbons LegionOfMerit 2011.jpg|200|4}}</pre>
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.


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|4}}


{{Ribbons|Awards ServiceRibbons LegionOfMerit 2011.jpg|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:
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|Awards ServiceRibbons SilverStar 2011.jpg|100|7}}</pre>
<pre>{{Ribbons|Silver Star|100|7}}</pre>


and get
and get


{{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|100|7}}
{{Ribbons|Silver Star|100|7}}
 
 
{| cellspacing="3" width="70%"
|- valign="top"
|bgcolor="#F5FAFF" style="border:1px solid #CEDFF2; padding:1em; padding-top:0.5em; padding-bottom:0em; color: black;"|


===Right-aligned single star===
===Right-aligned single star===
Some 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.
Some service ribbons such as the '''Explorer’s Ribbon''' and the '''Gold and Silver Lifesaving Ribbons''' have a special design in the center.
<center>
[[File:Awards ServiceRibbons Explorers 2011.jpg|100px]] [[File:Awards ServiceRibbons LifesavingGold 2011.jpg|100px]] [[File:Awards ServiceRibbons LifesavingSilver 2011.jpg|100px]]
</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,
For instance,


<pre>{{Ribbons|Awards ServiceRibbons LifesavingSilver 2011.jpg|100|2r}}</pre>
<pre>{{Ribbons|Silver Lifesaving Ribbon|100|2r}}</pre>


gives you
gives you


{{Ribbons|Awards ServiceRibbons LifesavingSilver 2011.jpg|100|2r}}
{{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.
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.


Here's how they all look:
==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'
|-
|
{|border='0' cellspacing='0' cellpadding='10'
!colspan=2 style="background:#343434; color:white"|Campaign Phases
|-
|colspan=2|'''PHASE I'''
*Begins on: 1 February 2392
*Ends on: 30 April 2392
|-
|colspan=2|'''PHASE II'''
*Begins on: 1 May 2392
*Ends on: 31 July 2392
|-
|colspan=2|'''PHASE III'''
*Begins on: 1 August 2392
*Ends on: 30 November 2392
|-
!style="background:#343434; color:white"|Phases<br>Completed
!style="background:#343434; color:white"|Ribbon
|-
!style="background:#C0C0C0"|Any 1 of the 3
! style="background:#343434;"|{{Ribbons|Prometheus Ribbon|120|1}}
|-
!style="background:#C0C0C0"|Any 2 of the 3
! 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.
 
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>
!Citations
{{Ribbons Rack
!Ribbon
|Silver Star|3
|- border="0"
|Prometheus Ribbon|3
!1
}}
| {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|120}}
</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'
|-
|-
!2
|
| {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|120|2}}
{|border='0' cellspacing='0' cellpadding='10'
!style="background:#343434; color:white"|Citations
!style="background:#343434; color:white"|Ribbon
!style="background:#343434; color:white"|Wikicode
|-
|-
!2r
!style="background:#C0C0C0"|1
| {{Ribbons|Awards ServiceRibbons LifesavingSilver 2011.jpg|120|2r}}
! style="background:#343434;"|{{Ribbons|Silver Star|120}}
|<nowiki>{{Ribbons|Silver Star|120}}</nowiki>
|-
|-
!3
!style="background:#C0C0C0"|2
| {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|120|3}}
! style="background:#343434;"|{{Ribbons|Silver Star|120|2}}
|<nowiki>{{Ribbons|Silver Star|120|2}}</nowiki>
|-
|-
!4
!style="background:#C0C0C0"|2r
| {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|120|4}}
! style="background:#343434;" |{{Ribbons|Silver Lifesaving Ribbon|120|2r}}
|<nowiki>{{Ribbons|Silver Lifesaving Ribbon|120|2r}}</nowiki>
|-
|-
!5
!style="background:#C0C0C0"|3
| {{Ribbons|Awards ServiceRibbons LifesavingGold 2011.jpg|120|5}}
! style="background:#343434;"|{{Ribbons|Silver Star|120|3}}
|<nowiki>{{Ribbons|Silver Star|120|3}}</nowiki>
|-
|-
!6
!style="background:#C0C0C0"|4
| {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|120|6}}
! style="background:#343434;"|{{Ribbons|Silver Star|120|4}}
|<nowiki>{{Ribbons|Silver Star|120|4}}</nowiki>
|-
|-
!6r
!style="background:#C0C0C0"|5
| {{Ribbons|Awards ServiceRibbons Explorers 2011.jpg|120|6r}}
! style="background:#343434;"|{{Ribbons|Silver Star|120|5}}
|<nowiki>{{Ribbons|Silver Star|120|5}}</nowiki>
|-
|-
!7
!style="background:#C0C0C0"|6
| {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|120|7}}
! style="background:#343434;"|{{Ribbons|Silver Star|120|6}}
|<nowiki>{{Ribbons|Silver Star|120|6}}</nowiki>
|-
|-
!8
!style="background:#C0C0C0"|6r
| {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|120|8}}
! style="background:#343434;"|{{Ribbons|Explorer's Ribbon|120|6r}}
|<nowiki>{{Ribbons|Explorer's Ribbon|120|6r}}</nowiki>
|-
|-
!9
!style="background:#C0C0C0"|7
| {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|120|9}}
! style="background:#343434;"|{{Ribbons|Silver Star|120|7}}
|<nowiki>{{Ribbons|Silver Star|120|7}}</nowiki>
|-
|-
!10
!style="background:#C0C0C0"|8
| {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|120|10}}
! style="background:#343434;"|{{Ribbons|Silver Star|120|8}}
|<nowiki>{{Ribbons|Silver Star|120|8}}</nowiki>
|-
|-
!11
!style="background:#C0C0C0"|9
| {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|120|11}}
! 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]].


And here's how it looks in a service rack:
{{Ribbons Rack
 
|TOSMA|1
{| cellpadding="0" style="border: 1px solid darkgray;"
|Legion of Merit|4
|- border="0"
|Silver Star|7
| [[File:Awards_General_Tosma1_2011.jpg|100px]]
|Purple Heart|2
| {{Ribbons|Awards ServiceRibbons LegionOfMerit 2011.jpg|100|4}}
|Vaadwaur Invasion Campaign Ribbon|1
|-
|Gold Lifesaving Ribbon|2r
| {{Ribbons|Awards ServiceRibbons SilverStar 2011.jpg|100|7}}
}}
| {{Ribbons|Awards ServiceRibbons PurpleHeart 2011.jpg|100|2}}
|-
| [[File:Awards-ServiceRibbon-VaadwaurInvasion.jpg|100px]]
| [[File:KlingonInvasion.jpg|100px]]
|}


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
| {{Ribbons|Awards ServiceRibbons PurpleHeart 2011.jpg|100|2}}
|Gold Lifesaving Ribbon|2r
|-
}}
| [[File:Awards-ServiceRibbon-VaadwaurInvasion.jpg|100px]]
| [[File:KlingonInvasion.jpg|100px]]
|}
</pre>
</pre>
===Problems or Questions?===
 
==Problems or Questions?==
Let [[User:Rich|Rich]] know!
Let [[User:Rich|Rich]] know!
 
__NOTOC__
[[Category:Templates]]
[[Category:Templates]]
[[Category:Commendations]]
[[Category:Commendations]]
</noinclude>
</noinclude>