Module:Policy: Difference between revisions
Content deleted Content added
m Test |
m Changed character |
||
| (13 intermediate revisions by the same user not shown) | |||
Line 1:
local p = {}
local HF = require('Module:HF')
function p.policies( frame )
if not HF.isempty(frame.args[1]) then
local reasons = HF.explode(';', frame.args[1])
for i, reason in ipairs(reasons) do
local specifics = HF.explode('#', reason)
output = output .. '* ' .. HF.trim(specifics[1]) .. '\n'
for i, specific in ipairs(specifics) do
if i ~= 1 then
output = output .. ':# ' .. HF.trim(specific) .. '\n'
end
end
end
end
return output
end
| |||