More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<code>Module:Tier_List</code> is used to generate tier lists directly within the wiki. | <code>Module:Tier_List</code> is used to generate tier lists directly within the wiki. | ||
It currently supports | It currently supports three rendering methods: | ||
* <code>drawSimple</code> – renders entries directly from the provided text | |||
* <code>drawIcons</code> – renders entries from manually specified icon files | |||
* <code>drawCargoTable</code> – renders entries using Cargo data | * <code>drawCargoTable</code> – renders entries using Cargo data | ||
==Usage== | ==Usage== | ||
===drawSimple=== | ===drawSimple=== | ||
| Line 94: | Line 63: | ||
|C;Green Dye::Green dye.png,Cyan Dye::Cyan dye.png,Light Gray Dye::Light gray dye.png,Orange Dye::Orange dye.png | |C;Green Dye::Green dye.png,Cyan Dye::Cyan dye.png,Light Gray Dye::Light gray dye.png,Orange Dye::Orange dye.png | ||
|D;Red Dye::Red dye.png,Map::Map.png,Ink Sac::Ink sac.png,Firework Star::Firework star.png | |D;Red Dye::Red dye.png,Map::Map.png,Ink Sac::Ink sac.png,Firework Star::Firework star.png | ||
}} | |||
===drawCargoTable=== | |||
Use <code>drawCargoTable</code> when the first argument is the name of a Cargo table, and the remaining arguments are the tiers in top-to-bottom order. | |||
Required argument order: | |||
# Cargo table name | |||
# All tiers, ordered from top to bottom | |||
Within each tier, define the tier label first, followed by a semicolon character (<code>;</code>), then a comma-separated list of item names. | |||
The item names should match the values stored in the Cargo table exactly. | |||
====Example: Masks==== | |||
<pre> | |||
{{#invoke:Tier List|drawCargoTable | |||
|Mask | |||
|S;Zeus,Monopoly,Thanos,Animal Control | |||
|A;Anonymous,Anti-Silence,Bunny,Death Knight,Death Wish | |||
|B;Equalizer,Ghost,Glitch,Grave Digger | |||
|C;Headless,Holy,Joker,Lover,Monopoly,Muqsit | |||
|D;Necromancer,Outpost,Party,Pilgrim | |||
}} | |||
</pre> | |||
{{#invoke:Tier List|drawCargoTable | |||
|Mask | |||
|S;Zeus,Monopoly,Thanos,Animal Control | |||
|A;Anonymous,Anti-Silence,Bunny,Death Knight,Death Wish | |||
|B;Equalizer,Ghost,Glitch,Grave Digger | |||
|C;Headless,Holy,Joker,Lover,Monopoly,Muqsit | |||
|D;Necromancer,Outpost,Party,Pilgrim | |||
}} | }} | ||
==Notes== | ==Notes== | ||
* <code>drawSimple</code> does not query Cargo and only displays the provided labels directly. | |||
* <code>drawIcons</code> does not query Cargo and renders each item using the explicitly supplied icon file. | |||
* For <code>drawIcons</code>, each item must use the format <code>Display Name::FileName.ext</code>. | |||
* <code>drawCargoTable</code> expects the first argument to be a valid Cargo table name. | * <code>drawCargoTable</code> expects the first argument to be a valid Cargo table name. | ||
* For Cargo rendering, item names must match the stored <code>name</code> values exactly. | * For Cargo rendering, item names must match the stored <code>name</code> values exactly. | ||
* <code>drawTierList</code> may still exist as an alias for <code>drawCargoTable</code> if backward compatibility is enabled. | * <code>drawTierList</code> may still exist as an alias for <code>drawCargoTable</code> if backward compatibility is enabled. | ||
Latest revision as of 18:10, 8 March 2026
Module:Tier_List is used to generate tier lists directly within the wiki.
It currently supports three rendering methods:
drawSimple– renders entries directly from the provided textdrawIcons– renders entries from manually specified icon filesdrawCargoTable– renders entries using Cargo data
Usage
drawSimple
Use drawSimple when you want to render a tier list directly from the provided text without using Cargo.
Required argument order:
- All tiers, ordered from top to bottom
Within each tier, define the tier label first, followed by a semicolon character (;), then a comma-separated list of item names.
Example
{{#invoke:Tier List|drawSimple
|S;Blackout,Divine Immolation,Godly Overload,Deadly Disarmor
|A;Bleed,Deathbringer,Guardians,Gears,Execute
|B;Angelic,Armored,Dodge,Enlighted,Ghost
|C;Auto Smelt,Haste,Glowing,Headless,Confusion
|D;Aquatic,Anti Gravity,Experience,Decapitation
}}
drawIcons
Use drawIcons when you want to define each item directly with its own icon file, without using Cargo.
Required argument order:
- All tiers, ordered from top to bottom
Within each tier, define the tier label first, followed by a semicolon character (;), then a comma-separated list of items.
Each item must use this format:
Display Name::FileName.ext
Example
{{#invoke:Tier List|drawIcons
|S;Flint::Flint.png,Emerald::Emerald.png,Quartz::Quartz.png,Experience Bottle::Experience bottle.png
|A;Tripwire Hook::Tripwire hook.png,Milk Bucket::Milk bucket.png,Paper::Paper.png,Blaze Rod::Blaze rod.png
|B;Redstone Torch::Redstone torch.png,Glowstone Dust::Glowstone dust.png,Ender Pearl::Ender pearl.png,Spider Eye::Spider eye.png
|C;Green Dye::Green dye.png,Cyan Dye::Cyan dye.png,Light Gray Dye::Light gray dye.png,Orange Dye::Orange dye.png
|D;Red Dye::Red dye.png,Map::Map.png,Ink Sac::Ink sac.png,Firework Star::Firework star.png
}}




















drawCargoTable
Use drawCargoTable when the first argument is the name of a Cargo table, and the remaining arguments are the tiers in top-to-bottom order.
Required argument order:
- Cargo table name
- All tiers, ordered from top to bottom
Within each tier, define the tier label first, followed by a semicolon character (;), then a comma-separated list of item names.
The item names should match the values stored in the Cargo table exactly.
Example: Masks
{{#invoke:Tier List|drawCargoTable
|Mask
|S;Zeus,Monopoly,Thanos,Animal Control
|A;Anonymous,Anti-Silence,Bunny,Death Knight,Death Wish
|B;Equalizer,Ghost,Glitch,Grave Digger
|C;Headless,Holy,Joker,Lover,Monopoly,Muqsit
|D;Necromancer,Outpost,Party,Pilgrim
}}























Notes
drawSimpledoes not query Cargo and only displays the provided labels directly.drawIconsdoes not query Cargo and renders each item using the explicitly supplied icon file.- For
drawIcons, each item must use the formatDisplay Name::FileName.ext. drawCargoTableexpects the first argument to be a valid Cargo table name.- For Cargo rendering, item names must match the stored
namevalues exactly. drawTierListmay still exist as an alias fordrawCargoTableif backward compatibility is enabled.