Module:ManualDescriptions: Difference between revisions

From August Wiki
Jump to navigation Jump to search
No edit summary
Tag: Manual revert
No edit summary
Line 5: Line 5:
-- Editable data table - contributors modify this directly
-- Editable data table - contributors modify this directly
local descriptions = {
local descriptions = {
     ["Dragonite ore"] = "'''Dragonite ore''' is a rare ore used to create [[Dragonite bar]]s."
     ["Dragonite ore"] = "'''Dragonite ore''' is a rare ore used to create [[Dragonite bar]]s.",
    -- Contributors add new items here by editing this page
["Luminite ore"] = "'''Luminite ore''' can be crushed using a hammer, chisel, or pestle and mortar, to be turned into [[Luminite flux]], a stackable smelting catalyst used to make high tier bars for [[Smithing]]. '''Luminite ore''' can also be crushed into flux by using it on Nurmof at [[Home]], costing [[Skilling token]]s and rewarding no experience. In addition to the below drop sources, '''Luminite ore''' can also be mined in donator mining zones at Home, in the mining guild, and south of the Barrows."
}
}



Revision as of 07:36, 16 August 2025

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 = {
    ["Dragonite ore"] = "'''Dragonite ore''' is a rare ore used to create [[Dragonite bar]]s.",
	["Luminite ore"] = "'''Luminite ore''' can be crushed using a hammer, chisel, or pestle and mortar, to be turned into [[Luminite flux]], a stackable smelting catalyst used to make high tier bars for [[Smithing]]. '''Luminite ore''' can also be crushed into flux by using it on Nurmof at [[Home]], costing [[Skilling token]]s and rewarding no experience. In addition to the below drop sources, '''Luminite ore''' can also be mined in donator mining zones at Home, in the mining guild, and south of the Barrows."
}

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