Difference between revisions of "Template:Infobox ServiceRibbons"

From BattleMaster Wiki
Jump to navigation Jump to search
(Serious apologies for the rapid edits- I'm just getting the hang of templates and have had to edit/save to test my changes elsewhere.)
Line 1: Line 1:
 
{| class="infobox" border="0" 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| ]]}}}}}
Line 36: Line 36:
 
<pre>
 
<pre>
 
{{Infobox ServiceRibbons
 
{{Infobox ServiceRibbons
 +
|link=
 
|ribbon1=
 
|ribbon1=
 
|ribbon2=
 
|ribbon2=
Line 54: 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.

Revision as of 11:26, 27 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.