Content deleted Content added
function _cite_fr: See if we can tweak 'pages totales' and stick it in 'pages' as a comment, to pass the data through without throwing an error. |
Shonebrooks (talk | contribs) m I corrected the spelling of "function." WP:TYPO |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 264:
--[[--------------------------< C H A P T E R _ M A K E _ F R >------------------------------------------------
make |chapter= from concatenation of chapter number (if present) and chapter name; chapter name else
]]
local function chapter_make_fr (args_t, cite_args_t)
local chapter = args_t['titre chapitre'] or args_t['chapitre'];
if chapter and (args_t['numéro chapitre'] or args_t['numéro']) then -- when chapter numbers, concatenate number with chapter name
chapter = (args_t['numéro chapitre'] or args_t['numéro']) .. ' ' .. chapter;
table.insert (cite_args_t, 'chapter=' .. chapter);
args_t['titre chapitre'] = nil; -- unset as no longer needed▼
args_t['chapitre'] = nil;▼
args_t['numéro chapitre'] = nil;▼
args_t['numéro'] = nil;▼
elseif chapter then
table.insert (cite_args_t, 'chapter=' .. chapter); -- here when chapter without number
end
end
Line 1,018 ⟶ 1,021:
-- args_t['pages'] = nil; -- unset; alias of |pages totales=; no equivalent in cs1|2
-- end
local page = args_t['passage'] or '';
if args_t['pages totales'] then
args_t['pages totales'] = nil; -- unset as no longer needed
args_t['passage'] = nil; -- unset as no longer needed
table.insert (cite_args_t, 'page=' .. page);
end
Line 1,679 ⟶ 1,685:
<funct_t> is a k/v table where k is the ISO 639-1 language code (es: Spanish; it: Italian) and v is the matching
it.wiki supports positional parameters for <url> ({{{1}}}) and <title> ({{{2}}}); because it is necessary to use
|