模板:Frm
出自Meshal Lite
第80行: | 第80行: | ||
| char = feature | | char = feature | ||
| year = history | | year = history | ||
− | | #default = ability }} }}<!-- 定义能力子类 -->{{#vardefine: abilitycate|{{#ifeq: {{#var:subpage}}|0|{{#ifeq: {{FULLPAGENAME}}|{{ucfirst:{{#var:frmclass}}}}:{{ucfirst:{{{name|{{{2}}}}}}}}|{{#replaceset:{{{abilitycate|{{{6|}}}}}}|/(\S+)/i=[[category:\1]]|}}|}}|}} | + | | #default = ability }} }}<!-- 定义能力子类 -->{{#vardefine: abilitycate|{{#ifeq: {{#var:subpage}}|0|{{#ifeq: {{FULLPAGENAME}}|{{ucfirst:{{#var:frmclass}}}}:{{ucfirst:{{{name|{{{2}}}}}}}}|{{#replaceset:{{{abilitycate|{{{6|}}}}}}|/(\S+)/i=[[category:\1]]|}}|}}|}}}}<!-- 正式输出frm表格框架 -->{|width= {{#ifeq: {{#var:subpage}}|1|{{#ifeq: {{FULLPAGENAME}}|{{ucfirst:{{{name|{{{2}}}}}}}}|480px|100%}}|{{#ifeq: {{FULLPAGENAME}}|{{ucfirst:{{#var:frmclass}}}}:{{ucfirst:{{{name|{{{2}}}}}}}}|480px|100%}}}} padding=0 spacing=0 style="background: transparent; border: 1px #aaa solid; text-align: left;" class="collapsible {{#ifeq: {{#var:subpage}}|1|{{#ifeq: {{FULLPAGENAME}}|{{ucfirst:{{{name|{{{2}}}}}}}}||off}}|{{#ifeq: {{FULLPAGENAME}}|{{ucfirst:{{#var:frmclass}}}}:{{ucfirst:{{{name|{{{2}}}}}}}}||off}}}}" |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
|- | |- | ||
! colspan=2 style="font-weight: bold; border-style: none none hidden none; background: #{{#var:frmcolor}}; caption-side:left; text-align: left;"|{{img|ico_{{#var:frmico}}.gif}}{{#ifeq:{{#var:subpage}}|0|[[{{#var:frmclass}}:{{{name|{{{2}}}}}}|{{{name|{{{2}}}}}}]]|[[{{{name|{{{2}}}}}}|{{#explode: {{{name|{{{2}}}}}}|/|-1}}]] }} | ! colspan=2 style="font-weight: bold; border-style: none none hidden none; background: #{{#var:frmcolor}}; caption-side:left; text-align: left;"|{{img|ico_{{#var:frmico}}.gif}}{{#ifeq:{{#var:subpage}}|0|[[{{#var:frmclass}}:{{{name|{{{2}}}}}}|{{{name|{{{2}}}}}}]]|[[{{{name|{{{2}}}}}}|{{#explode: {{{name|{{{2}}}}}}|/|-1}}]] }} | ||
|- | |- | ||
|width=32px valign=top style="font-weight: bold; border: 1px gray; border-style: dotted none none none;"|类型 | |width=32px valign=top style="font-weight: bold; border: 1px gray; border-style: dotted none none none;"|类型 | ||
− | |style="border: 1px gray; border-style: dotted none none none;"|{{#replaceset:{{{type|{{{4|缺少类型信息}}}}}}|/(\S+)/i=[[\1]]|}}{{#ifeq: {{#var:subpage}}|0|{{#ifeq: {{FULLPAGENAME}}|{{ucfirst:{{#var:frmclass}}}}:{{ucfirst:{{{name|{{{2}}}}}}}}|{{#replaceset:{{{type|{{{4|缺少类型信息}}}}}}|/(\S+)/i=[[category:\1]]|}}|}}|}} | + | |style="border: 1px gray; border-style: dotted none none none;"|{{#replaceset:{{{type|{{{4|缺少类型信息}}}}}}|/(\S+)/i=[[\1]]|}}{{#ifeq: {{#var:subpage}}|0|{{#ifeq: {{FULLPAGENAME}}|{{ucfirst:{{#var:frmclass}}}}:{{ucfirst:{{{name|{{{2}}}}}}}}|{{#replaceset:{{{type|{{{4|缺少类型信息}}}}}}|/(\S+)/i=[[category:\1]]|}}|}}|}}<!-- 如果这个能力不是天赋能力, 为它划分能力子类-->{{#switch: {{{class|{{{3|}}}}}} |
+ | | ability = {{#var:abilitycate}} | ||
+ | | passive_ability = {{#var:abilitycate}} | ||
+ | | magic_ability = {{#var:abilitycate}} | ||
+ | | #default=}} | ||
|- | |- | ||
{{{content|{{{1}}}}}} | {{{content|{{{1}}}}}} |