|
|
第1行: |
第1行: |
− | <includeonly><!-- 是否归类开关 -->{{#vardefine:subpage|{{#switch: {{{subpage|{{{5|0}}}}}} | + | <includeonly><!-- 定义这个条目的实际类型 -->{{#vardefine:frmclass|{{#switch: {{{class|{{{3}}}}}} |
− | | true = 1
| + | |
− | | yes = 1
| + | |
− | | 1 = 1
| + | |
− | | y = 1
| + | |
− | | false = 0
| + | |
− | | no = 0
| + | |
− | | 0 = 0
| + | |
− | | n = 0
| + | |
− | | #default = 0}} }}<!-- 定义这个条目的实际类型 -->{{#vardefine:frmclass|{{#switch: {{{class|{{{3}}}}}}
| + | |
− | | gender_feature = Feature
| + | |
− | | race_feature = Feature
| + | |
− | | size_feature = Feature
| + | |
− | | form_feature = Feature
| + | |
− | | class_feature = Feature
| + | |
− | | worship_feature = Feature
| + | |
| | ability = Ability | | | ability = Ability |
− | | talent_ability = Ability | + | | inborn_ability = Ability |
| | passive_ability = Ability | | | passive_ability = Ability |
− | | magic_ability = Ability
| |
− | | path = Path
| |
− | | feature_path = Path
| |
| | buff = Buff | | | buff = Buff |
| | enforced_buff = Buff | | | enforced_buff = Buff |
第28行: |
第10行: |
| | armor_item = Item | | | armor_item = Item |
| | ammo_item = Item | | | ammo_item = Item |
− | | craft_item = Item | + | | default {{{class|{{{3}}}}}} }} }}<!-- 定义这个条目的类型颜色 -->{{#vardefine:frmcolor|{{#switch: {{{class|{{{3}}}}}} |
− | | environment = Environment
| + | |
− | | magic_environment = Environment
| + | |
− | | creature = Creature
| + | |
− | | char = Char
| + | |
− | | player = 用户
| + | |
− | | year = History
| + | |
− | | #default = {{{class|{{{3}}}}}} }} }}<!-- 定义这个条目的类型颜色 -->{{#vardefine:frmcolor|{{#switch: {{{class|{{{3}}}}}}
| + | |
− | | gender_feature = FEDBF4
| + | |
− | | race_feature = FED5E0
| + | |
− | | size_feature = F0DDFE
| + | |
− | | form_feature = F4D8FE
| + | |
− | | class_feature = E8DFFE
| + | |
− | | worship_feature = FED9D9
| + | |
| | ability = FFE39D | | | ability = FFE39D |
− | | talent_ability = FFD279 | + | | inborn_ability = FFD279 |
| | passive_ability = FFEACA | | | passive_ability = FFEACA |
− | | magic_ability = ffe1ce
| |
− | | path = f5bbb4
| |
− | | feature_path = e2a59d
| |
| | buff = C2E6FF | | | buff = C2E6FF |
| | enforced_buff = D2F6FF | | | enforced_buff = D2F6FF |
第55行: |
第21行: |
| | armor_item = D0EDBC | | | armor_item = D0EDBC |
| | ammo_item = E7EDC2 | | | ammo_item = E7EDC2 |
− | | craft_item = b2e4da
| |
− | | environment = a0d4f5
| |
− | | magic_environment = a0bef5
| |
− | | creature = e0ccaa
| |
− | | char = d4e0aa
| |
− | | player = d4e0aa
| |
− | | year = daad95
| |
| | default F2F2F2 }} }}<!-- 定义这个条目的图标 -->{{#vardefine:frmico|{{#switch: {{{class|{{{3}}}}}} | | | default F2F2F2 }} }}<!-- 定义这个条目的图标 -->{{#vardefine:frmico|{{#switch: {{{class|{{{3}}}}}} |
− | | gender_feature = gender
| |
− | | race_feature = race
| |
− | | size_feature = feature
| |
− | | form_feature = feature
| |
− | | class_feature = class
| |
− | | worship_feature = worship
| |
| | ability = ability | | | ability = ability |
− | | talent_ability = talent | + | | inborn_ability = ability |
| | passive_ability = ability | | | passive_ability = ability |
− | | magic_ability = magic
| |
− | | path = path
| |
− | | feature_path = path
| |
| | buff = buff | | | buff = buff |
| | enforced_buff = buff | | | enforced_buff = buff |
第82行: |
第32行: |
| | armor_item = armor | | | armor_item = armor |
| | ammo_item = ammo | | | ammo_item = ammo |
− | | craft_item = craft | + | | default ability }} }}<!-- 正式输出frm表格框架 -->{|width= {{#ifeq: {{FULLPAGENAME}}|{{#var:frmclass}}:{{{name|{{{2}}}}}}|480px|100%}} padding=0 spacing=0 style="background: transparent; border: 1px #aaa solid; text-align: left;" class="collapsible {{#ifeq: {{FULLPAGENAME}}|{{#var:frmclass}}:{{{name|{{{2}}}}}}||off}}" |
− | | environment = environment
| + | |
− | | magic_environment = environment
| + | |
− | | creature = creature
| + | |
− | | char = feature
| + | |
− | | player = feature
| + | |
− | | year = history
| + | |
− | | #default = ability }} }}<!-- 定义快速输入的入口 -->{{#vardefine:addsubpage|{{groupshow|sysop|
| + | |
− | {{kl|子页面|<inputbox>
| + | |
− | type=create
| + | |
− | width=24
| + | |
− | inline=true
| + | |
− | break=no
| + | |
− | placeholder=子页面名
| + | |
− | prefix={{FULLPAGENAME}}/
| + | |
− | preload=template:create_subpage
| + | |
− | buttonlabel=创建
| + | |
− | </inputbox>测试}}}}}}<!-- 正式输出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: 1px gray; 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}}}}}}]]|[[{{{name|{{{2}}}}}}|{{#explode: {{{name|{{{2}}}}}}|/|-1}}]] }}{{{add|{{{7|}}}}}}<div class="tabModifyLink">{{#ifeq: {{{edit|{{{8|0}}}}}}|1|[[{{fullurl:{{ucfirst:{{#var:frmclass}}}}:{{ucfirst:{{{name|{{{2}}}}}}}}|action=edit}} 修改]]|{{groupshow|sysop|[[{{fullurl:{{ucfirst:{{#var:frmclass}}}}:{{ucfirst:{{{name|{{{2}}}}}}}}|action=edit}} 修改]]}}}}</div> | + | ! 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}}}}}}]] |
| |- | | |- |
− | {{#ifeq: {{#var:subpage}}|1|{{#ifeq: {{FULLPAGENAME}}|{{ucfirst:{{{name|{{{2}}}}}}}}|{{#var:addsubpage}}|}}|{{#ifeq: {{FULLPAGENAME}}|{{ucfirst:{{#var:frmclass}}}}:{{ucfirst:{{{name|{{{2}}}}}}}}|{{#var:addsubpage}}|}}}}
| + | |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;"|{{{type|{{{4|缺少类型信息}}}}}}{{#ifeq: {{FULLPAGENAME}}|{{#var:frmclass}}:{{{name|{{{2}}}}}}|{{#replaceset:{{{type|{{{4|缺少类型信息}}}}}}|/(\S+)/i=[[category:\1]]|}}|}} |
| |- | | |- |
− | {{kl|基本|
| |
− | :'''[[{{#var:frmclass}}_type|类型]]''': {{#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:{{{subtype|{{{6|}}}}}}|/(\S+)/i=[[category:\1]]|}}|}}|}}{{#ifeq: {{{info|{{{9|}}}}}}|||
| |
− | {{{info|{{{9|}}}}}} }}
| |
− | }}
| |
| {{{content|{{{1}}}}}} | | {{{content|{{{1}}}}}} |
| |} | | |} |
第114行: |
第44行: |
| == 模版说明 == | | == 模版说明 == |
| {{!}} | | {{!}} |
− | 这个模版用来生成一个能够智能折叠的内容条目. Frm框架具备以下特点:
| + | 这个模版用来生成一个能够智能折叠的量化记录. Frm框架具备以下特点: |
| #在模板中使用, 如果该模板被外部调用, Frm框架将在被引用时自动折叠显示. 但在单独浏览模板时, Frm框架是展开的. | | #在模板中使用, 如果该模板被外部调用, Frm框架将在被引用时自动折叠显示. 但在单独浏览模板时, Frm框架是展开的. |
− | #可以很容易地嵌套子框架{{tpl|row}}, {{tpl|line}}和{{tpl|desc}}, 产生更丰富的表格应用. | + | #可以很容易地嵌套子框架{{tpl|row}}和{{tpl|desc}}, 产生更丰富的表格应用. |
| | | |
| === 参数 === | | === 参数 === |
| {{!}} | | {{!}} |
| 这些参数名需要注意大小写: | | 这些参数名需要注意大小写: |
− | *1或content: 可以用来搭载子框架{{tpl|row}}, {{tpl|line}}和{{tpl|desc}}, 添加更多的行. | + | *1或content: 可以用来搭载子框架{{tpl|row}}和{{tpl|desc}}, 添加更多的行. |
− | *2或name: 这个条目的名称. 如果是子页面, 那么name需要包含父页面的全程(名字空间:父页面名称/子页面名称) | + | *2或name: 这个条目的名称 |
| *3或class: 这个条目的类, 这会决定用什么图标和颜色来渲染这个条目(详见class的说明清单) | | *3或class: 这个条目的类, 这会决定用什么图标和颜色来渲染这个条目(详见class的说明清单) |
− | *4或type: 这个条目的类型(用作category), 可以填写多个(用空格分隔), 模板会自动将之展开赋予category属性. 根据不同条目, 类型也是不同的. 详见[[特征:概述#类型|特征类型]], [[能力:概述#类型|能力类型]], [[状态:概述#类型|状态类型]], [[物品:军械#类型|军械类型]], [[环境:概述#类型|环境类型]]. | + | *4或type: 这个条目的类型(用作category), 可以填写多个(用空格分隔), 模板会自动将之展开赋予category属性. 根据不同条目, 类型也是不同的. 详见[[能力:概述#类型|能力类型]], [[状态:概述#类型|状态类型]], [[物品:军械#类型|军械类型]]. |
− | *5或subpage: 这个条目是否是子页面. 为1, y, yes, true表示是子页面, 为0, n, no, false时不是子页面. 默认为"0". 作为子页面时, 不会对该条目进行归类.
| + | {| width=400 class="collapsible collapsed wikitable" |
− | *6或subtype: 如果要添加子分类(而不显示在类型行中), 可以在这里填写. 允许多个(用空格分隔).
| + | |
− | *7或add: 可以在标题处添加更多定制信息.
| + | |
− | *8或edit: 控制在右上角显示编辑此页连接.
| + | |
− | *9或info: 可在基本信息处添加更多定制信息.
| + | |
− | {| width=500 class="collapsible collapsed wikitable" | + | |
| |- | | |- |
| !colspan=3|class的说明清单 | | !colspan=3|class的说明清单 |
| |- | | |- |
− | !class变量 | + | !class变量!!对应含义!!注释 |
− | !width=120|对应含义 | + | |
− | !注释 | + | |
| |- | | |- |
− | |gender_feature
| + | |bgcolor=#FFE39D|ability||能力|| |
− | |bgcolor=#FEDBF4|{{img|ico_gender.gif}} 性别|| | + | |
| |- | | |- |
− | |race_feature
| + | |bgcolor=#FFD279|inborn_ability||天赋能力||天赋能力总是覆盖被动能力类型 |
− | |bgcolor=#FED5E0|{{img|ico_race.gif}} 种族|| | + | |
| |- | | |- |
− | |size_feature
| + | |bgcolor=#FFEACA|passive_ability||被动能力|| |
− | |bgcolor=#F0DDFE|{{img|ico_feature.gif}} 体型|| | + | |
| |- | | |- |
− | |form_feature
| + | |bgcolor=#C2E6FF|buff||状态|| |
− | |bgcolor=#F4D8FE|{{img|ico_feature.gif}} 形态|| | + | |
| |- | | |- |
− | |class_feature
| + | |bgcolor=#D2F6FF|enforced_buff||强制状态|| |
− | |bgcolor=#E8DFFE|{{img|ico_class.gif}} 职业|| | + | |
| |- | | |- |
− | |worship_feature
| + | |bgcolor=#DAEDE2|item||物品|| |
− | |bgcolor=#FED9D9|{{img|ico_worship.gif}} 信仰|| | + | |
| |- | | |- |
− | |ability
| + | |bgcolor=#C9EDCC|weapon_item||武器|| |
− | |bgcolor=#FFE39D|{{img|ico_ability.gif}} 能力||默认为主动/非天赋/非魔法能力 | + | |
| |- | | |- |
− | |talent_ability
| + | |bgcolor=#E7EDC2|ammo_item||弹药||弹药总是覆盖武器类型 |
− | |bgcolor=#FFD279|{{img|ico_talent.gif}} 天赋能力||天赋能力总是覆盖被动能力类型 | + | |
| |- | | |- |
− | |passive_ability
| + | |bgcolor=#B4EDC9|shield_item||盾牌||盾牌总是覆盖武器类型 |
− | |bgcolor=#FFEACA|{{img|ico_ability.gif}} 被动能力|| | + | |
| |- | | |- |
− | |magic_ability
| + | |bgcolor=#D0EDBC|armor_item||防具|| |
− | |bgcolor=#ffe1ce|{{img|ico_magic.gif}} 魔法能力||魔法能力总是覆盖其他能力类型 | + | |
− | |-
| + | |
− | |path
| + | |
− | |bgcolor=#f5bbb4|{{img|ico_path.gif}} 道路||
| + | |
− | |-
| + | |
− | |feature_path
| + | |
− | |bgcolor=#e2a59d|{{img|ico_path.gif}} 特征道路||特征道路总是覆盖道路类型
| + | |
− | |-
| + | |
− | |buff
| + | |
− | |bgcolor=#C2E6FF|{{img|ico_buff.gif}} 状态||默认为自主状态
| + | |
− | |-
| + | |
− | |enforced_buff
| + | |
− | |bgcolor=#D2F6FF|{{img|ico_buff.gif}} 强制状态||
| + | |
− | |-
| + | |
− | |item
| + | |
− | |bgcolor=#DAEDE2|{{img|ico_item.gif}} 物品||
| + | |
− | |-
| + | |
− | |weapon_item
| + | |
− | |bgcolor=#C9EDCC|{{img|ico_weapon.gif}} 武器||
| + | |
− | |-
| + | |
− | |ammo_item
| + | |
− | |bgcolor=#E7EDC2|{{img|ico_ammo.gif}} 弹药||弹药总是覆盖武器类型
| + | |
− | |-
| + | |
− | |shield_item
| + | |
− | |bgcolor=#B4EDC9|{{img|ico_shield.gif}} 盾牌||盾牌总是覆盖武器类型
| + | |
− | |-
| + | |
− | |armor_item | + | |
− | |bgcolor=#D0EDBC|{{img|ico_armor.gif}} 防具|| | + | |
− | |-
| + | |
− | |craft_item
| + | |
− | |bgcolor=#b2e4da|{{img|ico_craft.gif}} 创造物||
| + | |
− | |-
| + | |
− | |environment
| + | |
− | |bgcolor=#a0d4f5|{{img|ico_environment.gif}} 环境||
| + | |
− | |-
| + | |
− | |magic_environment
| + | |
− | |bgcolor=#a0bef5|{{img|ico_environment.gif}} 魔法环境||
| + | |
− | |-
| + | |
− | |creature
| + | |
− | |bgcolor=#e0ccaa|{{img|ico_creature.gif}} 生物||
| + | |
− | |-
| + | |
− | |char
| + | |
− | |bgcolor=#d4e0aa|{{img|ico_feature.gif}} 角色||
| + | |
− | |-
| + | |
− | |year
| + | |
− | |bgcolor=#daad95|{{img|ico_history.gif}} 年份||
| + | |
| |} | | |} |
| |} | | |} |
第228行: |
第96行: |
| <nowiki>}}</nowiki> | | <nowiki>}}</nowiki> |
| <nowiki>{{row|其他|</nowiki> | | <nowiki>{{row|其他|</nowiki> |
− | <nowiki>}}</nowiki>
| |
− | <nowiki>{{line|</nowiki>
| |
| <nowiki>}}</nowiki> | | <nowiki>}}</nowiki> |
| <nowiki>{{desc|}}</nowiki></font> | | <nowiki>{{desc|}}</nowiki></font> |
第245行: |
第111行: |
| <nowiki>}}</nowiki> | | <nowiki>}}</nowiki> |
| <nowiki>{{row|其他|</nowiki> | | <nowiki>{{row|其他|</nowiki> |
− | <nowiki>}}</nowiki>
| |
− | <nowiki>{{line|</nowiki>
| |
| <nowiki>}}</nowiki> | | <nowiki>}}</nowiki> |
| <nowiki>{{desc|}}</nowiki></font> | | <nowiki>{{desc|}}</nowiki></font> |