跳到内容

Module:ConvertLink:修订间差异

添加28字节 、​ 2024年7月7日 (星期日)
无编辑摘要
(优化)
无编辑摘要
第36行: 第36行:
local cal = mw.loadJsonData 'Template:ComplexArtistsList.json'
local cal = mw.loadJsonData 'Template:ComplexArtistsList.json'
local function formatJapaneseText(text)
local function formatJapaneseText(text)
if not text then return text end
if NotJaArtist[text] then return text end
if NotJaArtist[text] then return text end
   return mw.ustring.gsub(
   return mw.ustring.gsub(
第46行: 第47行:
if artist_list then
if artist_list then
for _, data in ipairs(artist_list) do
for _, data in ipairs(artist_list) do
local display_ja = formatJapaneseText(data.display) or nil
local display_ja = formatJapaneseText(data.display)
if data.link then
if data.link then
    artist = artist .. (display_ja and link('曲师列表#' .. data.link, display_ja) or '')
    artist = artist .. (display_ja and link('曲师列表#' .. data.link, display_ja) or '')
901

个编辑