“模板:沙盒”的版本间的差异
跳到导航
跳到搜索
第1行: | 第1行: | ||
− | + | {{#vardefine:heroN|{{GetCount|table=CargoHeros|where=CargoHeros.职业分类='{{{1}}}' and CargoHeros.合集 is null and CargoHeros.类型='英雄'}}}}{{#vardefine:playHN|{{GetCount|table=CargoHeros|where=CargoHeros.职业分类='{{{1}}}' and CargoHeros.合集 is null and CargoHeros.类型='可打出英雄'}}}} | |
− | + | {{#switch:{{{1|}}} | |
− | + | |盗贼 | |
− | + | |潜行者={{#vardefine:whereHero|(CargoHeros.职业分类='盗贼' or CargoHeros.职业分类='潜行者') and CargoHeros.合集 is null and CargoHeros.类型='可打出英雄'}} | |
− | + | |萨满 | |
− | + | |萨满祭司={{#vardefine:whereHero|(CargoHeros.职业分类='萨满' or CargoHeros.职业分类='萨满祭司') and CargoHeros.合集 is null and CargoHeros.类型='可打出英雄'}} | |
− | </ | + | |CargoHeros.职业分类='{{{1}}}' and CargoHeros.合集 is null and CargoHeros.类型='可打出英雄' |
+ | }} | ||
+ | {{#switch:{{{1|}}} | ||
+ | |盗贼 | ||
+ | |潜行者={{#vardefine:wherePlay|(CargoHeros.职业分类='盗贼' or CargoHeros.职业分类='潜行者') and CargoHeros.合集 is null and CargoHeros.类型='英雄'}} | ||
+ | |萨满 | ||
+ | |萨满祭司={{#vardefine:wherePlay|(CargoHeros.职业分类='萨满' or CargoHeros.职业分类='萨满祭司') and CargoHeros.合集 is null and CargoHeros.类型='英雄'}} | ||
+ | |CargoHeros.职业分类='{{{1}}}' and CargoHeros.合集 is null and CargoHeros.类型='英雄' | ||
+ | }}<table style="padding-left:100px;padding-right:100px;width:100%;" class="mw-collapsible "> | ||
+ | <caption><b>{{{1}}}英雄皮肤</b></caption> | ||
+ | <tr><td class="mw-collapsible-content" style="text-align:center"> | ||
+ | <hr/><hr/> | ||
+ | 英雄皮肤数量 '''{{#var:heroN}}''' | ||
+ | <hr/><hr/> | ||
+ | {{#cargo_query:table=CargoHeros | ||
+ | |fields=_pageName,代码,编号 | ||
+ | |where={{#var:whereHero}} | ||
+ | |group by=代码 | ||
+ | |default= | ||
+ | |named args=yes | ||
+ | |format=template | ||
+ | |order by=编号 | ||
+ | |template=CargoQueryPic/Hero | ||
+ | }}<br/> | ||
+ | <hr/><hr/> | ||
+ | 可打出英雄数量 '''{{#var:playHN}}''' | ||
+ | <hr/><hr/> | ||
+ | {{#cargo_query:table=CargoHeros | ||
+ | |fields=_pageName,代码 | ||
+ | |where={{#var:wherePlay}} | ||
+ | |group by=代码 | ||
+ | |default= | ||
+ | |named args=yes | ||
+ | |format=template | ||
+ | |order by=编号 | ||
+ | |template=CargoQueryPic/Hero | ||
+ | }}</td></tr></table> |
2022年11月8日 (二) 13:34的版本
英雄皮肤数量 错误:找不到表格CargoHeros。
错误:找不到表格CargoHeros。 可打出英雄数量 错误:找不到表格CargoHeros。
错误:找不到表格CargoHeros。 |