Module:Case: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
(Created page with "local p = {} --p stands for package function p.lowercase(frame) return "" + string.lower(frame.args.link) + "" end return p")
 
No edit summary
Line 2: Line 2:


function p.lowercase(frame)
function p.lowercase(frame)
     return "[[" + frame.args.link + "|" + string.lower(frame.args.link) + "]]"
     return "[[" .. frame.args.link .. "|" .. string.lower(frame.args.link) .. "]]"
end
end


return p
return p

Revision as of 14:45, 22 May 2021

See usage on Script error: The function "title_case" does not exist., Script error: The function "uppercase_first_letter" does not exist., and template:l.


local p = {} --p stands for package

function p.lowercase(frame)
    return "[[" .. frame.args.link .. "|" .. string.lower(frame.args.link) .. "]]"
end

return p