Content deleted Content added
Update function title_make_fr to also use 'titre ouvrage' and ''sous-titre ouvrage' if available when nothing else is. |
Shonebrooks (talk | contribs) m I corrected the spelling of "function." WP:TYPO |
||
(6 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);
elseif chapter then
args_t['titre chapitre'] = nil; -- unset as no longer needed▼
table.insert (cite_args_t, 'chapter=' .. chapter); -- here when chapter without number
args_t['chapitre'] = nil;▼
args_t['numéro chapitre'] = nil;▼
args_t['numéro'] = nil;▼
end
end
Line 988 ⟶ 994:
args_t['isbn'] = nil; -- can't have |isbn= and |isbn erroné=
args_t['isbn erroné'] = nil; -- unset as no longer needed
end
if args_t['auteurs ouvrage'] then
table.insert (cite_args_t, 'veditors=((' .. args_t['auteurs ouvrage'] .. '))'); -- apply as-wrtn markup
args_t['auteurs ouvrage'] = nil; -- unset as no longer needed
end
Line 1,007 ⟶ 1,018:
id_make (frame, args_t, cite_args_t, params_identifiers_t.fr); -- assemble |id=
-- 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
page = page .. ' <!--pages totales=' .. args_t['pages totales'] .. '--> '; -- append as hidden comment to page
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,667 ⟶ 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
|