个人工具

模板:Frm

出自Meshal Lite

跳转到: 导航, 搜索
第1行: 第1行:
<includeonly><!-- 是否归类开关 -->{{#vardefine:categorize|{{#switch: {{{categorize|{{{5|1}}}}}}
+
<includeonly><!-- 是否归类开关 -->{{#vardefine:subpage|{{#switch: {{{subpage|{{{5|0}}}}}}
 
| true = 1
 
| true = 1
 
| yes = 1
 
| yes = 1
第8行: 第8行:
 
| 0 = 0
 
| 0 = 0
 
| n = 0
 
| n = 0
| #default = 1}} }}<!-- 定义这个条目的实际类型 -->{{#vardefine:frmclass|{{#switch: {{{class|{{{3}}}}}}
+
| #default = 0}} }}<!-- 定义这个条目的实际类型 -->{{#vardefine:frmclass|{{#switch: {{{class|{{{3}}}}}}
 
| gender_feature = Feature
 
| gender_feature = Feature
 
| race_feature = Feature
 
| race_feature = Feature
第73行: 第73行:
 
| #default = ability }} }}<!-- 正式输出frm表格框架 -->{|width= {{#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: {{FULLPAGENAME}}|{{ucfirst:{{#var:frmclass}}}}:{{ucfirst:{{{name|{{{2}}}}}}}}||off}}"
 
| #default = ability }} }}<!-- 正式输出frm表格框架 -->{|width= {{#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: {{FULLPAGENAME}}|{{ucfirst:{{#var:frmclass}}}}:{{ucfirst:{{{name|{{{2}}}}}}}}||off}}"
 
|-
 
|-
! colspan=2 style="font-weight: bold; border-style: none none dotted none; background: #{{#var:frmcolor}}; caption-side:left; text-align: left;"|{{img|ico_{{#var:frmico}}.gif}}[[{{#var:frmclass}}:{{{name|{{{2}}}}}}|{{{name|{{{2}}}}}}]]
+
! colspan=2 style="font-weight: bold; border-style: none none dotted 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}}}}}}]]
 
|-
 
|-
 
|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:categorize}}|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:subpage}}|0|{{#ifeq: {{FULLPAGENAME}}|{{ucfirst:{{#var:frmclass}}}}:{{ucfirst:{{{name|{{{2}}}}}}}}|{{#replaceset:{{{type|{{{4|缺少类型信息}}}}}}|/(\S+)/i=[[category:\1]]|}}|}}|}}
 
|-
 
|-
 
{{{content|{{{1}}}}}}
 
{{{content|{{{1}}}}}}

在2012年1月11日 (三) 15:00所做的修订版本