Content deleted Content added
function _cite_fr: redo pages_totales comment. |
Shonebrooks (talk | contribs) m I corrected the spelling of "function." WP:TYPO |
||
(One intermediate revision by one other user 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,682 ⟶ 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
|