mNo edit summary |
No edit summary |
||
| Line 9: | Line 9: | ||
function p.pp(frame) | function p.pp(frame) | ||
return frame:preprocess(frame | return frame:preprocess(frame) | ||
end | end | ||
Revision as of 16:10, 30 July 2024
Enemy Infobox
Script error: The function "enemy_page_before" does not exist. Use this to invoke the enemy infobox on the start of its page, the stats come from Module:Enemy_DB Script error: The function "code" does not exist.
Enemy Loot Table
Use this to invoke the enemy Loot Table, this already come with the "Loot" heading, the stats come from Module:Enemy_DB Script error: The function "code" does not exist. Script error: The function "enemy_table" does not exist.
This will add both "Monsters" and the Enemy's Area Category and the Template:Navbox Monsters Script error: The function "code" does not exist. Lua error at line 11: attempt to call method 'preprocess' (a nil value).
Enemy Stats
This will add the Enemy Stats Table and its Loot Table Script error: The function "code" does not exist. Script error: The function "enemy_stats" does not exist.
All Enemies Stats + Loot
This will add a table with all Enemies Stats and their Loot Script error: The function "code" does not exist. Script error: The function "all_enemies" does not exist.
Area Infobox
This will add the Area Infobox and its Enemies Stats and Loot Script error: The function "code" does not exist. Script error: The function "area_page" does not exist.
Area Stats + Loot
This will add a table will all Enemies Stats and Loot from a selected area Script error: The function "code" does not exist. Script error: The function "enemies_area" does not exist.
All Craftables
This will add a table with all craftable items recipes Script error: The function "code" does not exist. Script error: The function "crafting" does not exist.
Item Crafting Recipes
This will add a table with all Crafting recipes where the selected item is used Script error: The function "code" does not exist. Script error: The function "item_use" does not exist.
Item Cooking Recipes
This will add a table with all Cooks Book Recipes where the selected item is used Script error: The function "code" does not exist. Script error: The function "item_cook" does not exist.
Item Brewing Recipes
This will add a table with all Potions Recipes where the selected item is used Script error: The function "code" does not exist. Script error: The function "item_potion" does not exist.
Item Tablette Use
This will add a table with all Tablettes where the selected item is used Script error: The function "code" does not exist. Script error: The function "item_tablette" does not exist.
Item Drop
This will add a table with all Enemies that drop the selected item Script error: The function "code" does not exist. Script error: The function "item_drop" does not exist.
local u = require("Module:Util")
local em = require("Module:Enemies")
local am = require("Module:Areas")
local cm = require("Module:Crafting")
local edb = require("Module:Enemy_DB")
local adb = require("Module:Area_DB")
local inspect = require("Module:InspectLua")
local p = {}
function p.pp(frame)
return frame:preprocess(frame)
end
function p.enemy_page_after(frame)
return p.pp(em.enemy_page_after(frame.args[1] or frame:getParent():getTitle()))
end
function p.test(frame)
return frame
end
function p.testo(frame)
return frame.args[1]
end
return p