local p = {}
function p.print_text(frame)
local args = frame.args
local text = args[1]
local ISBN = {}
ISBN[#ISBN+1] = mw.ustring.sub(text, 1, 3)
ISBN[#ISBN+1] = '-'
ISBN[#ISBN+1] = mw.ustring.sub(text, 4, 4)
ISBN[#ISBN+1] = '-'
ISBN[#ISBN+1] = mw.ustring.sub(text, 5, 8)
ISBN[#ISBN+1] = '-'
ISBN[#ISBN+1] = mw.ustring.sub(text, 9, 12)
ISBN[#ISBN+1] = '-'
ISBN[#ISBN+1] = mw.ustring.sub(text, 13)
return table.concat(ISBN)
end
return p