Template:Medal: Difference between revisions

From Wikipedia of the Dark Brotherhood, an online Star Wars Club
No edit summary
 
(Adding fields for XP and Credit values)
 
(38 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly>
{| class="infoboxtemp" width="250" align="right" cellpadding="3" cellspacing="0"  
{| class="infobox" style="width: 315px; border-spacing: 2px; font-size: 95%; text-align: left;"
|-
! colspan="2" style="background: lightsteelblue; text-align: center;" | {{{name|{{PAGENAME}}}}}
|-
|-
{{#if:{{{image|}}} |
{{#if: {{{Image|}}}|
{{!}} colspan="2" style="text-align: center; font-size: 90%;" {{!}} {{{image|}}}<br/>{{{caption|}}}
{{!}} class="infoboximage" colspan="2" bgcolor={{{bgcolor_value|#222222;}}} {{!}} {{{Image}}}}}
}}
|-
|-
| colspan="2" style="text-align: center; background: lightsteelblue;" | Awarded by {{{awarded_by|}}}
| class="name" colspan="2" | '''''{{{Medal name}}}'''''
|-
|-
! style="padding-right: 1em;" | Type
{{#if: {{{Awarded_by|}}}|
| {{{type|}}}
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Awarded by:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{Awarded_by}}}}}
|-
|-
{{#if:{{{eligibility|}}} |
{{#if: {{{Medal_type|}}}|
! style="padding-right: 1em;" {{!}} Eligibility
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Type:
{{!}} {{{eligibility|}}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
}}
{{{Medal_type}}}}}
|-
|-
! style="padding-right: 1em;" | Awarded&nbsp;for
{{#if: {{{Abbreviation|}}}|
| {{{for|}}}
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Abbreviation:
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{Abbreviation}}}}}
|-
|-
{{#if:{{{campaign|}}} |
{{#if: {{{XP|}}}|
! style="padding-right: 1em;" {{!}} Campaign
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} XP Value:
{{!}} {{{campaign|}}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
}}
{{{XP}}}}}
|-
|-
{{#if:{{{status|}}} |
{{#if: {{{Credits|}}}|
! style="padding-right: 1em;" {{!}} Status
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Credit Value:
{{!}} {{{status|}}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
}}
{{{Credits}}}}}
|-
|-
{{#if:{{{description|}}} |
{{#if: {{{Recipient|}}}|
! style="padding-right: 1em;" {{!}} Description
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Recipients:
{{!}} {{{description|}}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
}}
{{{Recipient}}}}}
|-
|-
{{#if:{{{clasps|}}} |
{{#if: {{{OldNames|}}}|
! style="padding-right: 1em;" {{!}} [[Campaign clasp|Clasps]]
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Formerly Known As:
{{!}} {{{clasps|}}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
}}
{{{OldNames}}}}}
|-
|-
{{#if:{{{established|}}}{{{first_award|}}}{{{last_award|}}}{{{total|}}}{{{posthumous|}}}{{{recipients|}}} |
{{#if: {{{Higher|}}}|
! colspan="2" style="background: lightsteelblue; text-align: center;" {{!}} Statistics
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Higher:
}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
{{{Higher}}}}}
|-
|-
{{#if:{{{established|}}} |
{{#if: {{{Lower|}}}|
! style="padding-right: 1em;" {{!}} Established
{{!}} class="infoboxinfoheader" bgcolor={{{bgcolor_value|#222222;}}} {{!}} Lower:
{{!}} {{{established|}}}
{{!}} class="infoboxinfodata" bgcolor={{{bgcolor_value|#2B2B2B;}}} {{!}}
}}
{{{Lower}}}}}
|-
|-
{{#if:{{{first_award|}}} |
|class="infoboxfooter {{lc:{{{type}}}}}" colspan="2" | {{Link color|Template:Medal|#585858|[ Source ]}}
! style="padding-right: 1em;" {{!}} First&nbsp;awarded
|}
{{!}} {{{first_award|}}}
<noinclude>
}}
== 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.
{{#if:{{{last_award|}}} |
<pre>
! style="padding-right: 1em;" {{!}} Last&nbsp;awarded
{{Medal
{{!}} {{{last_award|}}}
|Image =
}}
|Medal name =  
|-
|Awarded_by =
{{#if:{{{total|}}} |
|Medal_type =
! style="padding-right: 1em;" {{!}} Total&nbsp;awarded
|XP =
{{!}} {{{total|}}}
|Credits =
}}
|Recipient =  
|-
|Abbreviation =
{{#if:{{{posthumous|}}}|
|OldNames =
! style="padding-right: 1em;" {{!}} Posthumous<br>awards
|Higher =  
{{!}} {{{posthumous|}}}
|Lower =
}}
}}</pre>
|-
 
{{#if:{{{recipients|}}} |
[[Category:Infobox templates|{{PAGENAME}}]]</noinclude>
! style="padding-right: 1em;" {{!}} Distinct<br>recipients
{{!}} {{{recipients|}}}
}}
|-
{{#if:{{{higher|}}}{{{same|}}}{{{lower|}}}{{{individual|}}} |
! colspan="2" style="background: lightsteelblue; text-align: center;" {{!}} Precedence
}}
|-
{{#if:{{{higher|}}} |
! style="padding-right: 1em;" {{!}} Next&nbsp;highest
{{!}} {{{higher|}}}
}}
|-
{{#if:{{{same|}}} |
! style="padding-right: 1em;" {{!}} Same
{{!}} {{{same|}}}
}}
|-
{{#if:{{{individual|}}} |
! style="padding-right: 1em;" {{!}} Individual<br>equivalent
{{!}} {{{individual|}}}
}}
|-
{{#if:{{{lower|}}}|
! style="padding-right: 1em;" {{!}} Next&nbsp;lowest
{{!}} {{{lower|}}}
}}
|-
{{#if:{{{image2|}}} |
{{!}} colspan="2" style="text-align: center; font-size: 90%; border-top: 1px solid #aaa;" {{!}} {{{image2|}}}<br/>{{{caption2|}}}
}}
|}</includeonly>

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 =
}}