Category:Invention Salvage Templates: Difference between revisions

From Homecoming Wiki
Jump to navigation Jump to search
imported>Sekoia (historical)
(documentation, more to come...)
imported>Sekoia (historical)
m (→‎Drop Template: getting rid of inappropriate cats)
 
(3 intermediate revisions by the same user not shown)
Line 13: Line 13:
The {{tl|InvSalvage Drop}} template must be provided on each page. It should be used in one of three ways, depending on the salvage's rarity:
The {{tl|InvSalvage Drop}} template must be provided on each page. It should be used in one of three ways, depending on the salvage's rarity:


<!-- 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
|-
|-
|{{tl|InvSalvage Drop|Common}}||This salvage is {{#switch: Common
|<nowiki>{{InvSalvage Drop|Common}}</nowiki>
| Common = '''Common'''
|{{InvSalvage Drop|Common|nocat=1}}
| Uncommon = {{color|goldenrod|'''Uncommon'''}}
| Rare = {{color|orangered|'''Rare'''}}
}}.[[Category:Common Invention Salvage]]
|-
|-
|{{tl|InvSalvage Drop|Uncommon}}||This salvage is {{#switch: Uncommon
|<nowiki>{{InvSalvage Drop|Uncommon}}</nowiki>
| Common = '''Common'''
|{{InvSalvage Drop|Uncommon|nocat=1}}
| Uncommon = {{color|goldenrod|'''Uncommon'''}}
| Rare = {{color|orangered|'''Rare'''}}
}}.[[Category:Uncommon Invention Salvage]]
|-
|-
|{{tl|InvSalvage Drop|Rare}}||This salvage is {{#switch: Rare
|<nowiki>{{InvSalvage Drop|Rare}}</nowiki>
| Common = '''Common'''
|{{InvSalvage Drop|Rare|nocat=1}}
| Uncommon = {{color|goldenrod|'''Uncommon'''}}
| Rare = {{color|orangered|'''Rare'''}}
}}.[[Category:Rare Invention Salvage]]
|}
|}


Line 69: Line 59:


== Level Templates ==
== Level Templates ==
There are three level-range templates. One of these templates must be included on each Invention Salvage page. The templates have one required argument, which must be either "Arcane" or "Technological". They should be used as follows:
{|class="wikitable"
|-
! Template Call !! Use
|-
|{{tl|InvSalvage Level Low|Arcane}}
|Low-level Arcane Salvage
|-
|{{tl|InvSalvage Level Low|Technological}}
|Low-level Tech Salvage
|-
|{{tl|InvSalvage Level Mid|Arcane}}
|Mid-level Arcane Salvage
|-
|{{tl|InvSalvage Level Mid|Technological}}
|Mid-level Tech Salvage
|-
|{{tl|InvSalvage Level High|Arcane}}
|High-level Arcane Salvage
|-
|{{tl|InvSalvage Level High|Technological}}
|High-level Tech Salvage
|}
These will also add the appropriate level category to the article.


== Enemy Templates ==
== Enemy Templates ==


[[Category:Templates]]
Each Invention Salvage article must also have a template indicating whether it is technological or arcane. Note that this is separate from the Level-based ones. The Level based one do not provide the arcane/tech category, and they do not provide the needed information for DPL.
 
{|class="wikitable"
|-
! Template Call !! Use
|-
| {{tl|InvSalvage Enemy Arcane}}
| Arcane Salvage
|-
| {{tl|InvSalvage Enemy Tech}}
| Technological Salvage
|}
 
There's also an additional template, {{tl|InvSalvage Enemy Both}}. This template shouldn't be used directly in Salvage pages, as it is included in the Arcane and Tech versions.
 
[[Category:Invention System Templates]]

Latest revision as of 12:09, 20 February 2008

Overview

This category has several sets of templates for providing information on an Invention Salvage page.

All Invention Salvage pages should get three templates on them:

Drop Template

The {{InvSalvage Drop}} template must be provided on each page. It 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.

Level and Enemy Convenience Templates

The other templates that must be included can be included easily through one of six convenience templates. In order to properly facilitate DPL queries, these templates should be subst'd into the article.

Template Call Use
{{subst:InvSalvage LowArcane}} Low-level Arcane Salvage
{{subst:InvSalvage LowTech}} Low-level Tech Salvage
{{subst:InvSalvage MidArcane}} Mid-level Arcane Salvage
{{subst:InvSalvage MidTech}} Mid-level Tech Salvage
{{subst:InvSalvage HighArcane}} High-level Arcane Salvage
{{subst:InvSalvage HighTech}} High-level Tech Salvage

These templates will place one of each of the other two types of templates on the page.

Level Templates

There are three level-range templates. One of these templates must be included on each Invention Salvage page. The templates have one required argument, which must be either "Arcane" or "Technological". They should be used as follows:

Template Call Use
{{InvSalvage Level Low|Arcane}} Low-level Arcane Salvage
{{InvSalvage Level Low|Technological}} Low-level Tech Salvage
{{InvSalvage Level Mid|Arcane}} Mid-level Arcane Salvage
{{InvSalvage Level Mid|Technological}} Mid-level Tech Salvage
{{InvSalvage Level High|Arcane}} High-level Arcane Salvage
{{InvSalvage Level High|Technological}} High-level Tech Salvage

These will also add the appropriate level category to the article.

Enemy Templates

Each Invention Salvage article must also have a template indicating whether it is technological or arcane. Note that this is separate from the Level-based ones. The Level based one do not provide the arcane/tech category, and they do not provide the needed information for DPL.

Template Call Use
{{InvSalvage Enemy Arcane}} Arcane Salvage
{{InvSalvage Enemy Tech}} Technological Salvage

There's also an additional template, {{InvSalvage Enemy Both}}. This template shouldn't be used directly in Salvage pages, as it is included in the Arcane and Tech versions.