View source for Module:Indent
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local p = {}
function p.indent(frame)
-- Trim whitespace from the arguments and remove blank values.
local args = {}
if type(frame.args) == 'table' then
for k, v in pairs( frame.args ) do
v = mw.text.trim(v)
if v ~= '' then
args[k] = v
end
end
end
-- Set variables.
local indent = tonumber( args[1] )
local br = args[2]
local ret = ''
-- Insert line breaks to match the functionality of the original template.
000
1:0
Template used on this page:
Return to Module:Indent.