Module:Notes

Module documentation

This module has various functions described below and should only be utilized on templates. To call a module in a template, insert {{#invoke:Notes|function name|various parameters}} onto the template.[ Data ]

For help on this module, please contact an administrator.
Visit Module:Notes/doc to edit this text! (How does this work?)

--[[Category:Lua modules]]
local p = {}
local notesData = mw.loadData('Module:Notes/data')

function p.getNote(frame)
    local shortcut= frame.args[1]
    shortcut=mw.ustring.lower(shortcut)
    
    local result={}
    if notesData[shortcut]
        then result=notesData[shortcut]
        else result=frame.args[1]
    end
    return result
end
return p