个人工具

模板: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]]|}}|}}|}}}}<!-- 正式输出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}}}}"
+
| #default = ability }} }}<!-- 正式输出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]]|}}|}}|}}<!-- 如果这个能力不是天赋能力, 为它划分能力子类-->{{#switch: {{{class|{{{3|}}}}}}
+
|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]]|}}|}}|}}{{#ifeq: {{#var:subpage}}|0|{{#ifeq: {{FULLPAGENAME}}|{{ucfirst:{{#var:frmclass}}}}:{{ucfirst:{{{name|{{{2}}}}}}}}|{{#replaceset:{{{subclass|{{{6|}}}}}}|/(\S+)/i=[[category:\1]]|}}|}}|}}
| ability = {{#var:abilitycate}}
+
| passive_ability = {{#var:abilitycate}}
+
| magic_ability = {{#var:abilitycate}}
+
| #default=}}
+
 
|-
 
|-
 
{{{content|{{{1}}}}}}
 
{{{content|{{{1}}}}}}
第108行: 第104行:
 
*4或type: 这个条目的类型(用作category), 可以填写多个(用空格分隔), 模板会自动将之展开赋予category属性. 根据不同条目, 类型也是不同的. 详见[[特征:概述#类型|特征类型]], [[能力:概述#类型|能力类型]], [[状态:概述#类型|状态类型]], [[物品:军械#类型|军械类型]], [[环境:概述#类型|环境类型]].
 
*4或type: 这个条目的类型(用作category), 可以填写多个(用空格分隔), 模板会自动将之展开赋予category属性. 根据不同条目, 类型也是不同的. 详见[[特征:概述#类型|特征类型]], [[能力:概述#类型|能力类型]], [[状态:概述#类型|状态类型]], [[物品:军械#类型|军械类型]], [[环境:概述#类型|环境类型]].
 
*5或subpage: 这个条目是否是子页面. 为1, y, yes, true表示是子页面, 为0, n, no, false时不是子页面. 默认为"0". 作为子页面时, 不会对该条目进行归类.
 
*5或subpage: 这个条目是否是子页面. 为1, y, yes, true表示是子页面, 为0, n, no, false时不是子页面. 默认为"0". 作为子页面时, 不会对该条目进行归类.
*6或abilitycate: 这个参数只对非天赋能力有效, 它会归类学习此能力所需的经验点数花费.
+
*6或subclass: 如果要添加子分类(而不显示在类型行中), 可以在这里填写. 允许多个(用空格分隔).
 
{| width=500 class="collapsible collapsed wikitable"
 
{| width=500 class="collapsible collapsed wikitable"
 
|-
 
|-

在2013年3月3日 (日) 06:42所做的修订版本