◆少前百科是非盈利性、非官方的少女前线维基百科。
◆如果您发现某些内容错误/空缺,请勇于修正/添加!参与进来其实很容易!点这里 加入少前百科
◆有任何意见、建议、纠错,欢迎在 GFwiki:反馈与建议 提出和讨论。编辑事务讨论QQ群:597764980,微博@GFwiki少前百科
◆To foreigners,You can use twitter to contact us.
Icon Nyto Silver.png

“模板:活动兑换”的版本间的差异

来自少前百科GFwiki
跳转至: 导航搜索
(将图标大小改为48像素,补充妖精判断,添加设定商品类别单价功能,添加参数别名)
(设置没有图片的选项)
第4行: 第4行:
 
!物品!!数量!!单价!!小计
 
!物品!!数量!!单价!!小计
 
{{#if:{{{角色|{{{人形|}}}}}}|
 
{{#if:{{{角色|{{{人形|}}}}}}|
{{#arraymap:{{{角色|{{{人形}}}}}}|;|row|<tr><td>{{小头像|No.{{#explode:row|,|1}}|1|w=48px}}特典角色[[{{#explode:row|,|0}}]]</td><td data-num="1"></td><td>{{{角色单价|{{{人形单价|150}}}}}}</td><td></td></tr>|}}
+
{{#arraymap:{{{角色|{{{人形}}}}}}|;|row|<tr><td>{{#ifexpr:{{#explode:row|,|1}}>0|{{小头像|No.{{#explode:row|,|1}}|1|w=48px}}}}特典角色[[{{#explode:row|,|0}}]]</td><td data-num="1"></td><td>{{{角色单价|{{{人形单价|150}}}}}}</td><td></td></tr>|}}
 
}}
 
}}
 
{{#if:{{{换装|{{{装扮|{{{皮肤|}}}}}}}}}|
 
{{#if:{{{换装|{{{装扮|{{{皮肤|}}}}}}}}}|
{{#arraymap:{{{换装|{{{装扮|{{{皮肤}}}}}}}}}|;|row|<tr><td>[[File:Gift bundle {{#explode:row|,|2}}.png|48px]][[{{#explode:row|,|0}}]]装扮“{{#explode:row|,|1}}”</td><td data-num="1"></td><td>{{{换装单价|{{{装扮单价|{{{皮肤单价|150}}}}}}}}}</td><td></td></tr>|}}
+
{{#arraymap:{{{换装|{{{装扮|{{{皮肤}}}}}}}}}|;|row|<tr><td>{{#ifeq:{{#explode:row|,|2}}|none||[[File:Gift bundle {{#explode:row|,|2}}.png|48px]]}}[[{{#explode:row|,|0}}]]装扮“{{#explode:row|,|1}}”</td><td data-num="1"></td><td>{{{换装单价|{{{装扮单价|{{{皮肤单价|150}}}}}}}}}</td><td></td></tr>|}}
 
}}
 
}}
 
{{#if:{{{家具|}}}|
 
{{#if:{{{家具|}}}|
{{#arraymap:{{{家具}}}|;|row|<tr><td>[[File:{{#explode:row|,|1}}_icon.png|48px]]家具“{{#explode:row|,|0}}”</td><td data-num="1"></td><td>{{{家具单价|100}}}</td><td></td></tr>|}}
+
{{#arraymap:{{{家具}}}|;|row|<tr><td>{{#ifeq:{{#explode:row|,|1}}|none||[[File:{{#explode:row|,|1}}_icon.png|48px]]}}家具“{{#explode:row|,|0}}”</td><td data-num="1"></td><td>{{{家具单价|100}}}</td><td></td></tr>|}}
 
}}
 
}}
 
{{#if:{{{妖精|}}}|
 
{{#if:{{{妖精|}}}|
第16行: 第16行:
 
}}
 
}}
 
{{#if:{{{专属|}}}|
 
{{#if:{{{专属|}}}|
{{#arraymap:{{{专属}}}|;|row|<tr><td>[[File:{{#explode:row|,|2}}.png|48px]][[{{#explode:row|,|0}}]]专属装备[[{{#explode:row|,|1}}]]</td><td data-num="1"></td><td>{{{专属单价|80}}}</td><td></td></tr>|}}
+
{{#arraymap:{{{专属}}}|;|row|<tr><td>{{#ifeq:{{#explode:row|,|2}}|none||[[File:{{#explode:row|,|2}}.png|48px]]}}[[{{#explode:row|,|0}}]]专属装备[[{{#explode:row|,|1}}]]</td><td data-num="1"></td><td>{{{专属单价|80}}}</td><td></td></tr>|}}
 
}}
 
}}
 
{{#if:{{{名片背景|}}}|
 
{{#if:{{{名片背景|}}}|
{{#arraymap:{{{名片背景}}}|;|row|<tr><td>[[File:Card_{{#explode:row|,|1}}.png|48px]]名片背景“{{#explode:row|,|0}}”</td><td data-num="1"></td><td>{{{名片背景单价|50}}}</td><td></td></tr>|}}
+
{{#arraymap:{{{名片背景}}}|;|row|<tr><td>{{#ifeq:{{#explode:row|,|1}}|none||[[File:Card_{{#explode:row|,|1}}.png|48px]]}}名片背景“{{#explode:row|,|0}}”</td><td data-num="1"></td><td>{{{名片背景单价|50}}}</td><td></td></tr>|}}
 
}}
 
}}
 
{{#if:{{{头像|}}}|
 
{{#if:{{{头像|}}}|
{{#arraymap:{{{头像}}}|;|row|<tr><td>[[File:ProfilePic_{{#explode:row|,|1}}.png|48px]]头像“{{#explode:row|,|0}}”</td><td data-num="1"></td><td>{{{头像单价|30}}}</td><td></td></tr>|}}
+
{{#arraymap:{{{头像}}}|;|row|<tr><td>{{#ifeq:{{#explode:row|,|1}}|none||[[File:ProfilePic_{{#explode:row|,|1}}.png|48px]]}}头像“{{#explode:row|,|0}}”</td><td data-num="1"></td><td>{{{头像单价|30}}}</td><td></td></tr>|}}
 
}}
 
}}
 
{{#if:{{{采购币|}}}|<tr><td>{{道具图文|item=采购币|数量=1|大小=48px}}</td><td data-num="{{{采购币}}}"></td><td>3</td><td></td></tr>}}
 
{{#if:{{{采购币|}}}|<tr><td>{{道具图文|item=采购币|数量=1|大小=48px}}</td><td data-num="{{{采购币}}}"></td><td>3</td><td></td></tr>}}

2021年7月20日 (二) 21:08的版本

物品 数量 单价 小计
Gift bundle YZ2021 VPM5.pngV-PM5装扮“飞翔海星”150
2021SummerYZ deco01 icon.png家具“蔚蓝边际”100
配件 光学瞄准镜 TAC50.pngTAC-50专属装备液压系统后托80
Card Summer2021.png名片背景“沐光浴影”50
ProfilePic YZ2021 A.png头像“捩浪人”30
ProfilePic YZ2021 B.png头像“来自深海”30
ProfilePic YZ2021 C.png头像“影后”30
Item 作战报告书.png作战报告书×12
Item 特种作战报告书.png特种作战报告书×12
Item 蛋奶草莓芝士.png蛋奶草莓芝士×12
合计