[dismiss]
The wiki is currently a work in progress. If you'd like to help out, please check the Community Portal and our getting started guide. Also, check out our sister project on poewiki.net.
Module:Sandbox/Skkias/TestDictionary: Difference between revisions
Jump to navigation
Jump to search
(Created page with "local p = {} -- Sample data for testing local dictionary = { ["Town"] = { ["Clearfell Encampment"] = "A large coastal city and key location in the story.", }, ["Mechanic"] = { ["Attack"] = "This is the ability that is attached to your weapon. Skills and modifiers are calculated separately from this.", }, } function p.getEntry(frame) local term = frame.args.term or "Unknown" local category = frame.args.category or "Town" if di...") |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
function p.getEntry(frame) | function p.getEntry(frame) | ||
local term = frame.args.term or "Unknown" | local term = frame.args.term or "Unknown" | ||
local | local template = "DictionaryData" | ||
return frame:expandTemplate{ title = template, args = { term = term } } | |||
end | end | ||
return p | return p |
Latest revision as of 16:12, 11 December 2024
You might want to create a documentation page for this module.
Editors can experiment in this module's sandbox and testcases pages.
Please add categories to the /doc subpage. Subpages of this module.
Editors can experiment in this module's sandbox and testcases pages.
Please add categories to the /doc subpage. Subpages of this module.