Template:Medal: Difference between revisions

From Wikipedia of the Dark Brotherhood, an online Star Wars Club
mNo edit summary
(Adding fields for XP and Credit values)
 
(24 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<table border="0" cellspacing="0" cellpadding="4" style="float:right; margin:0 0 .5em 1em; width:250px; background:#fff; border-collapse:collapse; border:1px solid #999; font-size:smaller; line-height:1.5; ">
{| class="infoboxtemp" width="250" align="right" cellpadding="3" cellspacing="0"
<tr style="text-align:center; background:#f0f0f0;">
|-
<td colspan="2" style="padding:0; background:#black; color:#fff;">{{{Image|}}}</td>
{{#if: {{{Image|}}}|
</tr><tr style="color:#fff; background:#996; font-size:larger;">
{{!}} class="infoboximage" colspan="2" bgcolor={{{bgcolor_value|#222222;}}} {{!}} {{{Image}}}}}
<th colspan="2">'''''{{{Medal name}}}'''''</th>
|-
</tr> {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">'''Awarded&nbsp;by:'''</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
| class="name" colspan="2" | '''''{{{Medal name}}}'''''
{{{Awarded_by|}}}
|-
</td></tr>|1{{{Awarded_by|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">'''Type:'''</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{#if: {{{Awarded_by|}}}|
{{{Medal_type|}}}
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Awarded by:
</td></tr>|1{{{Medal_type|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">'''Higher:'''</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{Higher|}}}
{{{Awarded_by}}}}}
</td></tr>|1{{{Higher|}}}=}} {{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{3|#f0f0f0}}}"><td style="border-top: 1px solid #999; border-bottom: 1px solid #999;">'''Lower:'''</td><td class="infoboxcell" style="border-top: 1px solid #999; border-bottom: 1px solid #999;">
|-
{{{Lower|}}}
{{#if: {{{Medal_type|}}}|
</td></tr>|1{{{Lower|}}}=}} </table><noinclude>[[Category:Media infoboxes|Medal]]
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Type:
{{clear}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{Medal_type}}}}}
|-
{{#if: {{{Abbreviation|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Abbreviation:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{Abbreviation}}}}}
|-
{{#if: {{{XP|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} XP Value:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{XP}}}}}
|-
{{#if: {{{Credits|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Credit Value:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{Credits}}}}}
|-
{{#if: {{{Recipient|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Recipients:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{Recipient}}}}}
|-
{{#if: {{{OldNames|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Formerly Known As:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{OldNames}}}}}
|-
{{#if: {{{Higher|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Higher:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{Higher}}}}}
|-
{{#if: {{{Lower|}}}|
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Lower:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{Lower}}}}}
|-
|class="infoboxfooter {{lc:{{{type}}}}}" colspan="2" | {{Link color|Template:Medal|#585858|[ Source ]}}
|}
<noinclude>
== Usage ==
== Usage ==
<pre>{{Infobox Medal
Paste the following code at the beginning of the article, filing all relevant fields. If a field doesn't apply, just leave it blank.
<pre>
{{Medal
|Image =  
|Image =  
|Medal name =  
|Medal name =  
|Awarded_by =  
|Awarded_by =  
|Medal_type =  
|Medal_type =
|XP =
|Credits =
|Recipient =
|Abbreviation =
|OldNames =  
|Higher =  
|Higher =  
|Lower =  
|Lower =
}}</pre>
}}</pre>
</noinclude>
 
[[Category:Infobox templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 15:28, 29 March 2024

{{{Medal name}}}
[ Source ]

Usage

Paste the following code at the beginning of the article, filing all relevant fields. If a field doesn't apply, just leave it blank.

{{Medal
|Image = 
|Medal name = 
|Awarded_by = 
|Medal_type =
|XP = 
|Credits = 
|Recipient = 
|Abbreviation =
|OldNames = 
|Higher = 
|Lower =
}}