打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

模板:角色:修订间差异

来自国漫宇宙
Rockman留言 | 贡献
创建页面,内容为“<includeonly><div class="infobox" style="width:300px; float:right; margin:0 0 20px 20px; border:1px solid #e2e6ec; border-radius:10px; overflow:hidden; box-shadow:0 2px 8px rgba(0,0,0,0.08); font-size:0.9em; line-height:1.6;"> <!-- 角色名标题 --> <div style="background:#1a6fc4; color:#fff; text-align:center; padding:14px 16px; font-size:1.15em; font-weight:700; letter-spacing:0.03em;">{{{名称|{{PAGENAME}}}}}</div> <!-- 角色图片 --> {{#if:{{{图片|…”
 
Rockman留言 | 贡献
 
(未显示同一用户的6个中间版本)
第1行: 第1行:
<includeonly><div class="infobox" style="width:300px; float:right; margin:0 0 20px 20px; border:1px solid #e2e6ec; border-radius:10px; overflow:hidden; box-shadow:0 2px 8px rgba(0,0,0,0.08); font-size:0.9em; line-height:1.6;">
<noinclude>
== 使用方法 ==


<!-- 角色名标题 -->
新建角色词条时,复制以下代码粘贴到编辑框,填写参数后在下方写正文内容。
<div style="background:#1a6fc4; color:#fff; text-align:center; padding:14px 16px; font-size:1.15em; font-weight:700; letter-spacing:0.03em;">{{{名称|{{PAGENAME}}}}}</div>


<!-- 角色图片 -->
'''不填的参数直接留空或删掉该行,不会显示空白行。'''
{{#if:{{{图片|}}}|
<div style="text-align:center; background:#f5f7fa; padding:0;">[[File:{{{图片}}}|300px|{{{名称|{{PAGENAME}}}}}]]</div>
}}


<!-- 基本信息 -->
<pre>
<div style="background:linear-gradient(135deg,#1a6fc4,#155da6); color:#fff; text-align:center; padding:8px 12px; font-weight:600; font-size:0.95em;">基本信息</div>
{{角色
{| style="width:100%; border-collapse:collapse;"
|名称        =
{{#if:{{{罗马音|}}}|
|副标题      = 所属IP · 身份定位
{{!}}-
|图片        = 文件名.png
! style="background:#e8f1fb; color:#1a6fc4; font-weight:600; padding:8px 12px; text-align:right; width:35%; border-bottom:1px solid #eef1f5;" {{!}} 罗马音
|标签1      =
{{!}} style="padding:8px 12px; border-bottom:1px solid #eef1f5;" {{!}} {{{罗马音}}}
|标签2      =
|标签3      =  
|罗马音     =
|别名        =
|所属IP      =
|首次登场    =
|性别        =
|年龄        =
|种族        =
|发色        =
|瞳色        =
|身高        =
|当前境界    =
|最高境界    =
|特殊体质    =
|武魂        =
|异火        =
|代表功法    =
|所属势力    =
|师父        =
|伴侣        =
|家族        =
|配音演员    =  
|更新状态    =  
}}
}}
{{#if:{{{别名|}}}|
{{!}}-
! style="background:#e8f1fb; color:#1a6fc4; font-weight:600; padding:8px 12px; text-align:right; width:35%; border-bottom:1px solid #eef1f5;" {{!}} 别名
{{!}} style="padding:8px 12px; border-bottom:1px solid #eef1f5;" {{!}} {{{别名}}}
}}
{{#if:{{{所属IP|}}}|
{{!}}-
! style="background:#e8f1fb; color:#1a6fc4; font-weight:600; padding:8px 12px; text-align:right; width:35%; border-bottom:1px solid #eef1f5;" {{!}} 所属IP
{{!}} style="padding:8px 12px; border-bottom:1px solid #eef1f5;" {{!}} {{{所属IP}}}
}}
{{#if:{{{首次登场|}}}|
{{!}}-
! style="background:#e8f1fb; color:#1a6fc4; font-weight:600; padding:8px 12px; text-align:right; width:35%; border-bottom:1px solid #eef1f5;" {{!}} 首次登场
{{!}} style="padding:8px 12px; border-bottom:1px solid #eef1f5;" {{!}} {{{首次登场}}}
}}
|}


<!-- 人物设定 -->
引言名言(可选):
<div style="background:linear-gradient(135deg,#1a6fc4,#155da6); color:#fff; text-align:center; padding:8px 12px; font-weight:600; font-size:0.95em;">人物设定</div>
<div class="gmtv-quote">
{| style="width:100%; border-collapse:collapse;"
<div class="gmtv-quote-text">「台词内容」</div>
{{#if:{{{性别|}}}|
<div class="gmtv-quote-source">— 第X集,对某人所说</div>
{{!}}-  
</div>
! style="background:#e8f1fb; color:#1a6fc4; font-weight:600; padding:8px 12px; text-align:right; width:35%; border-bottom:1px solid #eef1f5;" {{!}} 性别
{{!}} style="padding:8px 12px; border-bottom:1px solid #eef1f5;" {{!}} {{{性别}}}
}}
{{#if:{{{年龄|}}}|
{{!}}-
! style="background:#e8f1fb; color:#1a6fc4; font-weight:600; padding:8px 12px; text-align:right; width:35%; border-bottom:1px solid #eef1f5;" {{!}} 年龄
{{!}} style="padding:8px 12px; border-bottom:1px solid #eef1f5;" {{!}} {{{年龄}}}
}}
{{#if:{{{种族|}}}|
{{!}}-
! style="background:#e8f1fb; color:#1a6fc4; font-weight:600; padding:8px 12px; text-align:right; width:35%; border-bottom:1px solid #eef1f5;" {{!}} 种族
{{!}} style="padding:8px 12px; border-bottom:1px solid #eef1f5;" {{!}} {{{种族}}}
}}
{{#if:{{{发色|}}}|
{{!}}-
! style="background:#e8f1fb; color:#1a6fc4; font-weight:600; padding:8px 12px; text-align:right; width:35%; border-bottom:1px solid #eef1f5;" {{!}} 发色
{{!}} style="padding:8px 12px; border-bottom:1px solid #eef1f5;" {{!}} {{{发色}}}
}}
{{#if:{{{瞳色|}}}|
{{!}}-
! style="background:#e8f1fb; color:#1a6fc4; font-weight:600; padding:8px 12px; text-align:right; width:35%; border-bottom:1px solid #eef1f5;" {{!}} 瞳色
{{!}} style="padding:8px 12px; border-bottom:1px solid #eef1f5;" {{!}} {{{瞳色}}}
}}
{{#if:{{{身高|}}}|
{{!}}-
! style="background:#e8f1fb; color:#1a6fc4; font-weight:600; padding:8px 12px; text-align:right; width:35%; border-bottom:1px solid #eef1f5;" {{!}} 身高
{{!}} style="padding:8px 12px; border-bottom:1px solid #eef1f5;" {{!}} {{{身高}}}
}}
|}


<!-- 实力信息 -->
形象与性格卡片:
<div style="background:linear-gradient(135deg,#1a6fc4,#155da6); color:#fff; text-align:center; padding:8px 12px; font-weight:600; font-size:0.95em;">实力信息</div>
<div class="gmtv-card mw-collapsible">
{| style="width:100%; border-collapse:collapse;"
<div class="gmtv-card-head"><span class="gmtv-card-title">形象与性格</span></div>
{{#if:{{{当前境界|}}}|
<div class="gmtv-card-body mw-collapsible-content">
{{!}}-  
内容写在这里
! style="background:#e8f1fb; color:#1a6fc4; font-weight:600; padding:8px 12px; text-align:right; width:35%; border-bottom:1px solid #eef1f5;" {{!}} 当前境界
</div>
{{!}} style="padding:8px 12px; border-bottom:1px solid #eef1f5; color:#e03020; font-weight:700;" {{!}} {{{当前境界}}}
</div>
}}
{{#if:{{{最高境界|}}}|
{{!}}-
! style="background:#e8f1fb; color:#1a6fc4; font-weight:600; padding:8px 12px; text-align:right; width:35%; border-bottom:1px solid #eef1f5;" {{!}} 最高境界
{{!}} style="padding:8px 12px; border-bottom:1px solid #eef1f5; color:#e03020; font-weight:700;" {{!}} {{{最高境界}}}
}}
{{#if:{{{特殊体质|}}}|
{{!}}-
! style="background:#e8f1fb; color:#1a6fc4; font-weight:600; padding:8px 12px; text-align:right; width:35%; border-bottom:1px solid #eef1f5;" {{!}} 特殊体质
{{!}} style="padding:8px 12px; border-bottom:1px solid #eef1f5;" {{!}} {{{特殊体质}}}
}}
{{#if:{{{异火|}}}|
{{!}}-
! style="background:#e8f1fb; color:#1a6fc4; font-weight:600; padding:8px 12px; text-align:right; width:35%; border-bottom:1px solid #eef1f5;" {{!}} 异火
{{!}} style="padding:8px 12px; border-bottom:1px solid #eef1f5;" {{!}} {{{异火}}}
}}
{{#if:{{{武魂|}}}|
{{!}}-
! style="background:#e8f1fb; color:#1a6fc4; font-weight:600; padding:8px 12px; text-align:right; width:35%; border-bottom:1px solid #eef1f5;" {{!}} 武魂
{{!}} style="padding:8px 12px; border-bottom:1px solid #eef1f5;" {{!}} {{{武魂}}}
}}
{{#if:{{{代表功法|}}}|
{{!}}-
! style="background:#e8f1fb; color:#1a6fc4; font-weight:600; padding:8px 12px; text-align:right; width:35%; border-bottom:1px solid #eef1f5;" {{!}} 代表功法
{{!}} style="padding:8px 12px; border-bottom:1px solid #eef1f5;" {{!}} {{{代表功法}}}
}}
|}


<!-- 人际关系 -->
剧情卡片(含剧透,默认折叠):
<div style="background:linear-gradient(135deg,#1a6fc4,#155da6); color:#fff; text-align:center; padding:8px 12px; font-weight:600; font-size:0.95em;">人际关系</div>
<div class="gmtv-card gmtv-card-spoiler mw-collapsible mw-collapsed">
{| style="width:100%; border-collapse:collapse;"
<div class="gmtv-card-head"><span class="gmtv-card-title">剧情与生平</span></div>
{{#if:{{{所属势力|}}}|
<div class="gmtv-card-body mw-collapsible-content">
{{!}}-  
内容写在这里
! style="background:#e8f1fb; color:#1a6fc4; font-weight:600; padding:8px 12px; text-align:right; width:35%; border-bottom:1px solid #eef1f5;" {{!}} 所属势力
</div>
{{!}} style="padding:8px 12px; border-bottom:1px solid #eef1f5;" {{!}} {{{所属势力}}}
</div>
}}
{{#if:{{{师父|}}}|
{{!}}-  
! style="background:#e8f1fb; color:#1a6fc4; font-weight:600; padding:8px 12px; text-align:right; width:35%; border-bottom:1px solid #eef1f5;" {{!}} 师父
{{!}} style="padding:8px 12px; border-bottom:1px solid #eef1f5;" {{!}} {{{师父}}}
}}
{{#if:{{{伴侣|}}}|
{{!}}-  
! style="background:#e8f1fb; color:#1a6fc4; font-weight:600; padding:8px 12px; text-align:right; width:35%; border-bottom:1px solid #eef1f5;" {{!}} 伴侣
{{!}} style="padding:8px 12px; border-bottom:1px solid #eef1f5;" {{!}} {{{伴侣}}}
}}
{{#if:{{{家族|}}}|
{{!}}-
! style="background:#e8f1fb; color:#1a6fc4; font-weight:600; padding:8px 12px; text-align:right; width:35%; border-bottom:1px solid #eef1f5;" {{!}} 家族
{{!}} style="padding:8px 12px; border-bottom:1px solid #eef1f5;" {{!}} {{{家族}}}
}}
|}


<!-- 动漫信息 -->
表格卡片(战绩/技能/装备):
<div style="background:linear-gradient(135deg,#1a6fc4,#155da6); color:#fff; text-align:center; padding:8px 12px; font-weight:600; font-size:0.95em;">动漫信息</div>
<div class="gmtv-card mw-collapsible">
{| style="width:100%; border-collapse:collapse;"
<div class="gmtv-card-head"><span class="gmtv-card-title">战绩记录</span></div>
{{#if:{{{配音演员|}}}|
<div class="gmtv-card-body-table mw-collapsible-content">
{{!}}-  
{| class="gmtv-table wikitable"
! style="background:#e8f1fb; color:#1a6fc4; font-weight:600; padding:8px 12px; text-align:right; width:35%; border-bottom:1px solid #eef1f5;" {{!}} 配音演员
! 对手 !! 结果 !! 集数
{{!}} style="padding:8px 12px; border-bottom:1px solid #eef1f5;" {{!}} {{{配音演员}}}
|-
}}
| 对手名 || <span class="gmtv-badge-win">胜</span> || 第X集
{{#if:{{{更新状态|}}}|
{{!}}-
! style="background:#e8f1fb; color:#1a6fc4; font-weight:600; padding:8px 12px; text-align:right; width:35%; border-bottom:1px solid #eef1f5;" {{!}} 更新状态
{{!}} style="padding:8px 12px; border-bottom:1px solid #eef1f5;" {{!}} {{{更新状态}}}
}}
|}
|}
</div>
</div>


</div></includeonly><noinclude>
人物关系卡片:
== 角色Infobox模板使用说明 ==
<div class="gmtv-card mw-collapsible">
<div class="gmtv-card-head"><span class="gmtv-card-title">人物关系</span></div>
<div class="gmtv-card-body mw-collapsible-content">
<div class="gmtv-rel-grid">
<div class="gmtv-rel-card"><div class="gmtv-rel-avatar">👤</div><div class="gmtv-rel-name">[[角色名]]</div><div class="gmtv-rel-type">关系类型</div></div>
</div>
</div>
</div>


这是国漫TV的角色信息框模板。在角色词条中使用以下代码调用:
底部Navbox:
<div class="gmtv-navbox">
<div class="gmtv-navbox-title">[[所属IP]] · 相关词条</div>
<div class="gmtv-navbox-row"><span class="gmtv-navbox-group">主要角色</span><span class="gmtv-navbox-links">[[角色1]] · [[角色2]]</span></div>
</div>


<pre>
[[Category:角色]]
{{角色
[[Category:所属IP角色]]
|名称=
|图片=
|罗马音=
|别名=
|所属IP=
|首次登场=
|性别=
|年龄=
|种族=
|发色=
|瞳色=
|身高=
|当前境界=
|最高境界=
|特殊体质=
|异火=
|武魂=
|代表功法=
|所属势力=
|师父=
|伴侣=
|家族=
|配音演员=
|更新状态=
}}
</pre>
</pre>


所有字段均为可选,留空则不显示该行。
[[Category:模板]]
</noinclude><includeonly><templatestyles src="Template:角色/styles.css"/>
<div class="gmtv-character">


[[Category:模板]]
<div class="gmtv-hero">
</noinclude>
<div class="gmtv-hero-avatar">{{#if:{{{图片|}}}|[[文件:{{{图片}}}|72px|{{{名称|}}}]]|⚔️}}</div>
<div class="gmtv-hero-info">
<div class="gmtv-hero-name">{{{名称|}}}</div>
<div class="gmtv-hero-sub">{{{副标题|}}}</div>
<div class="gmtv-hero-tags">{{#if:{{{标签1|}}}|<span class="gmtv-hero-tag">{{{标签1}}}</span>}}{{#if:{{{标签2|}}}|<span class="gmtv-hero-tag">{{{标签2}}}</span>}}{{#if:{{{标签3|}}}|<span class="gmtv-hero-tag">{{{标签3}}}</span>}}</div>
</div>
</div>
 
<div class="gmtv-body">
<div class="gmtv-sidebar">
<div class="gmtv-infobox">
<div class="gmtv-infobox-head">{{#if:{{{名称|}}}|{{{名称}}} · 基本信息|基本信息}}</div>
{{#if:{{{图片|}}}|<div class="gmtv-infobox-img">[[文件:{{{图片}}}|260px|{{{名称|}}}]]</div>|<div class="gmtv-infobox-img-placeholder">⚔️</div>}}
<div class="gmtv-infobox-group">基本信息</div>
{{#if:{{{罗马音|}}}|<div class="gmtv-infobox-row"><span class="gmtv-infobox-key">罗马音</span><span class="gmtv-infobox-val">{{{罗马音}}}</span></div>}}
{{#if:{{{别名|}}}|<div class="gmtv-infobox-row"><span class="gmtv-infobox-key">别名</span><span class="gmtv-infobox-val">{{{别名}}}</span></div>}}
{{#if:{{{所属IP|}}}|<div class="gmtv-infobox-row"><span class="gmtv-infobox-key">所属IP</span><span class="gmtv-infobox-val">{{{所属IP}}}</span></div>}}
{{#if:{{{首次登场|}}}|<div class="gmtv-infobox-row"><span class="gmtv-infobox-key">首次登场</span><span class="gmtv-infobox-val">{{{首次登场}}}</span></div>}}
<div class="gmtv-infobox-group">人物设定</div>
{{#if:{{{性别|}}}|<div class="gmtv-infobox-row"><span class="gmtv-infobox-key">性别</span><span class="gmtv-infobox-val">{{{性别}}}</span></div>}}
{{#if:{{{年龄|}}}|<div class="gmtv-infobox-row"><span class="gmtv-infobox-key">年龄</span><span class="gmtv-infobox-val">{{{年龄}}}</span></div>}}
{{#if:{{{种族|}}}|<div class="gmtv-infobox-row"><span class="gmtv-infobox-key">种族</span><span class="gmtv-infobox-val">{{{种族}}}</span></div>}}
{{#if:{{{发色|}}}|<div class="gmtv-infobox-row"><span class="gmtv-infobox-key">发色</span><span class="gmtv-infobox-val">{{{发色}}}</span></div>}}
{{#if:{{{瞳色|}}}|<div class="gmtv-infobox-row"><span class="gmtv-infobox-key">瞳色</span><span class="gmtv-infobox-val">{{{瞳色}}}</span></div>}}
{{#if:{{{身高|}}}|<div class="gmtv-infobox-row"><span class="gmtv-infobox-key">身高</span><span class="gmtv-infobox-val">{{{身高}}}</span></div>}}
<div class="gmtv-infobox-group">实力信息</div>
{{#if:{{{当前境界|}}}|<div class="gmtv-infobox-row"><span class="gmtv-infobox-key">当前境界</span><span class="gmtv-infobox-val">{{{当前境界}}}</span></div>}}
{{#if:{{{最高境界|}}}|<div class="gmtv-infobox-row"><span class="gmtv-infobox-key">最高境界</span><span class="gmtv-infobox-val">{{{最高境界}}}</span></div>}}
{{#if:{{{特殊体质|}}}|<div class="gmtv-infobox-row"><span class="gmtv-infobox-key">特殊体质</span><span class="gmtv-infobox-val">{{{特殊体质}}}</span></div>}}
{{#if:{{{武魂|}}}|<div class="gmtv-infobox-row"><span class="gmtv-infobox-key">武魂</span><span class="gmtv-infobox-val">{{{武魂}}}</span></div>}}
{{#if:{{{异火|}}}|<div class="gmtv-infobox-row"><span class="gmtv-infobox-key">异火</span><span class="gmtv-infobox-val">{{{异火}}}</span></div>}}
{{#if:{{{代表功法|}}}|<div class="gmtv-infobox-row"><span class="gmtv-infobox-key">代表功法</span><span class="gmtv-infobox-val">{{{代表功法}}}</span></div>}}
<div class="gmtv-infobox-group">人际关系</div>
{{#if:{{{所属势力|}}}|<div class="gmtv-infobox-row"><span class="gmtv-infobox-key">所属势力</span><span class="gmtv-infobox-val">{{{所属势力}}}</span></div>}}
{{#if:{{{师父|}}}|<div class="gmtv-infobox-row"><span class="gmtv-infobox-key">师父</span><span class="gmtv-infobox-val">{{{师父}}}</span></div>}}
{{#if:{{{伴侣|}}}|<div class="gmtv-infobox-row"><span class="gmtv-infobox-key">伴侣</span><span class="gmtv-infobox-val">{{{伴侣}}}</span></div>}}
{{#if:{{{家族|}}}|<div class="gmtv-infobox-row"><span class="gmtv-infobox-key">家族</span><span class="gmtv-infobox-val">{{{家族}}}</span></div>}}
<div class="gmtv-infobox-group">动漫信息</div>
{{#if:{{{配音演员|}}}|<div class="gmtv-infobox-row"><span class="gmtv-infobox-key">配音演员</span><span class="gmtv-infobox-val">{{{配音演员}}}</span></div>}}
{{#if:{{{更新状态|}}}|<div class="gmtv-infobox-row"><span class="gmtv-infobox-key">更新状态</span><span class="gmtv-infobox-val">{{{更新状态}}}</span></div>}}
</div>
</div>
 
<div class="gmtv-main">
{{#if:{{{内容|}}}|{{{内容}}}}}
</div>
 
</div>
</div>
</includeonly>

2026年6月3日 (三) 22:12的最新版本

使用方法

新建角色词条时,复制以下代码粘贴到编辑框,填写参数后在下方写正文内容。

不填的参数直接留空或删掉该行,不会显示空白行。

{{角色
|名称        = 
|副标题      = 所属IP · 身份定位
|图片        = 文件名.png
|标签1       = 
|标签2       = 
|标签3       = 
|罗马音      = 
|别名        = 
|所属IP      = 
|首次登场    = 
|性别        = 
|年龄        = 
|种族        = 
|发色        = 
|瞳色        = 
|身高        = 
|当前境界    = 
|最高境界    = 
|特殊体质    = 
|武魂        = 
|异火        = 
|代表功法    = 
|所属势力    = 
|师父        = 
|伴侣        = 
|家族        = 
|配音演员    = 
|更新状态    = 
}}

引言名言(可选):
<div class="gmtv-quote">
<div class="gmtv-quote-text">「台词内容」</div>
<div class="gmtv-quote-source">— 第X集,对某人所说</div>
</div>

形象与性格卡片:
<div class="gmtv-card mw-collapsible">
<div class="gmtv-card-head"><span class="gmtv-card-title">形象与性格</span></div>
<div class="gmtv-card-body mw-collapsible-content">
内容写在这里
</div>
</div>

剧情卡片(含剧透,默认折叠):
<div class="gmtv-card gmtv-card-spoiler mw-collapsible mw-collapsed">
<div class="gmtv-card-head"><span class="gmtv-card-title">剧情与生平</span></div>
<div class="gmtv-card-body mw-collapsible-content">
内容写在这里
</div>
</div>

表格卡片(战绩/技能/装备):
<div class="gmtv-card mw-collapsible">
<div class="gmtv-card-head"><span class="gmtv-card-title">战绩记录</span></div>
<div class="gmtv-card-body-table mw-collapsible-content">
{| class="gmtv-table wikitable"
! 对手 !! 结果 !! 集数
|-
| 对手名 || <span class="gmtv-badge-win">胜</span> || 第X集
|}
</div>
</div>

人物关系卡片:
<div class="gmtv-card mw-collapsible">
<div class="gmtv-card-head"><span class="gmtv-card-title">人物关系</span></div>
<div class="gmtv-card-body mw-collapsible-content">
<div class="gmtv-rel-grid">
<div class="gmtv-rel-card"><div class="gmtv-rel-avatar">👤</div><div class="gmtv-rel-name">[[角色名]]</div><div class="gmtv-rel-type">关系类型</div></div>
</div>
</div>
</div>

底部Navbox:
<div class="gmtv-navbox">
<div class="gmtv-navbox-title">[[所属IP]] · 相关词条</div>
<div class="gmtv-navbox-row"><span class="gmtv-navbox-group">主要角色</span><span class="gmtv-navbox-links">[[角色1]] · [[角色2]]</span></div>
</div>

[[Category:角色]]
[[Category:所属IP角色]]