Module:StringLib
Appearance
Unchecked
Documentation for this module may be created at Module:StringLib/doc
-- let's not re-invent the wheel, and re-use functionality
-- from the handy FormatText module.
FormatText = require('Module:FormatText')
--
-- Helper functions, for internal use by this module
--
local function enclose(tag, text)
return '<' .. tag .. '>' .. text .. '</' .. tag .. '>';
end
--
-- Exported functionality
--
local p = {};
function p.embolden(frame)
return FormatText.bold(frame.args[1])
end
function p.italicize(frame)
return enclose('i', frame.args[1]);
end
return p;