模板:QuarterChar
出自Meshal Lite
第1行: | 第1行: | ||
− | <includeonly><div class="quarter"> | + | <includeonly><div class="quarter" style="width: calc(100% - 1em - {{{indent|0}}}em); margin-left: calc(.5em + {{{indent|0}}}em);"> |
<div class="quarterTitle" style="padding: 0 12px; background-color: rgba(216, 206, 193, .75);">{{#ifeq: {{{1|{{{名称|}}}}}}||不详|{{{1|{{{名称|不详}}}}}}}}{{#ifeq:{{{add|}}}|||<span class="cardTitleAdd">({{{add|}}})</span>}}<div style="position: absolute; 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;">[[实力]] {{expr|{{{2|{{{实力|0}}}}}}|y}}</div></div> | <div class="quarterTitle" style="padding: 0 12px; background-color: rgba(216, 206, 193, .75);">{{#ifeq: {{{1|{{{名称|}}}}}}||不详|{{{1|{{{名称|不详}}}}}}}}{{#ifeq:{{{add|}}}|||<span class="cardTitleAdd">({{{add|}}})</span>}}<div style="position: absolute; 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;">[[实力]] {{expr|{{{2|{{{实力|0}}}}}}|y}}</div></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 0 {{#ifeq:{{{说明|}}}||8px 8px|0 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 0 {{#ifeq:{{{说明|}}}||8px 8px|0 0}};" | ||
第5行: | 第5行: | ||
{|class="cardCharScore" style="width: 100%; position: relative;" | {|class="cardCharScore" style="width: 100%; position: relative;" | ||
|width="25%" class="expandInfo"|'''[[强壮]]'''<br><span class="cardCharValue">{{expr|{{{强壮|3}}}|y}}</span><div class="bg-blur">'''[[强壮]]''': {{#ifeq: {{{强壮|3}}}||无|{{{强壮|3}}}}}</div> | |width="25%" class="expandInfo"|'''[[强壮]]'''<br><span class="cardCharValue">{{expr|{{{强壮|3}}}|y}}</span><div class="bg-blur">'''[[强壮]]''': {{#ifeq: {{{强壮|3}}}||无|{{{强壮|3}}}}}</div> | ||
− | |width="25%" class="expandInfo"|'''[[ | + | |width="25%" class="expandInfo"|'''[[敏捷]]'''<br><span class="cardCharValue">{{expr|{{{敏捷|3}}}|y}}</span><div class="bg-blur">'''[[敏捷]]''': {{#ifeq: {{{敏捷|3}}}||无|{{{敏捷|3}}}}}</div> |
|width="25%" class="expandInfo"|'''[[精神]]'''<br><span class="cardCharValue">{{expr|{{{精神|3}}}|y}}</span><div class="bg-blur">'''[[精神]]''': {{#ifeq: {{{精神|3}}}||无|{{{精神|3}}}}}</div> | |width="25%" class="expandInfo"|'''[[精神]]'''<br><span class="cardCharValue">{{expr|{{{精神|3}}}|y}}</span><div class="bg-blur">'''[[精神]]''': {{#ifeq: {{{精神|3}}}||无|{{{精神|3}}}}}</div> | ||
|width="25%" rowspan=6 class="expandInfo" style="vertical-align:middle;"|<!--机动数据--><div style="margin: 0 auto;background-color: rgba(255,255,255,.5);width: 64px;height: 64px;text-align: center;border-radius: 32px; border: rgba(216, 206, 193, .75) 1px solid; line-height: 0;display: block;padding: 0;position: unset;vertical-align: middle;font-size: 1em; box-shadow: none;"><span style="line-height: 2em; font-size: 1.8em; font-weight: 900;">[[⚡️]]</span><br><span style="font-size: 1.5em; font-weight: 900;">{{expr|{{{机动|3}}}|y}}</span></div><div class="bg-blur">'''[[机动]]''':{{#ifeq: {{{机动|3}}}||无|{{{机动|3}}}}}</div><!--机动数据结束--> | |width="25%" rowspan=6 class="expandInfo" style="vertical-align:middle;"|<!--机动数据--><div style="margin: 0 auto;background-color: rgba(255,255,255,.5);width: 64px;height: 64px;text-align: center;border-radius: 32px; border: rgba(216, 206, 193, .75) 1px solid; line-height: 0;display: block;padding: 0;position: unset;vertical-align: middle;font-size: 1em; box-shadow: none;"><span style="line-height: 2em; font-size: 1.8em; font-weight: 900;">[[⚡️]]</span><br><span style="font-size: 1.5em; font-weight: 900;">{{expr|{{{机动|3}}}|y}}</span></div><div class="bg-blur">'''[[机动]]''':{{#ifeq: {{{机动|3}}}||无|{{{机动|3}}}}}</div><!--机动数据结束--> | ||
第76行: | 第76行: | ||
}} | }} | ||
− | {{block| | + | {{block|强壮、敏捷、精神| |
角色的属性,可以填写如“3基础+5特征+装备1”这样的算式, 模板会自动进行计算(忽略文字的说明部分)。 | 角色的属性,可以填写如“3基础+5特征+装备1”这样的算式, 模板会自动进行计算(忽略文字的说明部分)。 | ||
*支持的运算符包括: “<nowiki>+ - * / + - */ × ÷ ( )</nowiki>” | *支持的运算符包括: “<nowiki>+ - * / + - */ × ÷ ( )</nowiki>” | ||
第125行: | 第125行: | ||
{{block|说明| | {{block|说明| | ||
自行书写的部分,支持wiki语法。 | 自行书写的部分,支持wiki语法。 | ||
+ | }} | ||
+ | |||
+ | {{block|indent| | ||
+ | 这个区块的缩进尺寸,单位是em。填写1即等于缩进1em。 | ||
+ | *默认为0 | ||
}} | }} | ||
</noinclude> | </noinclude> |