Difference between revisions of "Template:Medal-info"

From TRMN
Jump to navigation Jump to search
m
m
Line 1: Line 1:
{| class="wikitable" cellspacing="5" colspan="2" align=right style="background: navy; border: 1px #aaaaaa solid; font-size: 85%;"  
{| 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:105%;" | {{{name}}}
! align="center" colspan=2 bgcolor="#000080" style="border-bottom:1px solid navy; color:black; font-size:105%;" | MEDAL
|- valign="top"
| class="classname" colSpan="2" | ''{{{name}}}''
|-
|-
| colspan="2" align="center" bgcolor="black" | {{{image}}}
| class="image" colspan="2" | {{#if: {{{image|}}}
| {{sidebar image|{{{image}}}}}
| [[File:TRMNLogo.png|125px]]
}}
|- valign="top"
{{#if: {{{auth|}}}|
{{!}} class="left" {{!}} '''Authority:'''
{{!}} class="righta" {{!}} {{{auth}}}}}
|- valign="top"
{{#if: {{{branches|}}}|
{{!}} class="left" {{!}} '''Branches:'''
{{!}} class="righta" {{!}} {{{branches}}}}}
|- valign="top"
{{#if: {{{image2|}}}|
{{!}} class="image" colspan="2" align="center" align="center" colspan="2" {{!}} {{sidebar image|{{{image2}}}}}}}
|}<noinclude>
 
==Usage==
<pre>
{{medal-info
| name      =
| image     =
| auth      =
| freq      =
| branches  =
| image2    =
}}</pre>
 
== Example when done ==
{{medal-info
| name = Space Service Deployment Ribbon
| image = space_service_deployment_ribbon.png
| auth = {{bupers}}<br>{{butrain}}
| freq = Once per member maximum.
| branches = {{AllBranches}}
}}
We placed our Infobox Medal-Info in the field and entered the following:
<pre>
{{medal-info
| name = Space Service Deployment Ribbon
| image = space_service_deployment_ribbon.png
| auth = {{bupers}}<br>{{butrain}}
| freq = Once per member maximum.
| branches = {{AllBranches}}
}}
</pre>
 
== Parameters ==
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%;"
! Parameter
! Explanation
|-
|-
| '''Authority''':
| '''name'''
| {{{authority}}}
| Name of the Medal or Award.
|-
|-
| '''Frequency''':
| Image
| {{{frequency}}}
| 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
| Who has the authority to issue this award?  Examples are <nowiki>{{bupers}}</nowiki> or <nowiki>{{butrain}}</nowiki>.
|-
|-
| '''Branches''':
| Freq
| {{{branches}}}
| Is this award available multiple times or just once per lifetime? 
|-
| Branches
| Which branches of TRMN can receive this award?  For all branches, use <nowiki>{{AllBranches}}</nowiki>, otherwise use <nowiki>{{RMNs}}</nowiki> to display "{{RMNs}}".
|-
| Image2
| An optional second image spot.
|}
|}
<noinclude>[[Category:Sidebar templates|{{PAGENAME}}]]</noinclude>
[[Category:Sidebar templates|Medal-info]]</noinclude>

Revision as of 02:52, 13 January 2015

MEDAL
{{{name}}}
File:TRMNLogo.png

Usage

{{medal-info
| name       = 
| image      = 
| auth       = 
| freq       = 
| branches   = 
| image2     = 
}}

Example when done

MEDAL
Space Service Deployment Ribbon
Space service deployment ribbon.png
Authority: Bureau of Personnel


Bureau of Training

Branches: RMN, RMMC, RMA, GSN, IAN, RHN, Civilian

We placed our Infobox Medal-Info in the field and entered the following:

{{medal-info 
| name = Space Service Deployment Ribbon
| image = space_service_deployment_ribbon.png
| auth = {{bupers}}<br>{{butrain}}
| freq = Once per member maximum.
| branches = {{AllBranches}}
}}

Parameters

Parameters in bold are required fields.

Parameter Explanation
name Name of the Medal or Award.
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.
Auth Who has the authority to issue this award? Examples are {{bupers}} or {{butrain}}.
Freq Is this award available multiple times or just once per lifetime?
Branches Which branches of TRMN can receive this award? For all branches, use {{AllBranches}}, otherwise use {{RMNs}} to display "RMN".
Image2 An optional second image spot.