Module:ManualDescriptions
Documentation for this module may be created at Module:ManualDescriptions/doc
-- Module:ManualDescriptions
-- Create this as a MediaWiki page that contributors can edit directly
local p = {}
-- Editable data table - contributors modify this directly
local descriptions = {
["BronzeSword"] = "A basic bronze weapon perfect for new warriors starting their adventure.",
["IronOre"] = "Raw iron that can be smelted into useful bars for smithing.",
["Coal"] = "Essential fuel for smelting higher-tier metals."
-- Contributors add new items here by editing this page
}
function p.getDescription(frame)
local itemName = frame.args[1] or ""
local description = descriptions[itemName]
if description then
return description
end
return string.format("''No description available for %s. Please edit [[Module:ManualDescriptions]] to add one.''", itemName)
end
return p