Template:InvSalvage Drop: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
imported>Sekoia
m (cheating to make the sample output correct >.< apparently #if doesn't subst-transclude)
imported>Konoko
m (Switch instead of If... maybe...)
Line 1: Line 1:
This salvage is {{#ifeq: {{{1}}} | Common | '''Common''' | }}{{#ifeq: {{{1}}} | Uncommon | <font color=goldenrod>'''Uncommon'''</font> | }}{{#ifeq: {{{1}}} | Rare | <font color=orangered>'''Rare'''</font> | }}.<includeonly>[[Category:{{{1}}} Invention Salvage]]</includeonly><noinclude>
This salvage is {{#switch: {{{1}}}
| Common = '''Common'''
| Uncommon = {{color|goldenrod|'''Uncommon'''}}
| Rare = {{color|orangered|'''Rare'''</font>}}
}}.<includeonly>[[Category:{{{1}}} Invention Salvage]]</includeonly><noinclude>


==Usage==
==Usage==
Line 6: Line 10:


<!-- This table has to be manually updated for display results to avoid the inclusion of the salvage cats. -->
<!-- This table has to be manually updated for display results to avoid the inclusion of the salvage cats. -->
{|class="wikitable"
|-
!Template Call !! Result
|-
|<nowiki>{{InvSalvage Drop|Common}}</nowiki>||This salvage is '''Common'''.
|-
|<nowiki>{{InvSalvage Drop|Uncommon}}</nowiki>||This salvage is <font color=goldenrod>'''Uncommon'''</font>.
|-
|<nowiki>{{InvSalvage Drop|Rare}}</nowiki>||This salvage is <font color=orangered>'''Rare'''</font>.
|}


Using this template will place the salvage in the appropriate category, and will help facilitate DPL usage.
Using this template will place the salvage in the appropriate category, and will help facilitate DPL usage.
[[Category:Invention Salvage Templates]]</noinclude>
[[Category:Invention Salvage Templates]]</noinclude>

Revision as of 12:54, 11 May 2007

This salvage is .

Usage

Should be used in one of three ways, depending on the salvage's rarity:


Using this template will place the salvage in the appropriate category, and will help facilitate DPL usage.