Template:InvSalvage Drop: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
imported>Sekoia
m (fixing documentation, subst)
imported>Sekoia
m (fixing nocat parameter)
 
(7 intermediate revisions by 2 users not shown)
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'''}}
| #default = ''please specify rarity''}}.{{#if:{{{nocat|}}}||<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"
{|class="wikitable"
|-
|-
!Template Call !! Result
!Template Call !! Result
|-
|-
|<nowiki>{{InvSalvage Drop|Common}}</nowiki>||This salvage is {{#ifeq: Common | Common | '''Common''' | }}{{#ifeq: Common | Uncommon | <font color=goldenrod>'''Uncommon'''</font> | }}{{#ifeq: Common | Rare | <font color=orangered>'''Rare'''</font> | }}.[[Category:Common Invention Salvage]]
|<nowiki>{{InvSalvage Drop|Common}}</nowiki>
|{{InvSalvage Drop|Common|nocat=1}}
|-
|-
|<nowiki>{{InvSalvage Drop|Uncommon}}</nowiki>||This salvage is {{#ifeq: Uncommon | Common | '''Common''' | }}{{#ifeq: Uncommon | Uncommon | <font color=goldenrod>'''Uncommon'''</font> | }}{{#ifeq: Uncommon | Rare | <font color=orangered>'''Rare'''</font> | }}.[[Category:Uncommon Invention Salvage]]
|<nowiki>{{InvSalvage Drop|Uncommon}}</nowiki>
|{{InvSalvage Drop|Uncommon|nocat=1}}
|-
|-
|<nowiki>{{InvSalvage Drop|Rare}}</nowiki>||This salvage is {{#ifeq: Rare | Common | '''Common''' | }}{{#ifeq: Rare | Uncommon | <font color=goldenrod>'''Uncommon'''</font> | }}{{#ifeq: Rare | Rare | <font color=orangered>'''Rare'''</font> | }}.[[Category:Rare Invention Salvage]]
|<nowiki>{{InvSalvage Drop|Rare}}</nowiki>
|{{InvSalvage Drop|Rare|nocat=1}}
|}
|}


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>

Latest revision as of 12:10, 20 February 2008

This salvage is please specify rarity.

Usage

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


Template Call Result
{{InvSalvage Drop|Common}} This salvage is Common.
{{InvSalvage Drop|Uncommon}} This salvage is Uncommon.
{{InvSalvage Drop|Rare}} This salvage is Rare.

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