モジュール:語中改行
表示
モジュールの解説[作成]
local BrokenWord = {}
local getArgs = require('Module:Arguments').getArgs
local function toarray (table)
local values = {}
for key,value in pairs (table) do
key = tonumber(key)
if key then
values[key] = value
end
end
return values
end
function BrokenWord.Construct (frame)
local args = toarray (getArgs (frame))
if #args == 0 then
return "<span style=\"display:block\"></span>"
else
return table.concat (args, "<span style=\"display:block\"></span>")
end
end
return BrokenWord