模板:CardChar
出自Meshal Lite
第109行: | 第109行: | ||
{{#vardefine:{{{fullpagename|}}}_resist|{{#ifexpr: {{#var:{{{fullpagename|}}}_resist}}=0|{{r|{{#ifeq: {{{精神无效|}}}||[[精神]]|3}}}}|{{r|{{#ifeq: {{{精神无效|}}}||[[精神]]|3}}{{#var:{{{fullpagename|}}}_op_resist}}{{#var:{{{fullpagename|}}}_resist}}}}}}}} | {{#vardefine:{{{fullpagename|}}}_resist|{{#ifexpr: {{#var:{{{fullpagename|}}}_resist}}=0|{{r|{{#ifeq: {{{精神无效|}}}||[[精神]]|3}}}}|{{r|{{#ifeq: {{{精神无效|}}}||[[精神]]|3}}{{#var:{{{fullpagename|}}}_op_resist}}{{#var:{{{fullpagename|}}}_resist}}}}}}}} | ||
− | <!--数据处理结束--></div> | + | <!--数据处理结束--> |
+ | <!--加入分类--> | ||
+ | {{#ifeq: {{{fullpagename|}}}|{{FULLPAGENAME}}|{{#ifeq: {{#var:{{{fullpagename|}}}_class}}||[[category:实力{{#var:{{{fullpagename|}}}_strengthRange}}]]|[[category:{{#var:{{{fullpagename|}}}_class}}]]}}{{#replaceset:{{{type|缺少类型信息}}}|/(\S+)/i=[[category:\1]]|}}{{#replaceset:{{{subtype|}}}|/(\S+)/i=[[category:\1]]|}}{{#replaceset:{{#var:{{{fullpagename|}}}_campaignset}}|/(\S+)/i=[[category:世界设定-\1]]|}}|}} | ||
+ | </div> | ||
{{#ifeq: {{FULLPAGENAME}}|{{{fullpagename|}}}|<div class="cardWrapper" style="min-height: 0;">|}}<div class="quarter" style="font-size:initial; margin:1px 1px 1em 1px; border-color: {{#var:{{{fullpagename|}}}_cardCharColor}};"><div class="quarterTitle bg-blur" style="padding: 0; background-color: {{#var:{{{fullpagename|}}}_cardCharColor}};"><span class="iconSymbol">{{img|ico_{{#var:{{{fullpagename|}}}_cardicon}}.png}}</span> <span class="cardTitle">[[{{{fullpagename|}}}|{{#var:{{{fullpagename|}}}_charName}}]]</span>{{#ifeq:{{{add|}}}|||<span class="cardTitleAdd">({{{add|}}})</span>}}<div style="float: right; right: 0; top: 0; font-size: 12px; font-weight: 500; background-color: rgba(0,0,0,.05); border-radius: 0 8px 0 0; padding: 0 1em;"><span class="textSymbol">{{img|symbol_str.png}}</span> [[实力]] {{expr|{{{2|{{{实力|0}}}}}}|y}} {{#ifeq: {{{潜能|}}}|||/ '''[[潜能]]''' {{#var:{{{fullpagename|}}}_talent}} }}</div><span class="cardType" style="margin: 0 1em; line-height:unset;">{{#ifeq: {{#var:{{{fullpagename|}}}_class}}|||[[{{#var:{{{fullpagename|}}}_class}}]]}} {{#replaceset:{{{type|缺少类型信息}}}|/(\S+)/i=[[\1]]|}}</span></div> | {{#ifeq: {{FULLPAGENAME}}|{{{fullpagename|}}}|<div class="cardWrapper" style="min-height: 0;">|}}<div class="quarter" style="font-size:initial; margin:1px 1px 1em 1px; border-color: {{#var:{{{fullpagename|}}}_cardCharColor}};"><div class="quarterTitle bg-blur" style="padding: 0; background-color: {{#var:{{{fullpagename|}}}_cardCharColor}};"><span class="iconSymbol">{{img|ico_{{#var:{{{fullpagename|}}}_cardicon}}.png}}</span> <span class="cardTitle">[[{{{fullpagename|}}}|{{#var:{{{fullpagename|}}}_charName}}]]</span>{{#ifeq:{{{add|}}}|||<span class="cardTitleAdd">({{{add|}}})</span>}}<div style="float: right; right: 0; top: 0; font-size: 12px; font-weight: 500; background-color: rgba(0,0,0,.05); border-radius: 0 8px 0 0; padding: 0 1em;"><span class="textSymbol">{{img|symbol_str.png}}</span> [[实力]] {{expr|{{{2|{{{实力|0}}}}}}|y}} {{#ifeq: {{{潜能|}}}|||/ '''[[潜能]]''' {{#var:{{{fullpagename|}}}_talent}} }}</div><span class="cardType" style="margin: 0 1em; line-height:unset;">{{#ifeq: {{#var:{{{fullpagename|}}}_class}}|||[[{{#var:{{{fullpagename|}}}_class}}]]}} {{#replaceset:{{{type|缺少类型信息}}}|/(\S+)/i=[[\1]]|}}</span></div> | ||
{|cellspacing=0 style="font-size: 12px; width: 100%; border: none; padding: 0; margin: 0; background-color: rgba(242,242,242,.75); border-radius: 0;" | {|cellspacing=0 style="font-size: 12px; width: 100%; border: none; padding: 0; margin: 0; background-color: rgba(242,242,242,.75); border-radius: 0;" | ||
第189行: | 第192行: | ||
{{#ifeq: {{FULLPAGENAME}}|{{{fullpagename|}}}|{{{补充资料|}}} | {{#ifeq: {{FULLPAGENAME}}|{{{fullpagename|}}}|{{{补充资料|}}} | ||
</div>|}} | </div>|}} | ||
− | {{#ifeq: {{{fullpagename|}}}|{{FULLPAGENAME}}| | + | {{#ifeq: {{{fullpagename|}}}|{{FULLPAGENAME}}|<div class="contributor">本内容由 {{#ifeq:{{{contributor|}}}||[[Meshal Design Team]]|{{{contributor|}}}}} 贡献</div> |
<!--添加子页面入口--><div class="portalDiv">{{#ifeq: {{{fullpagename|}}}|{{FULLPAGENAME}}|{{#ifeq:{{{variant|}}}|y|[[category:族群]] | <!--添加子页面入口--><div class="portalDiv">{{#ifeq: {{{fullpagename|}}}|{{FULLPAGENAME}}|{{#ifeq:{{{variant|}}}|y|[[category:族群]] | ||
{{block|变体|{{PAGENAME}}是一种具备多样性的生物,下表中罗列了一些常见的变体。[[主持人]]可在此基础上进行修改与再创造,从而创造属于自己世界设定的生物。 | {{block|变体|{{PAGENAME}}是一种具备多样性的生物,下表中罗列了一些常见的变体。[[主持人]]可在此基础上进行修改与再创造,从而创造属于自己世界设定的生物。 |