モジュール:語中改行
表示
![](http://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/50px-Test_Template_Info-Icon_-_Version_%282%29.svg.png)
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