Difference between revisions of "Template:WareList"

From SpiralKnights

Jump to: navigation, search
m (test)
m (my typos omg)
 
(27 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{|</noinclude>|-  valign="middle"  
+
<includeonly>|-  valign="middle"  
  
|style="background: #c7dbea; padding:3px 3px 3px 4px; border-radius: 5px;" width="200px" align="left" valign="middle"    | [[File:{{#switch:{{{type|}}}
+
|style="background: #c7dbea; padding:3px 3px 4px 4px; border-radius: 5px;" align="left" valign="middle"    | [[File:{{#switch:{{{type|}}}
|accessory  = Equipment
+
|#default  = Equipment
|armor      = Equipment
+
 
|confetti  = Usable
 
|confetti  = Usable
|costume    = Equipment
+
|consumable = Item
|equipment  = Equipment
+
 
|food      = Food  
 
|food      = Food  
 
|furniture  = Furniture
 
|furniture  = Furniture
|helmet    = Equipment
+
|harness    =  
 
|key        = Key
 
|key        = Key
 +
|material  = Crafting
 +
|pickup    = Item
 
|rarity    = Rarity
 
|rarity    = Rarity
 
|recipe    = Recipe-icon
 
|recipe    = Recipe-icon
|reskin    = Equipment
 
 
|sprite pod = Icon  
 
|sprite pod = Icon  
 
|ticket    = Ticket
 
|ticket    = Ticket
 +
|token      = Token
 
|usable    = Usable
 
|usable    = Usable
|weapon    = Equipment
+
}}{{#switch:{{{type|}}}|#default =-{{{name}}}|recipe=|harness={{{name}}}}}{{#switch:{{{type|}}}
}}{{#switch:{{{type|}}}|#default =-{{{name}}}|recipe=}}{{#switch:{{{type|}}}
+
 
|#default    =_icon
 
|#default    =_icon
 +
|consumable  =
 +
|material    =
 +
|pickup      =
 +
|harness    =
 
|recipe      = {{#switch:{{{subtype|}}}|armor=_armor|helmet=_helmet|shield=_shield|bomb=_bomb|handgun=_handgun|sword=_sword}}
 
|recipe      = {{#switch:{{{subtype|}}}|armor=_armor|helmet=_helmet|shield=_shield|bomb=_bomb|handgun=_handgun|sword=_sword}}
 
|sprite pod  =_Pod
 
|sprite pod  =_Pod
 +
|token      =
 
}}.png|36px|{{{name|}}}]] {{#switch:{{{subtype}}}
 
}}.png|36px|{{{name|}}}]] {{#switch:{{{subtype}}}
 
|#default=[[{{{name|}}}]]
 
|#default=[[{{{name|}}}]]
Line 27: Line 31:
 
}} {{#switch:{{{type|}}}|#default =|recipe=Recipe}}
 
}} {{#switch:{{{type|}}}|#default =|recipe=Recipe}}
  
|style="background: #c7dbea; padding:3px; border-radius: 5px;" align = "center"               | [[{{ucfirst:{{{type}}}}}]]
+
|style="background: #c7dbea; padding:3px; border-radius: 5px;" align = "center" | [[{{ucfirst:{{{type}}}}}]]
  
|style="background: #c7dbea; padding:3px; border-radius: 5px;" align = "center"               | [[{{ucfirst:{{{subtype}}}}}]]
+
|style="background: #c7dbea; padding:3px; border-radius: 5px;" align = "center" | {{#if:{{{subtype|}}}|{{#switch:{{{subtype|}}}
 +
|#default      = [[{{ucfirst:{{{subtype}}}}}]]
 +
|Armor Costume  = [[Armor Costume]]
 +
|Helmet Costume = [[Helmet Costume]]
 +
|armor costume  = [[Armor Costume]]
 +
|helmet costume = [[Helmet Costume]]
 +
}}
 +
|}}
  
|style="background: #c7dbea; padding:3px; border-radius: 5px;" align = "center"               | {{star|{{{star}}}}}
+
|style="background: #c7dbea; padding:3px; border-radius: 5px;" align = "center" | {{#if:{{{star|}}}|{{star|{{{star}}}}}|}}
  
|style="background: #c7dbea; padding:3px; border-radius: 5px;" align = "center"               | {{{cost}}}
+
|style="background: #c7dbea; padding:3px; border-radius: 5px;" align = "center" | {{{cost}}}
  
|style="background: #c7dbea; padding:3px; border-radius: 5px;" align = "left"                 | {{{notes}}}<noinclude>
+
|style="background: #c7dbea; padding:3px; border-radius: 5px;" align = "left"   | {{#switch:{{{notes|}}}
 +
|#default = {{{notes}}}
 +
|4-1 = Becomes available at rank 4-1.
 +
|5-2 = Becomes available at rank 5-2.
 +
|6-2 = Becomes available at rank 6-2.
 +
|8-2 = Becomes available at rank 8-2.
 +
}}</includeonly><noinclude>
 +
{{documentation}}
 
[[Category:List Templates]]</noinclude>
 
[[Category:List Templates]]</noinclude>

Latest revision as of 17:12, 21 April 2020

[edit] [purge] Template documentation

Usage

To display a sortable list of wares on individual vendor pages. It is similar to Template:PrizeBoxList, but does not display the item's tooltip, and provides cost information instead of possibility data.

Code

{{WareList
|name    = 
|type    = 
|subtype = 
|star    = 
|cost    = 
|notes   = 
}}

Parameters

Parameters are highly variable, designed to work with the huge inventory of Spiral Knights. For examples, see what links here to determine what is best for unit cost variation and colloquial subtypes (subtyping is not part of the game's inventory classification in many cases. It is something editors have agreed to do to further aid item searching within these lists as well as player understanding. Materials do not have subtypes). Pay special attention to capitalization. Do not upload icon files unless you know the item has just been released or there has been trouble obtaining an icon for a long time due to recolor behavior. All icons are otherwise uploaded, rendering red text the result of an error in input.

Notes are built into the template for Hall of Heroes vendors. Otherwise, the phrase "Binds upon purchase." is most commonly used here. It is not a template default because editors need to carefully make sure each entry is correct for sensitive binding information.

Notes

The cost column is not sortable because sorting tends to organize the table in a rather useless manner for certain vendors (especially Randolph). Tables sort lower place values to the top first, meaning 100 is considered to be less than 20 due to "1" vs. "2". To avoid the various complications that arise from this behavior, vendor lists have each individual ware entry in order from least to greatest based on cost, with unit variation organized alphabetically in the same manner. See Brinks for more details.

Personal tools