模板:CharacterBox:修订间差异
外观
LocalAdmin(留言 | 贡献) Create CharacterBox infobox template with TemplateData |
LocalAdmin(留言 | 贡献) Rewrite: use Lua module via #invoke for clean conditional rows |
||
| (未显示同一用户的1个中间版本) | |||
| 第1行: | 第1行: | ||
<noinclude> | <noinclude> | ||
人物信息框模板。在角色词条页面顶部使用。所有参数均为可选,留空的行不显示。 | |||
用法示例: | |||
<pre> | |||
{{CharacterBox | |||
| name = 唐浩 | |||
| image = 唐浩.jpg | |||
| aliases = 张寒、魂天帝 | |||
| location = 不定 | |||
| faction = 万兽门 | |||
| identity = 客卿 | |||
| age = 34岁 | |||
| race = 人族 | |||
| cultivation = 半步元婴 | |||
| aptitude = 中品无属性灵根 | |||
| skills = 灵血神通 | |||
}} | |||
</pre> | |||
<templatedata> | <templatedata> | ||
| 第76行: | 第93行: | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude><includeonly> | </noinclude><includeonly>{{#invoke:Infobox|character}}</includeonly> | ||
2026年3月12日 (四) 11:49的最新版本
人物信息框模板。在角色词条页面顶部使用。所有参数均为可选,留空的行不显示。
用法示例:
{{CharacterBox
| name = 唐浩
| image = 唐浩.jpg
| aliases = 张寒、魂天帝
| location = 不定
| faction = 万兽门
| identity = 客卿
| age = 34岁
| race = 人族
| cultivation = 半步元婴
| aptitude = 中品无属性灵根
| skills = 灵血神通
}}
<templatedata> {
"description": "角色/人物信息卡片",
"params": {
"name": {
"label": "名称",
"description": "角色名称,留空则自动使用页面标题",
"type": "string",
"suggested": true
},
"image": {
"label": "图片",
"description": "图片文件名,例如:唐浩.jpg",
"type": "wiki-file-name",
"suggested": true
},
"aliases": {
"label": "别称",
"description": "其他名字或绰号",
"type": "string"
},
"location": {
"label": "所处地",
"description": "角色所在的地点或区域",
"type": "string",
"suggested": true
},
"faction": {
"label": "所属势力",
"description": "门派、家族或阵营",
"type": "string",
"suggested": true
},
"identity": {
"label": "身份",
"description": "职务、称号或身份",
"type": "string",
"suggested": true
},
"position": {
"label": "职位",
"description": "具体职位或官职",
"type": "string"
},
"age": {
"label": "年龄",
"description": "角色年龄",
"type": "string"
},
"race": {
"label": "种族",
"description": "人族、妖族、异火等",
"type": "string",
"suggested": true
},
"cultivation": {
"label": "修为",
"description": "修炼境界,例如:金丹期、元婴期",
"type": "string"
},
"aptitude": {
"label": "资质",
"description": "灵根资质",
"type": "string"
},
"skills": {
"label": "技能",
"description": "主要技能、神通或法宝",
"type": "string"
}
},
"paramOrder": ["name","image","aliases","location","faction","identity","position","age","race","cultivation","aptitude","skills"]
} </templatedata>