模板:Frm
出自Meshal Lite
第1行: | 第1行: | ||
− | <includeonly><!-- 定义这个条目的实际类型 -->{{#vardefine:frmclass|{{#switch: {{{class|{{{3}}}}}} | + | <includeonly><!-- 是否归类开关 -->{{#vardefine:categorize|{{#switch: {{{categorize|{{{5|1}}}}}} |
+ | | true = 1 | ||
+ | | yes = 1 | ||
+ | | 1 = 1 | ||
+ | | y = 1 | ||
+ | | false = 0 | ||
+ | | no = 0 | ||
+ | | 0 = 0 | ||
+ | | n = 0 | ||
+ | | #default = 1}} }}<!-- 定义这个条目的实际类型 -->{{#vardefine:frmclass|{{#switch: {{{class|{{{3}}}}}} | ||
| gender_feature = Feature | | gender_feature = Feature | ||
| race_feature = Feature | | race_feature = Feature | ||
第67行: | 第76行: | ||
|- | |- | ||
|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: {{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:categorize}}|1|{{#ifeq: {{FULLPAGENAME}}|{{ucfirst:{{#var:frmclass}}}}:{{ucfirst:{{{name|{{{2}}}}}}}}|{{#replaceset:{{{type|{{{4|缺少类型信息}}}}}}|/(\S+)/i=[[category:\1]]|}}|}}|}} |
|- | |- | ||
{{{content|{{{1}}}}}} | {{{content|{{{1}}}}}} | ||
第84行: | 第93行: | ||
*2或name: 这个条目的名称 | *2或name: 这个条目的名称 | ||
*3或class: 这个条目的类, 这会决定用什么图标和颜色来渲染这个条目(详见class的说明清单) | *3或class: 这个条目的类, 这会决定用什么图标和颜色来渲染这个条目(详见class的说明清单) | ||
− | *4或type: 这个条目的类型(用作category), 可以填写多个(用空格分隔), 模板会自动将之展开赋予category属性. 根据不同条目, 类型也是不同的. 详见[[能力:概述#类型|能力类型]], [[状态:概述#类型|状态类型]], [[物品:军械#类型|军械类型]]. | + | *4或type: 这个条目的类型(用作category), 可以填写多个(用空格分隔), 模板会自动将之展开赋予category属性. 根据不同条目, 类型也是不同的. 详见[[特征:概述#类型|特征类型]], [[能力:概述#类型|能力类型]], [[状态:概述#类型|状态类型]], [[物品:军械#类型|军械类型]], [[环境:概述#类型|环境类型]]. |
+ | *5或categorize: 这个条目是否要进行自动归类, 默认为是. 为1, y, yes, true时会进行归类, 为0, n, no, false时不会归类. | ||
{| width=500 class="collapsible collapsed wikitable" | {| width=500 class="collapsible collapsed wikitable" | ||
|- | |- |