用户:攸萨/手册:修订间差异

来自SS唯基
跳到导航 跳到搜索
无编辑摘要
无编辑摘要
标签已被回退
第1行: 第1行:
{{historical|2}}
-- Desktop Table
*'''“新谐星”杯你画我猜比赛'''[[SS势力一览|SS同盟]][[新手保护区]]的活动,分享关于'''绘画'''的活动。
table.insert(res_table, string.format("\n{|class=\"%s %s\" ", table_class, "nomobile"))
==【新手村活动】第一届”新谐星”杯你画我猜比赛==
table.insert(res_table, "style=\"width:835px;max-width:100%;line-height:18px;text-align:center;display:table;white-space:normal;\"\n")
{{活动简介右侧栏
|活动名        =【新手村活动】<br>“新谐星”杯你画我猜比赛
if not playable then table.insert(res_table, string.format("|-\n! colspan=\"3\" |'''%s'''", title)) end
|所属版区  = [[新手保护区]]
|活动时间  = 2015.06.22-2015.06.25
for i = 1, max_pieces do
}}
local piece_title = mw.text.trim(args["标题" .. i] or "")
===活动内容===
if piece_title ~= "" then
{{活动内容
local piece_jp = mw.text.trim(args["日文" .. i] or "")
|宣传词=
local piece_cn = mw.text.trim(args["中文" .. i] or "")
小伙伴们,好久不见....额,应该是天天见来着?,无所谓了~
local piece_cond = mw.text.trim(args["条件" .. i] or "")
local piece_file = mw.text.trim(args["语音" .. i] or "")
local piece_file_cn = mw.text.trim(args["中文语音" .. i] or "")
local piece_lack_file = (piece_file == "")
local piece_lack_jp = (piece_jp == "" and piece_cn ~= "")
local piece_lack_cn = (piece_jp ~= "" and piece_cn == "")
local piece_lack_info = piece_lack_file or piece_lack_jp or piece_lack_cn
table.insert(res_table, string.format("\n|-\n!style=\"width:120px;%s\"|'''%s'''\n", (piece_lack_info and "color:#000;" or ""), piece_title))
table.insert(res_table, "|style=\"text-align:left;\"|")
if playable and piece_jp ~= "" and piece_cn ~= "" then
table.insert(res_table, "<p lang=\"ja\" style=\"margin:5px;margin-bottom:10px\">" .. piece_jp .. "</p><p style=\"margin:5px;\">" .. piece_cn)
elseif piece_cn ~= "" then
table.insert(res_table, "<p style=\"margin:5px;\">" .. piece_cn)
else
table.insert(res_table, "<p lang=\"ja\" style=\"margin:5px;\">" .. piece_jp)
end


前段时间的活动投票贴,我感觉到了小伙伴的热情,于是呢,就举办了这么个活动
table.insert(res_table, ((piece_cond ~= "") and string.format("'''(%s)'''</p>", piece_cond) or "</p>"))
 
毕竟游戏、涂鸦选择的人都很多呢
table.insert(res_table, string.format("\n|style=\"width:%dpx;\"|", playable and 80 or 40))
 
干脆用你画我猜的形式啦~
if piece_file ~= "" then
 
if piece_file == "-" then
不用那么拘谨,想玩的话就来好了,又有奖励可拿
table.insert(res_table, "—")
|主题链接=[https://sstm.moe/topic/98991-1 【第一届“新谐星”杯你画我猜比赛】报名帖]
else
|主题=
local piece_file_url = (path == "") and frame:callParserFunction{name = 'filepath:' .. piece_file} or (path .. piece_file)
*[https://sstm.moe/topic/98557-1 【新手村活动投票贴】]
local piece_file_url_cn = ""
*[https://sstm.moe/topic/98991-1 【第一届“新谐星”杯你画我猜比赛】报名帖]
if piece_file_cn ~= "" then
*[https://sstm.moe/topic/98984-1 【第一届“新谐星”杯你画我猜比赛】策划案]{{上角标|限}}
                        piece_file_url_cn = (path == "") and frame:callParserFunction{name = 'filepath:' .. piece_file_cn} or (path .. piece_file_cn)
*[https://sstm.moe/topic/99333-1 【第一届新谐星你画我猜比赛】结束啦~]{{上角标|限}}
                    end
*[https://sstm.moe/topic/99174-1 赶紧来报名吧v~]{{上角标|限}}
                    local player_args = {icon_width = '36px', src = piece_file_url}
*[https://sstm.moe/topic/99312-1 喂喂喂。。。你们别把今晚上的活动忘了啊。。]{{上角标|限}}
if piece_file_url == "" then
|方式=
player_args["download_style"] = "display:none;"
*活动期间内前往活动报名帖报名,然后在指定时间内登录'''猫谜绘板'''进行比赛。
player_args["play_style"] = "display:none;"
|规则=
end
*活动参加资格为[[初级会员]]以下及拥有[[返乡]]权限的人员,拥有资格者仅需在报名贴下进行回复就可以报名成功。
if not playable then player_args["download_style"] = "display:none;" end
*活动奖励发放资格为[[初级会员]]以下的参加者,拥有[[返乡]]权限的参加者并不会有奖励。
*活动开始前进行报名后却不克前往,须个别跟主办方进行提醒,方式可采用在报名帖中补充[[@]]提醒。
table.insert(res_table, frame:callParserFunction{name = '#Widget:MiniAudioPlayer', args = player_args})
====比赛相关====
                    if piece_file_url_cn ~= "" then
:*活动场地分为[[SS音乐茶座]]比赛专区与'''猫谜绘板'''网页,比赛中任何事项会由[[SS音乐茶座]]的主持人进行发布。
                    local player_args = {icon_width = '36px', src = piece_file_url_cn}
:*比赛场次根据已报名的人数决定活动的轮数,最后剩人数不够的话,从参加活动的人员的中补充。
player_args["download_style"] = "display:none;"
:*比赛奖励你画我猜的积分第一为一个奖,谐星向一个奖,技术向一个奖,三个奖不可重复领取,比赛第二天后发放。
player_args["play_style"] = "display:none;"
|奖励=
                        table.insert(res_table, frame:callParserFunction{name = '#Widget:MiniAudioPlayer', args = player_args})
*活动结束后,分为三个奖项,每个奖项各一人获选,发放奖励都是10[[汁液]]。
                    end
}}
end
{{活动导览|活动导览/新手保护区}}
end
[[分类:新手保护区]]
lack_file = lack_file or piece_lack_file
lack_cn = lack_cn or piece_lack_cn
lack_jp = lack_jp or piece_lack_jp
end
end

2023年11月18日 (六) 04:04的版本

-- Desktop Table table.insert(res_table, string.format("\n{|class=\"%s %s\" ", table_class, "nomobile")) table.insert(res_table, "style=\"width:835px;max-width:100%;line-height:18px;text-align:center;display:table;white-space:normal;\"\n")

if not playable then table.insert(res_table, string.format("|-\n! colspan=\"3\" |%s", title)) end

for i = 1, max_pieces do local piece_title = mw.text.trim(args["标题" .. i] or "") if piece_title ~= "" then local piece_jp = mw.text.trim(args["日文" .. i] or "") local piece_cn = mw.text.trim(args["中文" .. i] or "") local piece_cond = mw.text.trim(args["条件" .. i] or "") local piece_file = mw.text.trim(args["语音" .. i] or "") local piece_file_cn = mw.text.trim(args["中文语音" .. i] or "")

local piece_lack_file = (piece_file == "") local piece_lack_jp = (piece_jp == "" and piece_cn ~= "") local piece_lack_cn = (piece_jp ~= "" and piece_cn == "")

local piece_lack_info = piece_lack_file or piece_lack_jp or piece_lack_cn

table.insert(res_table, string.format("\n|-\n!style=\"width:120px;%s\"|%s\n", (piece_lack_info and "color:#000;" or ""), piece_title)) table.insert(res_table, "|style=\"text-align:left;\"|")

if playable and piece_jp ~= "" and piece_cn ~= "" then

table.insert(res_table, "

" .. piece_jp .. "

" .. piece_cn)

elseif piece_cn ~= "" then

table.insert(res_table, "

" .. piece_cn) else table.insert(res_table, "

" .. piece_jp) end table.insert(res_table, ((piece_cond ~= "") and string.format("(%s)

", piece_cond) or "

"))

table.insert(res_table, string.format("\n|style=\"width:%dpx;\"|", playable and 80 or 40))

if piece_file ~= "" then if piece_file == "-" then table.insert(res_table, "—") else local piece_file_url = (path == "") and frame:callParserFunction{name = 'filepath:' .. piece_file} or (path .. piece_file) local piece_file_url_cn = "" if piece_file_cn ~= "" then

                       piece_file_url_cn = (path == "") and frame:callParserFunction{name = 'filepath:' .. piece_file_cn} or (path .. piece_file_cn)
                   end
                   local player_args = {icon_width = '36px', src = piece_file_url}

if piece_file_url == "" then player_args["download_style"] = "display:none;" player_args["play_style"] = "display:none;" end if not playable then player_args["download_style"] = "display:none;" end

table.insert(res_table, frame:callParserFunction{name = '#Widget:MiniAudioPlayer', args = player_args})

                   if piece_file_url_cn ~= "" then
                   	local player_args = {icon_width = '36px', src = piece_file_url_cn}

player_args["download_style"] = "display:none;" player_args["play_style"] = "display:none;"

                       table.insert(res_table, frame:callParserFunction{name = '#Widget:MiniAudioPlayer', args = player_args})
                   end

end end

lack_file = lack_file or piece_lack_file lack_cn = lack_cn or piece_lack_cn lack_jp = lack_jp or piece_lack_jp end end