Difference between revisions of "Template:Infobox ServiceRibbons"

From BattleMaster Wiki
Jump to navigation Jump to search
m
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="infobox" border="1" style="float: left; width: 450px; border-spacing: 2px; font-size: 95%; text-align: left; border-collapse: collapse; margin-left: 1em;"
+
{| class="infobox" border="0" style="float: left; width: 450px; border-spacing: 2px; font-size: 95%; text-align: left; border-collapse: collapse; margin-left: 1em;"
 
|-  
 
|-  
! colspan="3" style="background: lightsteelblue; text-align: center;" | '''Service Ribbons'''
+
! colspan="3" style="background: lightsteelblue; text-align: center;" | {{#if: {{{link|}}}|'''[[{{{link}}}|Service Ribbons]]'''|'''Service Ribbons'''}}
 
|-  
 
|-  
 
| {{#if: {{{ribbon1|}}}|{{{colspan="1" style="text-align:center;" | [[Image:{{{ribbon1}}}|150px| ]]}}}}}
 
| {{#if: {{{ribbon1|}}}|{{{colspan="1" style="text-align:center;" | [[Image:{{{ribbon1}}}|150px| ]]}}}}}
| {{#if: {{{ribbon2|}}}|{{{colspan="1" style="text-align:center;" | [[Image:{{{ribbon2}}}|150px| ]]}}}}}
+
| {{#if: {{{ribbon2|}}}|{{{colspan="1" style="text-align:right;" | [[Image:{{{ribbon2}}}|150px| ]]}}}}}
 
| {{#if: {{{ribbon3|}}}|{{{colspan="1" style="text-align:center;" | [[Image:{{{ribbon3}}}|150px| ]]}}}}}
 
| {{#if: {{{ribbon3|}}}|{{{colspan="1" style="text-align:center;" | [[Image:{{{ribbon3}}}|150px| ]]}}}}}
 
|-
 
|-
Line 23: Line 23:
 
| {{#if: {{{ribbon15|}}}|{{{colspan="1" style="text-align:center;" | [[Image:{{{ribbon15}}}|150px| ]]}}}}}
 
| {{#if: {{{ribbon15|}}}|{{{colspan="1" style="text-align:center;" | [[Image:{{{ribbon15}}}|150px| ]]}}}}}
 
|-
 
|-
 +
 
|}
 
|}
  
Line 35: Line 36:
 
<pre>
 
<pre>
 
{{Infobox ServiceRibbons
 
{{Infobox ServiceRibbons
 +
|link=
 
|ribbon1=
 
|ribbon1=
 
|ribbon2=
 
|ribbon2=
Line 53: Line 55:
 
</pre>
 
</pre>
  
This infobox does not require that all ribbons be defined. It is recommended, for aesthetic purposes, that the ribbons used begin at "1" and ascend from there.  
+
This infobox does not require that all ribbons be defined. If there is a page granting the information of the service medals, it can be wikilinked via the "link" function. Note: It automatically attaches the page to the hyperlink "Service Ribbons. For example, "link= Minas_Leon/ServiceRibbons" would become <pre>[[Minas_Leon/ServiceRibbons|Service Ribbons]]</pre>. It is recommended, for aesthetic purposes, that the ribbons used begin at "1" and ascend from there. The current template allows for 15 separate service ribbons, although it can easily be expanded for more.  
 
<br>
 
<br>
 
The ribbon images which work best are 150x40px.
 
The ribbon images which work best are 150x40px.

Latest revision as of 05:17, 28 March 2014

Service Ribbons





This is the "Infobox ServiceRibbons" template. It should be called in the following format:

{{Infobox ServiceRibbons
|link=
|ribbon1=
|ribbon2=
|ribbon3=
|ribbon4=
|ribbon5=
|ribbon6=
|ribbon7=
|ribbon8=
|ribbon9=
|ribbon10=
|ribbon11=
|ribbon12=
|ribbon13=
|ribbon14=
|ribbon15=
}}

This infobox does not require that all ribbons be defined. If there is a page granting the information of the service medals, it can be wikilinked via the "link" function. Note: It automatically attaches the page to the hyperlink "Service Ribbons. For example, "link= Minas_Leon/ServiceRibbons" would become

[[Minas_Leon/ServiceRibbons|Service Ribbons]]

. It is recommended, for aesthetic purposes, that the ribbons used begin at "1" and ascend from there. The current template allows for 15 separate service ribbons, although it can easily be expanded for more.


The ribbon images which work best are 150x40px.