Difference between revisions of "Template:AutoInfobox"

From Idlescape Wiki
Jump to navigation Jump to search
(test)
 
m (Add usage)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{#invoke:Infobox_Item}}</includeonly><noinclude>{{/doc}}[[Category:Template]]</noinclude>
+
<includeonly>{{#invoke:Infobox_Item|item}}</includeonly><noinclude>[[Category:Template]]</noinclude><noinclude>
 +
{{AutoInfobox|shard of kalanahmatti}}
 +
Creates an item infobox using the [[Module:Items/data|item data module]]. If there is an error making the infobox, check if the title or name are correct. If they are, the data may need to be updated.
 +
 
 +
How to upload data to [[Module:Items/data]]
 +
# Open the dev console of the browser while on the in-game tab.
 +
# Run this code <code>JSON.stringify(Idlescape.data.items)</code>
 +
# Copy the output and the code may need to be cleaned to properly conform to JSON. A code editor will help you see any errors.
 +
# Use a JSON to LUA table converter.
 +
# Replace everything in [[Module:Items/data]] with the result and while adding <code>return</code> at the very front.
 +
# Or just ask someone in the [https://discord.gg/kFpscRm Idlescape Discord] for help
 +
 
 +
===Usage===
 +
Creates an infobox from the page title.
 +
 
 +
<code><nowiki>{{AutoInfobox)}}</nowiki></code>
 +
 
 +
Creates an infobox from the passed in item name. Use if the title doesn't match the name.
 +
The item name is case insensitive.
 +
 
 +
<code><nowiki>{{AutoInfobox|item name)}}</nowiki></code>
 +
 
 +
===Example===
 +
<code>
 +
<nowiki>{{AutoInfobox|shard of kalanahmatti)}}</nowiki>
 +
</code>
 +
 
 +
</noinclude>

Latest revision as of 11:45, 28 May 2024

Shard of Kalanahmatti
Gold6,360,000
Market99,999,999
Level Required85 strength
Slotweapon
Enchantment Slots8
Attack Speed2.4
Offensive Stats
Crit Chance0.05
Crit Multiplier1.3
StrIntDex
10900
Offensive Affinity
MeleeMagicRange
110%85%75%
PiercingBluntSlashingIce
25%25%133%125%
Accuracy
MeleeMagicRange
9414-14
SlashingIce
12332
Augment
Aug BonusAug Cost
+4.7 Melee
+1.6 Ice
+5.5 strength
100 Runite BarRunite Bar
500 Yew LogYew Log
Tooltip
This powerful blade is fashioned from a shard of the legendary spear 'Kalanahmatti.'

Creates an item infobox using the item data module. If there is an error making the infobox, check if the title or name are correct. If they are, the data may need to be updated.

How to upload data to Module:Items/data

  1. Open the dev console of the browser while on the in-game tab.
  2. Run this code JSON.stringify(Idlescape.data.items)
  3. Copy the output and the code may need to be cleaned to properly conform to JSON. A code editor will help you see any errors.
  4. Use a JSON to LUA table converter.
  5. Replace everything in Module:Items/data with the result and while adding return at the very front.
  6. Or just ask someone in the Idlescape Discord for help

Usage

Creates an infobox from the page title.

{{AutoInfobox)}}

Creates an infobox from the passed in item name. Use if the title doesn't match the name. The item name is case insensitive.

{{AutoInfobox|item name)}}

Example

{{AutoInfobox|shard of kalanahmatti)}}