Module:CS1 translator/sandbox: Difference between revisions

Content deleted Content added
function _cite_fr: but if 'pages' already exists, then just append the total pages comment to it.
function _cite_fr: fix overwrite of page by appending hidden pages_totales if 'page' already exists.
Line 1,019:
-- end
if args_t['pages totales'] then
if args_t['pages']page then
args_t['pages']page = args_t['pages']page .. ' <!--pages totales=' .. args_t['pages totales'] .. '--> ';
else
table.insert (cite_args_t, 'pagespage=<!--pages totales=' .. args_t['pages totales'] .. '--> ');
end
args_t['pages totales'] = nil; -- unset as no longer needed