開啟主選單

求真百科

變更

模块:Lang/documentor tool

移除 4 位元組, 6 年前
// Edit via Wikiplus
return ''; -- there should be at least one or the template/module won't work TODO: error message?
end
table.insert (out, '{| class="wikitable" style="text-align:right; float:right"\n|+settings设定') -- start a wikitable
for k, v in params:gmatch ('%s*|%s*([^%s=]+)%s*=%s*([^%s|]+)') do -- get the parameter names (k) and values (v)
if 'label' == k then -- special case for labels because spaces and pipes
v = params:match ('label%s*=%s*(%[%[[^%]]+%]%])') or params:match ('label%s*=%s*([^|\n]+') or 'missing label缺少label';
end
table.insert (out, table.concat ({k, '\n|', v})); -- make rudimentary wikitable entries
匿名用戶