|
|
(未显示同一用户的100个中间版本) |
第1行: |
第1行: |
| -- 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")
| | |活动名 =【天坑区活动】<br>新作抽獎活動 |
|
| | |所属版区 = [[天坑开发中心]] |
| if not playable then table.insert(res_table, string.format("|-\n! colspan=\"3\" |'''%s'''", title)) end
| | |活动时间 = 2024.03.22-2024.03.24}} |
|
| | ===活动内容=== |
| 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))
| | 為此將送出10個DLSite的新作序號 |
|
| | |主题链接=[https://sstm.moe/topic/353400-1 【新作抽獎活動結束】異世界出身の私が歌舞伎町で闇バイト始めました]{{上角标|里}} |
| if piece_file ~= "" then
| | |主题= |
| if piece_file == "-" then
| | *[https://sstm.moe/topic/353400-1 【新作抽獎活動結束】異世界出身の私が歌舞伎町で闇バイト始めました]{{上角标|里}} |
| table.insert(res_table, "—")
| | *[https://sstm.moe/topic/353374-1 消息預告] |
| else
| | *[https://sstm.moe/topic/353401-1 抽獎以及紅包資訊] |
| local piece_file_url = (path == "") and frame:callParserFunction{name = 'filepath:' .. piece_file} or (path .. piece_file)
| | *[https://sstm.moe/topic/353450-1 【抽獎】即將截止] |
| local piece_file_url_cn = ""
| | *[https://sstm.moe/topic/353455-1 【中獎名單】異世界出身の私が歌舞伎町で闇バイト始めました]{{上角标|里}} |
| 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
| |