模板:Frm
出自Meshal Lite
第80行: | 第80行: | ||
| char = feature | | char = feature | ||
| year = history | | year = history | ||
− | | #default = ability | + | | #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]]|}}|}}|}} | + | |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]]|}}|}}|}} |
− | | | + | |
− | + | ||
− | | | + | |
− | | | + | |
|- | |- | ||
{{{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或subclass: 如果要添加子分类(而不显示在类型行中), 可以在这里填写. 允许多个(用空格分隔). |
{| width=500 class="collapsible collapsed wikitable" | {| width=500 class="collapsible collapsed wikitable" | ||
|- | |- |