模板:CardFeature
出自Meshal Lite
(修订版本间的差异)
第49行: | 第49行: | ||
<div class="contributor">本内容由 {{#ifeq:{{{contributor|}}}||[[Meshal Design Team]]|{{{contributor|}}}}} 贡献{{#ifeq:{{{illustrator|}}}|||{{#ifeq:{{{contributor|}}}|||<nowiki> / </nowiki>}}插图由 {{{illustrator|}}} 贡献}}</div> | <div class="contributor">本内容由 {{#ifeq:{{{contributor|}}}||[[Meshal Design Team]]|{{{contributor|}}}}} 贡献{{#ifeq:{{{illustrator|}}}|||{{#ifeq:{{{contributor|}}}|||<nowiki> / </nowiki>}}插图由 {{{illustrator|}}} 贡献}}</div> | ||
<!--添加子页面入口--><div class="portalDiv">{{#ifeq: {{{fullpagename|}}}|{{FULLPAGENAME}}|{{#ifingroup:sysop| | <!--添加子页面入口--><div class="portalDiv">{{#ifeq: {{{fullpagename|}}}|{{FULLPAGENAME}}|{{#ifingroup:sysop| | ||
− | <span class="editEntrance"> | + | <span class="editEntrance">» 创建子页面<inputbox> |
type=create | type=create | ||
width=24 | width=24 |
在2019年3月30日 (六) 14:14所做的修订版本
使用
{{cardFeature|
|fullpagename={{subst:FULLPAGENAME}}
|name=
|contributor= ~~~
|illustrator=
|img=
|set=
|add= {{{addon|}}}
|class= <species | race | gender | size | form | worship | perception | mobility>
|type=
|subtype= v8
|content=
|mod={{mod|...}}
|desc=
|descalign= <left | right | center>
|adminicle=
}}
|fullpagename={{subst:FULLPAGENAME}}
|name=
|contributor= ~~~
|illustrator=
|img=
|set=
|add= {{{addon|}}}
|class= <species | race | gender | size | form | worship | perception | mobility>
|type=
|subtype= v8
|content=
|mod={{mod|...}}
|desc=
|descalign= <left | right | center>
|adminicle=
}}
fullpagename
这个参数用于校验浏览时是否在本页面还是被其他页面调用。总是应当填写为fullpagename={{subst:FULLPAGENAME}}
name
特征的名称。
contributor
本页的原作者签名。如果为空则不显示作者信息。
- 默认为:
~~~
illustrator
卡片配图的作者,如果为空则不显示作者信息。
- 默认为空。
set
这张卡片所属的世界设定,填写时不用包括“世界设定-”的前缀,模板会自动加上。
- 多个设定用空格分隔,比如
经典 托恩 后土
会使此卡牌同时属于“世界设定-经典”、“世界设定-托恩”和“世界设定-后土”。 - 留空为默认“世界设定-经典”
add
class
特征的类型。 这个参数会决定卡牌左上角的图标。可用参数如下:
- species:种族
- race:亚种
- gender:性别
- size:体型
- form:形态
- worship:信仰
- perception:感知方式
- mobility:移动方式
type
特征的自定义追加类型,会以超链接的方式显示在卡牌的右上角,多个类型用空格分隔。
subtype
特征的附加子类型,多个类型用空格分隔。
- 通常这个参数用于标注版本信息,当前版本下应当恒定填写
subtype=v8
content
特征的具体内容,比如:基本信息、特征影响、天赋能力、扩展信息等。在这个参数中需结合使用cardRow
模板,每个cardRow用来叙述一组信息。
- content参数填写示例|content=
{{cardRow|
'''基本信息'''
*'''[[性别]]''':{{f|男性}}/{{f|女性}}
*'''[[体型]]''':{{f|中型}}
*'''[[形态]]''':{{f|人形}}
----
*'''[[属性]]''':[[敏捷]]+1
*'''[[移速]]''':[[平移]]3、[[攀爬]]2、[[游泳]]1
*'''[[知觉]]''':[[视觉]]200
----
*'''[[天赋]][[能力]]''':{{a|灵魂睡眠}}、{{a|通用语}}、{{a|精灵语}}
*'''[[天生武器]]''':{{i|拳脚}}×2
}}
desc
特征的附加说明文本,显示在卡牌底部。
- 为空时此栏不显示。
descalign
用于控制参数desc中附加说明文本的对齐方式,可用参数:
- left:左对齐(默认)
- center:水平居中
- right:右对齐
adminicle
补充资料说明,这些资料只会在直接访问该卡片时才显示。当其他页面调用该卡片时,这些资料不会显示。
调用时使用
{{#vardefine:callCardSimple|y}}
显示简化卡牌样式当在其他页面引用卡牌时,可以通过在页面中写入{{#vardefine:callCardSimple|y}}
,从而使被引用的卡牌显示为简化样式。