Difference between revisions of "Template:Infobox ServiceRibbons"

From BattleMaster Wiki
Jump to navigation Jump to search
m
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="1" 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'''
+
! {{#if: {{{ribbon1|}}}|{{{rowspan="1" colspan="3" style="background: lightsteelblue; text-align: center;" | '''Service Ribbons'''}}}}}
 +
! {{#if: {{{ribbon4|}}}|{{{rowspan="2" colspan="3" style="background: lightsteelblue; text-align: center;" | '''Service Ribbons'''}}}}}
 +
! {{#if: {{{ribbon7|}}}|{{{rowspan="3" colspan="3" style="background: lightsteelblue; text-align: center;" | '''Service Ribbons'''}}}}}
 +
! {{#if: {{{ribbon10|}}}|{{{rowspan="4" colspan="3" style="background: lightsteelblue; text-align: center;" | '''Service Ribbons'''}}}}}
 +
! {{#if: {{{ribbon13|}}}|{{{rowspan="5" colspan="3" style="background: lightsteelblue; text-align: center;" | '''Service Ribbons'''}}}}}
 
|-  
 
|-  
 
| {{#if: {{{ribbon1|}}}|{{{colspan="1" style="text-align:center;" | [[Image:{{{ribbon1}}}|150px| ]]}}}}}
 
| {{#if: {{{ribbon1|}}}|{{{colspan="1" style="text-align:center;" | [[Image:{{{ribbon1}}}|150px| ]]}}}}}

Revision as of 11:05, 27 March 2014





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

{{Infobox ServiceRibbons
|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. It is recommended, for aesthetic purposes, that the ribbons used begin at "1" and ascend from there.
The ribbon images which work best are 150x40px.