模块:Citation/CS1:修订间差异

imported>Liangent
无编辑摘要
imported>Liangent
无编辑摘要
第1,670行: 第1,670行:
-- Format chapter / article title
-- Format chapter / article title
-- LOCAL
if not is_set(Language) or Language:lower() == 'zh' or Language:sub( 1, 3 ):lower() == 'zh-' then
xLCFlags = 'zh;zh-hans;zh-hant'
else
xLCFlags = 'R'
end
if is_set(Chapter) then
Chapter = '-{' .. xLCFlags .. '|' .. Chapter .. '}-'
end
if is_set(Title) then
Title = '-{' .. xLCFlags .. '|' .. Title .. '}-'
end
-- END LOCAL
if is_set(Chapter) and is_set(ChapterLink) then  
if is_set(Chapter) and is_set(ChapterLink) then  
Chapter = "[[" .. ChapterLink .. "|" .. Chapter .. "]]";
Chapter = "[[" .. ChapterLink .. "|" .. Chapter .. "]]";