跳转到内容

模板:CharacterBox

来自槌基百科
LocalAdmin留言 | 贡献2026年3月12日 (四) 11:49的版本 (Rewrite: use Lua module via #invoke for clean conditional rows)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

人物信息框模板。在角色词条页面顶部使用。所有参数均为可选,留空的行不显示。

用法示例:

{{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>