「モジュール:Citation/CS-ja」の版間の差分

削除された内容 追加された内容
Special:Diff/98816996/98836648で報告された不具合に対処する
560行目:
Initially for |title= and |script-title=, this function concatenates those two parameter values after the script
value has been wrapped in <bdi> tags.
 
TODO: CS-jaでは|title=と|script-title=の同時使用を禁止した方がいい?
 
]]
567 ⟶ 569行目:
script = format_script_value (script, script_param); -- <bdi> tags, lang attribute, categorization, etc; returns empty string on error
if utilities.is_set (script) then
if utilities.is_set (title) then
-- CS-ja独自: 空白文字を間に挿入しない
title = title .. ' ' .. script; -- concatenate title and script title
else
title = script; --CS-ja独自: titleがなければ、空白を入れずscriptをそのまま使う
end
end
end
664 ⟶ 669行目:
if not utilities.is_set (periodical) then
periodical = ''; -- to be safe for concatenation
else
periodical = '『' .. periodical .. '』';
end
 
periodical = script_concatenate (periodical, script_periodical, script_periodical_source); -- <bdi> tags, lang attribute, categorization, etc.; must be done after title is wrapped
 
if utilities.is_set (periodical) then
periodical = '『' .. periodical .. '』'; -- CS-ja独自: 引用符で括る処理をここで行う
end
 
if utilities.is_set (trans_periodical) then
4,071 ⟶ 4,078行目:
Others = Others:gsub ('^' .. sepc, ''); -- 先頭の読点を除去
end
tcommon = safe_join( {Others, Title, TitleNote, Conference, Periodical, Format, TitleType, Volume, Edition, Series, Language, Publisher, Agency}, sepc );
tcommon = safe_join( {tcommon, Series, Publisher, Agency}, sepc );
elseif utilities.in_array (config.CitationClass, {"book", "citation"}) and not utilities.is_set (Periodical) then -- special cases for book cites
if utilities.is_set (Contributors) then -- when we are citing foreword, preface, introduction, etc.