跳至內容

「Module:Sandbox/SongLink」:修訂間差異

增加 29 位元組 、​ 2022年7月14日 (星期四)
無編輯摘要
無編輯摘要
無編輯摘要
行 33: 行 33:
    local songName = args[1] -- 既可以是 id,也可以是曲名,甚至是 Beyond 曲名
    local songName = args[1] -- 既可以是 id,也可以是曲名,甚至是 Beyond 曲名
    local isBeyond = args[2]
    local isBeyond = args[2]
    if not isBeyond then isBeyond = false end
    if isBeyond == nil then isBeyond = false else isBeyond = true end
    local song = nil
    local song = nil
    local hasBeyondSpecialName = false
    local hasBeyondSpecialName = false
行 81: 行 81:
    
    


    if linkTo == display then
    if not(linkTo == display) then
      return "[[" .. linkTo .. "|" .. display .. "]]"
      return "[[" .. linkTo .. "|" .. display .. "]]"
    else return "[[" .. linkTo .. "]]" end
    else return "[[" .. linkTo .. "]]" end
134

次編輯