Template:Medal-info: Difference between revisions

WUnderhill (talk | contribs)
No edit summary
m Restyle to tf dark award-box house style (tf-abox) for uniform infobox appearance
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| border=0 cellpadding=10 style="float: right; background: none;"
<includeonly><templatestyles src="Infobox-award/styles.css" />
{| class="sidebar tf-abox"
|-
|-
|
| class="tf-abox-name" colspan="2" | '''{{{name}}}'''
{| class="wikitable" cellpadding="4" cellspacing="5" colspan="2" align=right style="background: navy; border: 1px #aaaaaa solid; font-size: 85%;"
! align="center" colspan=2 bgcolor="#000080" style="border-bottom:1px solid navy; color:black; font-size:110%;" | '''TRMN MEDAL'''
|- valign="top"
| align="center" colSpan="2" style="border-bottom:1px solid navy; color:white; font-size:105%;" | '''{{{name}}}'''
|-
|-
| class="image" colspan="2" align="center" | {{#if: {{{image|}}}
| class="tf-abox-img" colspan="2" | {{#if:{{{image|}}}|{{sidebar image|{{{image}}}}}|[[File:RMN.png|125px]]}}
| {{sidebar image|{{{image}}}}}
{{#if:{{{auth|}}}|
| [[File:TRMNLogo.png|125px]]
{{!}}-
}}
{{!}} class="tf-abox-l" {{!}} '''Authority:'''
|- valign="top"
{{!}} class="tf-abox-r" {{!}} {{{auth}}}}}
{{#if: {{{auth|}}}|
{{#if:{{{freq|}}}|
{{!}} class="left" {{!}} '''Authority:'''
{{!}}-
{{!}} class="righta" {{!}} {{{auth}}}}}
{{!}} class="tf-abox-l" {{!}} '''Frequency:'''
|- valign="top"
{{!}} class="tf-abox-r" {{!}} {{{freq}}}}}
{{#if: {{{freq|}}}|
{{#if:{{{branches|}}}|
{{!}} class="left" {{!}} '''Frequency:'''
{{!}}-
{{!}} class="righta" {{!}} {{{freq}}}}}
{{!}} class="tf-abox-l" {{!}} '''Branches:'''
|- valign="top"
{{!}} class="tf-abox-r" {{!}} {{{branches}}}}}
{{#if: {{{branches|}}}|
{{#if:{{{image2|}}}|
{{!}} class="left" {{!}} '''Branches:'''
{{!}}-
{{!}} class="righta" {{!}} {{{branches}}}}}
{{!}} class="tf-abox-img" colspan="2" {{!}} {{sidebar image|{{{image2}}}}}}}
|- valign="top"
{{#if:{{{image3|}}}|
{{#if: {{{image2|}}}|
{{!}}-
{{!}} class="image" colspan="2" align="center" align="center" colspan="2" {{!}} {{sidebar image|{{{image2}}}}}}}
{{!}} class="tf-abox-img" colspan="2" {{!}} {{sidebar image|{{{image3}}}}}}}
|- valign="top"
|}</includeonly><noinclude>
{{#if: {{{image3|}}}|
{{!}} class="image" colspan="2" align="center" align="center" colspan="2" {{!}} {{sidebar image|{{{image3}}}}}}}
|}
|}<noinclude>


==Usage==
==Usage==
<pre>
<pre>
{{medal-info
{{medal-info
| name      =  
| name      =
| image      =  
| image      =
| auth      =  
| auth      =
| freq      =  
| freq      =
| branches  =  
| branches  =
| image2    =  
| image2    =
}}</pre>
}}</pre>


== Example when done ==
== Example when done ==
{{medal-info  
{{medal-info
| name = Space Service Deployment Ribbon
| name = Space Service Deployment Ribbon
| image = space_service_deployment_ribbon.png
| image = space_service_deployment_ribbon.png
Line 53: Line 46:
We placed our Infobox Medal-Info in the field and entered the following:
We placed our Infobox Medal-Info in the field and entered the following:
<pre>
<pre>
{{medal-info  
{{medal-info
| name = Space Service Deployment Ribbon
| name = Space Service Deployment Ribbon
| image = space_service_deployment_ribbon.png
| image = space_service_deployment_ribbon.png
Line 63: Line 56:


== Parameters ==
== Parameters ==
Parameters in '''bold''' are required fields.  
Parameters in '''bold''' are required fields.
{| border=1 cellpadding=4 cellspacing=0 style="margin: 0 0 1em 1em; border: 1px #aaaaaa solid; border-collapse: collapse; font-size: 95%;"
{| border=1 cellpadding=4 cellspacing=0 style="margin: 0 0 1em 1em; border: 1px #aaaaaa solid; border-collapse: collapse; font-size: 95%;"
! Parameter
! Parameter
Line 73: Line 66:
| Image
| Image
| This will be the full file name to the medal's image.  You can use the smaller ribbon or the full image of the award if available.
| This will be the full file name to the medal's image.  You can use the smaller ribbon or the full image of the award if available.
|-  
|-
| Auth
| Auth
| Who has the authority to issue this award?  Examples are <nowiki>{{bupers}}</nowiki> or <nowiki>{{butrain}}</nowiki>.
| Who has the authority to issue this award?  Examples are <nowiki>{{bupers}}</nowiki> or <nowiki>{{butrain}}</nowiki>.
|-
|-
| Freq
| Freq
| Is this award available multiple times or just once per lifetime?
| Is this award available multiple times or just once per lifetime?
|-  
|-
| Branches
| Branches
| Which branches of TRMN can receive this award?  For all branches, use <nowiki>{{AllBranches}}</nowiki>, otherwise use <nowiki>{{RMNs}}</nowiki> to display "{{RMNs}}".
| Which branches of TRMN can receive this award?  For all branches, use <nowiki>{{AllBranches}}</nowiki>, otherwise use <nowiki>{{RMNs}}</nowiki> to display "{{RMNs}}".
|-  
|-
| Image2
| Image2
| An optional second image spot.
| An optional second image spot.
|-
| Image3
| An optional third image spot.
|}
|}
[[Category: Sidebar templates|Medal-info]]
[[Category: Sidebar templates|Medal-info]]
[[Category: Templates]]</noinclude>
[[Category: Templates]]</noinclude>