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

imported>Liangent
撤销Liangent讨论)的版本26500244
imported>Liangent
无编辑摘要
第1,107行: 第1,107行:
      
      
     -- 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 .. "]]";
第1,188行: 第1,203行:
      
      
     if is_set(Title) then
     if is_set(Title) then
        -- LOCAL
        if not is_set(Language) or Language:lower() == 'zh' or Language:sub( 1, 3 ):lower() == 'zh-' then
            Title = '-{zh;zh-hans;zh-hant|' .. Title .. '}-'
        else
            Title = '-{R|' .. Title .. '}-'
        end
        -- END LOCAL
         if not is_set(TitleLink) and is_set(URL) then  
         if not is_set(TitleLink) and is_set(URL) then  
             Title = externallink( URL, Title ) .. TransError .. Format       
             Title = externallink( URL, Title ) .. TransError .. Format