Out all of the dozens of properties (flags) items and objects have, the only real difference between them is that are items are pickupable and objects are not. In reality they are the same thing, including in Tibia's coding, where both are Appearances called Objects. We should merge the 2 types of infoboxes for consistency.
Current Issues
Having two different infobox (and hence categories) for basically the same thing often double the amount of work required for an update, since many of the information in these infoboxes are the same. It also may represent a problem if someone wants to e.g. show all containers, since two different DPL tables will be required (or one which not show all the desired data due to difference in each ones parameter names).
Since there are 31 items and 8,478 in TibiaWiki, this is a huge project, which involves 1/3 of all the 21,630 pages of the Wiki.
Required Steps
Besides the steps below, here are some things that could be changed during this project since the pages/templates will be changed anyway:
Migrate the classic infobox to the Portable Infobox design. Instructions on Community Fandom- Rename some parameters that are not clear enough, specially after the merge.
- Rename some parameters to match CipSoft's name used in the client .dat file.
Update Infobox Object
Since Objects is the official name, we should use this name and move all items to an adapted Template:Infobox Object. To do that, we'll need to add several parameters which currently only exist in Template:Infobox Item. We may also have to rename some parameters and decide on the default value for other parameters.
This is also an opportunity to remove unused parameters from both templates.
Item Param | Object Param | New Param | Comment | |||
---|---|---|---|---|---|---|
Name | Default | Name | Default | Name | Default | |
name | <required> | name | <required> | name | <required> | |
article | <hide> | article | <hide> | article | <hide> | |
actualname | name | actualname | name | actualname | name | |
plural | -- | Remove? | ||||
itemid | itemid | itemid | Not displayed but important. Flag: id | |||
marketable | <hide> | -- | marketable | no if pickupable or <hide> | Flag: market | |
usable | no | usable | no | usable | no | Flag: usable |
flavortext | <hide> | flavortext | <hide> | flavortext | <hide> | |
implemented | implemented | implemented | ||||
words | <hide> | -- | <hide> | words | <hide> | |
itemclass | <required> | -- | objectclass | <required> | ||
primarytype | <required> | objectclass | <required> | primarytype | <required> | Known inconsistency |
secondarytype | primarytype | Known inconsistency | ||||
lightcolor | <hide> | lightcolor | <hide> | lightcolor | <hide> | |
lightradius | <hide> | lightradius | <hide> | lightradius | <hide> | |
levelrequired | <hide> | -- | levelrequired | <hide> | ||
vocrequired | <hide> | -- | vocrequired | <hide> | ||
mlrequired | <hide> | -- | mlrequired | <hide> | ||
hands | <hide> | -- | hands | <hide> | ||
type | <hide> | -- | weapontype | <hide> | Needs a more specific name | |
attack | <hide> | -- | attack | <hide> | ||
fire_attack | <hide> | -- | fire_attack | <hide> | ||
earth_attack | <hide> | -- | earth_attack | <hide> | ||
ice_attack | <hide> | -- | ice_attack | <hide> | ||
energy_attack | <hide> | -- | energy_attack | <hide> | ||
death_attack | <hide> | -- | death_attack | <hide> | ||
defense | <hide> | -- | defense | <hide> | ||
defensemod | <hide> | -- | defensemod | <hide> | ||
imbueslots | <hide> | -- | imbueslots | <hide> | ||
imbuements | <hide> | -- | imbuements | <hide> | ||
enchantable | <hide> | -- | enchantable? | <hide?> | Remove? We don't have enchantable items anymore. | |
enchanted | <hide> | -- | enchanted | <hide> | Deprecated items use this. | |
range | <hide> | -- | range | <hide> | ||
atk_mod | <hide> | -- | atk_mod | <hide> | ||
hit_mod | <hide> | -- | hit_mod | <hide> | ||
armor | <hide> | -- | armor | <hide> | ||
resist | <hide> | -- | resist | <hide> | ||
charges | <hide> | -- | charges | <hide> | ||
crithit_ch | <hide> | -- | crithit_ch | <hide> | ||
critextra_dmg | <hide> | -- | critextra_dmg | <hide> | ||
manaleech_ch | <hide> | -- | manaleech_ch | <hide> | ||
manaleech_am | <hide> | -- | manaleech_am | <hide> | ||
hpleech_ch | <hide> | -- | hpleech_ch | <hide> | ||
hpleech_am | <hide> | -- | hpleech_am | <hide> | ||
attrib | <hide> | -- | attrib | <hide> | ||
weight | <hide>/Unknown | -- | weight | <hide>/Unknown | Possibly displayed twice. (look + box) | |
stackable | no | -- | stackable | no if pickupable or <hide> | ||
pickupable | yes | pickupable | no | pickupable | <required> | The key param. Flag: take |
immobile | no | immobile | yes | immobile | <required> | Another key param. Flag: unmove |
walkable | yes | walkable | no | walkable | <hide> | Flag: unpass |
unshootable | no | unshootable | no | unshootable | <hide> | Flag: unsight |
blockspath | no | blockspath | yes | blockspath | <hide> | Flag: avoid |
rotatable | no | rotatable | no | rotatable | <hide> | Flag: rotate |
mapcolor | mapcolor | mapcolor | <hide> | |||
consumable | <hide> | -- | consumable | <hide> | ||
regenseconds | <hide> | -- | regenseconds | <hide> | ||
sounds | <hide> | sounds | <hide> | sounds | <hide> | |
writable | no | writable | no | writable | <hide> | Flag: write |
rewritable | no | rewritable | no | rewritable | <hide> | Flag: write_once |
writechars | writechars | writechars | <hide> | write(_once).length | ||
hangable | <hide> | -- | hangable | <hide> | Flag: hook | |
holdsliquid | no | holdsliquid | no | <hide> | Flag: liquidcontainer | |
mana | <hide> | -- | manacost? | <hide> | Could use a more specific name. | |
damagetype | <hide> | -- | damagetype | <hide> | ||
damage | <hide> | -- | damagerange | <hide> | More specific name | |
volume | <hide> | volume | <hide> | volume | <hide> | |
duration | <hide> | -- | duration | <hide> | ||
destructible | no | destructible | no | destructible | <hide> | |
droppedby | <required> | -- | droppedby | <hide> | ||
value | Unknown | -- | value | Unknown | ||
storevalue | <required> | -- | storevalue | <hide> | ||
npcvalue | <required> | -- | npcvalue | <hide> | ||
npcprice | <required> | -- | npcprice | <hide> | ||
npcvaluerook | <hide> | -- | npcvaluerook | <hide> | ||
npcpricerook | <hide> | -- | npcpricerook | <hide> | ||
buyfrom | <hide> | -- | buyfrom | <hide> | ||
sellto | <hide> | -- | sellto | <hide> | ||
fansite | <hide> | -- | fansite | <hide> | ||
notes | notes | notes | ||||
notes2 | notes2 | notes2 | ||||
history | <hide> | history | <hide> | history | <hide> | |
status | active | status | active | status | active |
Update Pages that use the Infoboxes
- First of all, the Item pages themselves will have to be updated. Before actually editing them, we can update the Object Template in a way that it doesn't break for Objects but already Accepts the Item parameters.
- This is currently in progress under Template:Infobox Object/Draft.
- It is also important to note that all Items will need to have pickupable = yes added to them. immobile = no can also be added, though this is not strictly necessary since all pickupable items are necessarily movable.
Besides the item pages themselves, several pages use the Infobox Item as reference, such as:
- All pages with a DPL list that have category=Items may need to have the DPL updated since this category will no longer exist.
- Possible alternative is to add Category:Items to all Objects with pickupable=yes, essentially to all "Items".
- DPLPARMs may also have to be updated.
- Many templates which are essential for the infoboxes need to be migrated/merged/redirected:
Object Inconsistencies Discovered 29/12/2019
- Many pages have inconsistent formatting. Currently being worked on. Note: pages that have errors or unexpected parameters will not be automatically dealt with to ensure safe operation.
- Incorrect or undocumented parameters found:
- destructible: this is the intended parameter, the docs said destructable. Objects that have destructable instead of destructible:
- Armor (Object)
- Armor Rack (Object)
- Crude Lava Pump
- Crystal-Resonator
- Dark Stone Pile
- Dark Stone Totem
- Dry Flower
- Fitzwilliam
- Flower Bowl (First Dragon)
- Fragile Lava Funnel
- Fragile Lava Funnel (Broken)
- Glowing Obsidian Pipes
- Glowing Obsidian Pipes (Wall)
- Gold Nugget (Object)
- Grey Stones
- Ignited Fireworks Rocket
- Insectoid Cell
- Insectoid Remains
- Obsidian Pipes
- Obsidian Pipes (Wall)
- Ostentatious Bookstand
- Ostentatious Bookstand (Active)
- Reinforced Crystal-Resonators
- Remains of a Decaying Soul
- Remains of a Withering Soul
- Scimitar (Object)
- Silver Nugget
- Sword (Object)
- Torn Out Page
- Weapon Rack (Object)
- Writing Desk (Quest)
- My script stopped when it found any inconsistency, so any of the objects listed below may also have the same problem.
- newtradesystem: isn't this parameter deprecated?
- Found on Silvered Trap. This article needs attention - it was merged from an item and it still retains all of its item parameters.
- quaternarytype.
- Found on Small Fern. Seems like we need to change the way we handle types to allow for an arbitrary number of classifications. Solved: exchanged quaternarytype -> tertiarytype.
- 1: consistently find an unnamed parameter. Found on:
- primarytype: item classification on object. Found on:
- sprites. Found on: Note: Whether or not this parameter is kept is pending discussion.
- secondaryclass. Found on:
- plural. Found on:
- blocking. Found on:
- destructible: this is the intended parameter, the docs said destructable. Objects that have destructable instead of destructible:
Other things
- Object classes need to be sorted out, which may require hundred or thousands of edits.
List of "(Object)" pages that need renaming
articles have been resolved. The remaining still require changes, e.g. image renaming and page editing.
- Armor (Object) 🡆 Not necessary, Armor is a redirect to Armors, not an "item".
- Armor Rack (Object) 🡆 Armor Rack (Immobile)
- Badger Fur (Object) 🡆 Badger Fur (Floor Decoration)
- Bank (Object) 🡆 Not necessary, redirects to Bench as opposed to the Banking system.
- Bat (Object) 🡆 Not necessary, differentiates from the creature.
- Behemoth Trophy (Object) 🡆 Behemoth Trophy (Immobile)
- Big Table (Object) 🡆 Big Table (Immobile)
- Blooming Griffinclaw (Object) 🡆 Redirects to Blooming Griffinclaw.
- Bone (Object) 🡆 Bone (Immobile)
- Branch (Object) 🡆 Branch (Immobile)
- Bucket (Object) 🡆 Bucket (Mead)
- Canopic Jar (Object) 🡆 Not necessary, differentiates from the creature.
- Chimney (Object) 🡆 Chimney (Immobile)
- Coal (Object) 🡆 Coal (Immobile)
- Crimson Crest Mushroom (Object) 🡆 Crimson Crest Mushroom (Immobile)
- Crystal Ball (Object) 🡆 Crystal Ball (Immobile)
- Cyclops Trophy (Object) 🡆 Cyclops Trophy (Immobile)
- Dancing Fairy (Object) 🡆 Not necessary, differentiates from a NPC
- Deer Trophy (Object) 🡆 Deer Trophy (Immobile)
- Demon Trophy (Object) 🡆 Demon Trophy (Immobile)
- Dinky Moss Floret (Object) 🡆 Dinky Moss Floret (Immobile)
- Dirt (Object) 🡆 Unidentified Object
- Dragon Lord Trophy (Object) 🡆 Dragon Lord Trophy (Immobile)
- Fish (Object) 🡆 Fish (Hanging)
- Frostbite Herb (Object) 🡆 Frostbite Herb (Immobile)
- Gold Nugget (Object) 🡆 Gold Nugget (Immobile)
- Goldfish Bowl (Object) 🡆 Goldfish Bowl (Immobile)
- Heavy Stone Hammer (Object) 🡆 Heavy Stone Hammer (Immobile)
- Hieroglyph Banner (Object) 🡆 Hieroglyph Banner (Immobile)
- Knight Statue (Object) 🡆 Knight Statue (Immobile)
- Large Pliers (Object) 🡆 Large Pliers (Immobile)
- Liane (Object) 🡆 Not necessary, differentiates from a NPC
- Lion's Mane Flower (Object) 🡆 Lion's Mane Flower (Immobile)
- Lion Trophy (Object) 🡆 Lion Trophy (Immobile)
- Locker (Object) 🡆 Locker (Depot)
- Magic Wall (Object) 🡆 Not necessary, differentiates from a Spell
- Mammoth (Object) 🡆 Not necessary, differentiates from a Creature
- Message in a Bottle (Object) 🡆 Message in a Bottle (Immobile)
- Minotaur Trophy (Object) 🡆 Minotaur Trophy (Immobile)
- Orc Trophy (Object) 🡆 Orc Trophy (Immobile)
- Ornate Tome (Object) 🡆 Ornate Tome (Immobile)
- Pharaoh Banner (Object) 🡆 Pharaoh Banner (Immobile)
- Pick (Object) 🡆 Pick (Immobile)
- Piece of Paper (Object) 🡆 Piece of Paper (Immobile)
- Plants (Object) 🡆 Unknown object
- Rhino Hide (Object) 🡆 Rhino Hide (Immobile)
- Roasted Meat (Object) 🡆 Roasted Meat (Immobile)
- Rockboy (Object) 🡆 Not necessary, differentiates from NPC
- Scimitar (Object) 🡆 Scimitar (Immobile)
- Shark (Object) 🡆 Not necessary, redirects to Shark Fin
- Shovel (Object) 🡆 Shovel (Immobile)
- Skeleton (Object) 🡆 Not necessary, diff from creature
- Skull (Object) 🡆 Unidentified object
- Slime (Object) 🡆 Not necessary, diff from creature
- Snake Maw (Object) 🡆 Snake Maw (Immobile)
- Stone Table (Object) 🡆 Stone Table (Immobile)
- Stones (Object) 🡆 Not necessary, diff from list page.
- Supply Crate (Object) 🡆 Supply Crate (Immobile)
- Sword (Object) 🡆 Sword (Immobile)
- Tapestry (Object) 🡆 Not necessary, diff from list page.
- Target Dummy (Object) 🡆 Not necessary, diff from creature.
- The Market (Object) 🡆 Not necessary, diff from street.
- Tin Lizzard (Object) 🡆 Not necessary, diff from mount.
- Trophy of Feroxa (Object) 🡆 Trophy of Feroxa (Immobile)
- Uniwheel (Object) 🡆 Not necessary, diff from mount.
- Veldt Flowers (Object) 🡆 Veldt Flowers (Immobile)
- Weapon Rack (Object) 🡆 Weapon Rack (Immobile)
- Werebadger Trophy (Object) 🡆 Werebadger Trophy (Immobile)
- Werebear Trophy (Object) 🡆 Werebear Trophy (Immobile)
- Wereboar Trophy (Object) 🡆 Wereboar Trophy (Immobile)
- White Flower (Object) 🡆 White Flower (Immobile)
- Wild Growth (Object) 🡆 Not necessary, diff from spell.
- Wolf Trophy (Object) 🡆 Wolf Trophy (Immobile)
List of "(Item)" pages that may need renaming
- Amber (Item)
- Bat (Item)
- Black Skull (Item)
- Blood of the Mountain (Item)
- Blue Crystal (Item)
- Bones (Item)
- Cake (Item)
- Calamary (Item)
- Cask of Brown Ale (Item)
- Chameleon (Item)
- Cure Poison Rune (Item)
- Dragon Statue (Item)
- Fly Agaric (Item)
- Griffinclaw Container (Item)
- Guilt (Item)
- Hawser (Item)
- Heart of the Mountain (Item)
- Ice Flower (Item)
- Icicle (Item)
- Insectoid Cocoon (Item)
- Intense Healing Rune (Item)
- Loot Bag (Item)
- Lost Soul (Item)
- Lost Time (Item)
- Parrot (Item)
- Piece of a Shell (Item)
- Pit Demon (Item)
- Reward Shrine (Item)
- Rosebush (Item)
- Scorpion (Item)
- Shell (Item)
- Skeleton (Item)
- Skull (Item)
- Some Broken Shells (Item)
- Something Crawling (Item)
- Starfish (Item)
- Treasure Chest (Item)
- Ultimate Healing Rune (Item)
- White Flower (Item)