6,304
个编辑
小 (修复曲包分类错误) |
小 (修复Tempestissimo byd标记bug;修复ID设置为空报错的bug) |
||
(未显示同一用户的1个中间版本) | |||
第44行: | 第44行: | ||
diff:wikitext('[Beyond]') | diff:wikitext('[Beyond]') | ||
mark:wikitext('仅移动版') | mark:wikitext('仅移动版') | ||
if byd and inNs | if byd and inNs and name ~= "Tempestissimo" | ||
then | then | ||
return tostring(tostring(diff)..tostring(mark)) | return tostring(tostring(diff)..tostring(mark)) | ||
第217行: | 第217行: | ||
-- 获取数据查找函数 | -- 获取数据查找函数 | ||
local data, dataNs | local data, dataNs | ||
if args["id"] | if args["id"] and args["id"] ~= "" | ||
then | then | ||
data, dataNs = getData.singleSongInformation(args['id'], "id", "mobile"), getData.singleSongInformation(args['id'], "id", "ns") | data, dataNs = getData.singleSongInformation(args['id'], "id", "mobile"), getData.singleSongInformation(args['id'], "id", "ns") | ||
第429行: | 第429行: | ||
if not(data('id') or dataNs('id') or #args > 1) then category = category..'[[分类:未登陆的曲目]]' end | if not(data('id') or dataNs('id') or #args > 1) then category = category..'[[分类:未登陆的曲目]]' end | ||
if (data('id') or dataNs('id')) and not(args['unset']) | if (data('id') or dataNs('id')) and not(args['unset']) | ||
then | then | ||
category = category..'[[分类:'.. | |||
-- 如果没有更新packlist,不自动进行分类。 | |||
if choice(getData.packName(data('set')), data('set'), getData.packName(dataNs('set')), dataNs('set')) | |||
then | |||
category = category..'[[分类:'..tostring(choice(getData.packName(data('set')), data('set'), getData.packName(dataNs('set')), dataNs('set'))) .. '曲包曲目]]' | |||
end | |||
if data('side') == 1 or dataNs('side') == 1 or args['侧'] == '1' | if data('side') == 1 or dataNs('side') == 1 or args['侧'] == '1' | ||
then | then | ||
第468行: | 第473行: | ||
then | then | ||
noticeText = noticeText..'<li>在Songlist中无法检查到此曲目。请尝试更新[[模板:Songlist]],检查页面名或填写正确的<code>曲名</code>参数。</li>' | noticeText = noticeText..'<li>在Songlist中无法检查到此曲目。请尝试更新[[模板:Songlist]],检查页面名或填写正确的<code>曲名</code>参数。</li>' | ||
end | |||
if not(choice(getData.packName(data('set')), data('set'), getData.packName(dataNs('set')), dataNs('set'))) | |||
then | |||
noticeText = noticeText..'<li>未更新Packlist。曲目信息模板无法进行曲包分类。</li>' | |||
end | end | ||