Module:Dplargs
Aller à la navigation
Aller à la recherche
Documentation
Voir aussi la page anglaise du module : Module:Dplargs. Elle pourra contenir des informations plus complètes et actuelles.
Aucune sous-page de documentation n'existe déjà pour ce module. En créer une maintenant.
return {
get = function(frame)
local args = frame.args['args']
if not args then
return
end
args = mw.ustring.gsub(args, '%b{}', function(s) return mw.ustring.gsub(s, '§', '|') end)
args = mw.ustring.gsub(args, '%b[]', function(s) return mw.ustring.gsub(s, '§', '|') end)
args = mw.ustring.gsub(args, '[{}]', function(s) return s..s end)
--args = mw.ustring.gsub(args, '{{', '{\\{')
--args = mw.ustring.gsub(args, '}}', '}\\}')
return args
end,
dump = function(frame)
local args = frame.args['args']
do
return mw.text.nowiki(args)
end
if not args then
return
end
args = mw.ustring.gsub(args, '%b{}', function(s) return mw.ustring.gsub(s, '§', '|') end)
args = mw.ustring.gsub(args, '%b[]', function(s) return mw.ustring.gsub(s, '§', '|') end)
args = mw.ustring.gsub(args, '{', '{{')
args = mw.ustring.gsub(args, '}', '}}')
-- args = mw.ustring.gsub(args, '{{', '{\\{')
-- args = mw.ustring.gsub(args, '}}', '}\\}')
return mw.text.nowiki(args)
end,
}