User:Pangaearocks/Infoboxitem draft

These changes would mainly be to better show items as the game generates them, plus minor changes to make it easier to list enhancements slots in the same column in DPL tables (without #ifs or #switch). For "Autogen" items, it would make sense with a brief table/graphical representation of said item at various levels, while removing the current set damage/armor value from the infobox (since it's often incorrect). A new maxlevel field to show that some items have an upper limit (often quite high, like mid-30s to mid-40s). Add "+X random item effects" to relevant items (in "effects" field). This will then show up in DPL tables, and users can go to the page that explains the mechanic and lists every effect.

Overall this wouldn't be huge changes. But first we need templates to deal with calculation of damage/armor for Autogen items, and ideally a formula for calculation min buy price and max sell price. Won't be 100% accurate as it must be based on the "base price", which itself isn't possible to calculate because the function is hidden in the engine/.exe code.

{{Infoboxitem3
 * name      =
 * image     =
 * size      =
 * caption   =
 * expansion = put in infobox code
 * inventory =
 * slot      =
 * category  =
 * type      =
 * level     = maybe rename to minlevel (level requirement)
 * maxlevel  = new field. max item level (unless 100)
 * armor     = if not Autogen or level
 * damage    = if not Autogen or level
 * effects   = remove current random effects, add link to lists (shows in DPL tables)
 * ammo      = only for crossbows and split bolts
 * runes     = rename itemslots? integer
 * armorslots = rename itemslots? integer
 * source    =
 * price     = if empty, use default xml value
 * buy       = if empty, formula?
 * sell      = if empty, formula?
 * weight    =
 * tags      = new field, maybe set #var. Not visible in infobox
 * id        =


 * craft_req =
 * diagram   =
 * component1 = use &times?
 * component2 =
 * component3 =
 * component4 =
 * component5 =
 * component6 =
 * component7 =
 * alt_diagram =
 * alt_component1 =
 * alt_component2 =
 * alt_component3 =
 * alt_component4 =
 * alt_component5 =
 * alt_component6 =
 * alt_component7 =


 * dismantle1 = use &times?
 * dismantle2 =
 * dismantle3 =
 * dismantle4 =
 * dismantle5 =
 * dismantle6 =
 * dismantle7 =
 * }