Difference between revisions of "Template:AutoInfobox"
Jump to navigation
Jump to search
m |
m (Add usage) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{#invoke:Infobox_Item|item}}</includeonly><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
6,360,000 | |||||||||
99,999,999 | |||||||||
Level Required | 85 strength | ||||||||
Slot | weapon | ||||||||
Enchantment Slots | 8 | ||||||||
Attack Speed | 2.4 | ||||||||
Offensive Stats | |||||||||
Crit Chance | 0.05 | ||||||||
Crit Multiplier | 1.3 | ||||||||
| |||||||||
Offensive Affinity | |||||||||
| |||||||||
| |||||||||
Accuracy | |||||||||
| |||||||||
| |||||||||
Augment | |||||||||
| |||||||||
Tooltip | |||||||||
|
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
- Open the dev console of the browser while on the in-game tab.
- Run this code
JSON.stringify(Idlescape.data.items)
- 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
return
at the very front. - 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)}}