MCBBS Wiki欢迎您共同参与编辑!在参与编辑之前请先阅读Wiki方针

如果在编辑的过程中遇到了什么问题,可以去讨论板提问。

为了您能够无阻碍地参与编辑 未验证/绑定过邮箱的用户,请尽快绑定/验证

MCBBS Wiki GitHub群组已上线!

您可以在回声洞中发表吐槽!

服务器状态监控。点击进入

本站由MCBBS用户自行搭建,与MCBBS及东银河系漫游指南(北京)科技有限公司没有从属关系。点此了解 MCBBS Wiki 不是什么>>

模板:用户信息:修订间差异

来自MCBBS Wiki
跳到导航 跳到搜索
(模板分类)
(fix: 没有上沿)
标签移动版编辑 移动版网页编辑 高级移动版编辑
 
(未显示8个用户的108个中间版本)
第1行: 第1行:
<includeonly>{{#vardefine:pageuid|{{{UID|1}}}}}{{NameSpaceTest|2}}{{#cargo_store:_table=BBSUsers|UserGroup={{AutoUGroupRAW|{{{UserGroupOverride|{{#mcbbscreditvalue:{{{UID|1}}}|grouptext}}}}}}}|UserName={{{UserNameOverride|{{#mcbbscreditvalue:{{{UID|1}}}|nickname}}}}}}}{{信息卡
<includeonly>
|title={{#if:{{{name|}}}|{{{name}}}|{{BASEPAGENAME}}}}{{#if:{{{VerifyType|}}}|&nbsp;{{UserVerify|{{{VerifyType}}}|{{{VerifyInfo}}}}}}}
{| class="infobox" style="font-size:89%; float:right; width:21em; -moz-border-radius: .7em; -webkit-border-radius: .7em; border-radius: .7em;"
|image={{#if:{{{Avatar|}}}|<center>[[File:{{{Avatar|}}}|120px]]</center>}}<!--{{MCBBSAvatar|{{{UID|1}}}}}-->
|-
|bartext=用户信息
! colspan="3" style="background-color: #5E86C1; border:3px solid #5E86C1; padding: 5px; margin: 3px; color: #FFFFFF; font-size:120%; padding:0.5em;" | {{#if:{{{name|}}}|{{{name}}}|{{BASEPAGENAME}}}}
|用户名|{{{UserNameOverride|{{#mcbbscreditvalue:{{{UID|1}}}|nickname}}}}}
|-
|别名|{{{UserAlias|}}}
! colspan="2" | [[File:{{#if:{{{image|}}}|{{{image}}}|{{#if:{{{name|}}}|{{{name}}}.png|{{BASEPAGENAME}}.png}}}}]]
|用户组|{{AutoUGroup|{{{UserGroupOverride|GID{{#mcbbscreditvalue:{{{UID|1}}}|groupid}}}}}|UsergroupCategory={{{UserGroupCatgory|true}}}}}
|-
|管理组|{{{ManagementGroup|}}}
! colspan="2" style="background-color: #5E86C1; border:3px solid #5E86C1; padding: 5px; margin: 3px; color: #FFFFFF; padding:0em;" | 信息
|扩展用户组|{{{UserGroupEx|}}}
|-
|UID|{{{UID|}}}
| style="width:50%" |
|自定义头衔|{{#if:{{用户信息/IsMoreThan8|{{{UserGroupOverride|{{#mcbbscreditvalue:{{{UID|1}}}|grouptext}}}}}}}|{{{Title|}}}}}
| style="width:50%" |
|爱发电账号|{{{Afdian|}}}
|-
|Bilibili账号|{{{Bilibili|}}}
{{#if: {{{RName|}}}|
|出生日期|{{{Birthday|}}}
{{!}} '''真名'''
|其他|{{{Other|}}}
{{!}} colspan="2" {{!}} {{{RName}}} }}
|bartext1={{#ifeq:{{Yesno|{{{Canceled|no}}}}}|yes|该用户已注销}}
|-
|bartitle2={{#if:{{{ForumKLPUID|}}}{{{ForumMBUID|}}}{{{ForumMemorialUID|}}}{{{ForumZWLTUsername|}}}{{{ForumCustomName1|}}}{{{ForumCustomURL1|}}}{{{ForumCustomName2|}}}{{{ForumCustomURL2|}}}{{{ForumCustomName3|}}}{{{ForumCustomURL3|}}}{{{ForumCustomName4|}}}{{{ForumCustomURL4|}}}{{{ForumCustomName5|}}}{{{ForumCustomURL5|}}}{{{ForumCustomName6|}}}{{{ForumCustomURL6|}}}{{{ForumCustomName7|}}}{{{ForumCustomURL7|}}}{{{ForumCustomName8|}}}{{{ForumCustomURL8|}}}{{{ForumCustomName9|}}}{{{ForumCustomURL9|}}}|其他论坛}}
{{#if: {{{Birthday|}}}|
|bartext2={{JoinNullable
{{!}} '''出生日期'''
|{{#if:{{{ForumKLPUID|}}}|[[kuid:{{{ForumKLPUID|}}}|苦力怕]]}}
{{!}} colspan="2" {{!}} {{{Birthday|}}} }}
|{{#if:{{{ForumMBUID|}}}|[https://www.minebbs.com/members/{{{ForumMBUID|}}} MineBBS]}}
|-
|{{#if:{{{ForumMemorialUID|}}}|[https://www.mcbbs.co/home.php?mod=space&uid={{{ForumMemorialUID|}}} 纪念版]}}
{{#if: {{{Nationality|}}}|
|{{#if:{{{ForumZWLTUsername|}}}|[https://forum.mczwlt.net/user/{{{ForumZWLTUsername|}}} 中继站]}}
{{!}} '''国籍'''
|{{#ifexpr: {{#if:{{{ForumCustomName1|}}}|1|0}} and {{#if:{{{ForumCustomURL1|}}}|1|0}}|[{{{ForumCustomURL1|}}} {{{ForumCustomName1|}}}]}}
{{!}} colspan="2" {{!}} {{{Nationality|}}} }}
|{{#ifexpr: {{#if:{{{ForumCustomName2|}}}|1|0}} and {{#if:{{{ForumCustomURL2|}}}|1|0}}|[{{{ForumCustomURL2|}}} {{{ForumCustomName2|}}}]}}
|-
|{{#ifexpr: {{#if:{{{ForumCustomName3|}}}|1|0}} and {{#if:{{{ForumCustomURL3|}}}|1|0}}|[{{{ForumCustomURL3|}}} {{{ForumCustomName3|}}}]}}
{{#if: {{{UserName|}}}|
|{{#ifexpr: {{#if:{{{ForumCustomName4|}}}|1|0}} and {{#if:{{{ForumCustomURL4|}}}|1|0}}|[{{{ForumCustomURL4|}}} {{{ForumCustomName4|}}}]}}
{{!}} '''论坛用户名'''
|{{#ifexpr: {{#if:{{{ForumCustomName5|}}}|1|0}} and {{#if:{{{ForumCustomURL5|}}}|1|0}}|[{{{ForumCustomURL5|}}} {{{ForumCustomName5|}}}]}}
{{!}} colspan="2" {{!}} {{{UserName|}}} }}
|{{#ifexpr: {{#if:{{{ForumCustomName6|}}}|1|0}} and {{#if:{{{ForumCustomURL6|}}}|1|0}}|[{{{ForumCustomURL6|}}} {{{ForumCustomName6|}}}]}}
|-
|{{#ifexpr: {{#if:{{{ForumCustomName7|}}}|1|0}} and {{#if:{{{ForumCustomURL7|}}}|1|0}}|[{{{ForumCustomURL7|}}} {{{ForumCustomName7|}}}]}}
{{#if: {{{UserGroup|}}}|
|{{#ifexpr: {{#if:{{{ForumCustomName8|}}}|1|0}} and {{#if:{{{ForumCustomURL8|}}}|1|0}}|[{{{ForumCustomURL8|}}} {{{ForumCustomName8|}}}]}}
{{!}} '''论坛用户组'''
|{{#ifexpr: {{#if:{{{ForumCustomName9|}}}|1|0}} and {{#if:{{{ForumCustomURL9|}}}|1|0}}|[{{{ForumCustomURL9|}}} {{{ForumCustomName9|}}}]}}
{{!}} colspan="2" {{!}} {{{UserGroup|}}} }}
|-
{{#if: {{{Other|}}}|
{{!}} '''其他'''
{{!}} colspan="2" {{!}} {{{Other|}}} }}
|-
|}
</includeonly><noinclude>{{clear}}
介绍人物通用的模板。

== 使用方法 ==
除了name之外的所有变量是可选的。
<pre>
{{PersonInfoBox
|name=
|RName=
|Birthday=
|Nationality=
|UserName=
|UserGroup=
|Other=
}}
}}
<!-- 无法访问 MCBBS,故隐藏单独用户页链接,考虑同时展示爱发电和bilibili链接,注销提示移动至bar栏
</pre>
|bottom-hide= {{#if:{{{Afdian|}}}{{{Bilibili|}}}||{{#if:{{{UID|}}}|1|{{{UserName|}}}}}}}

|bottom-href= {{#if:{{{UID|}}}|https://www.mcbbs.net/?{{{UID}}}|{{#if:{{{UserName|}}}|https://www.mcbbs.net/home.php?username={{{UserName|}}}}}}}

|buttonstyle={{#ifeq:{{Yesno|{{{Canceled|no}}}}}|yes|background:#ddd}}
|bottom-text= {{#ifeq:{{Yesno|{{{Canceled|no}}}}}|yes|该用户已注销(<small>点击访问用户主页</small>)|访问用户主页}}
-->
|bottom-add-hide= {{#if:{{{UID|}}}|{{#if:{{{Afdian|}}}{{{Bilibili|}}}|{{{UserName|}}}}}}}
|bottom-add-content={{信息卡/2:1按钮
|left-text = {{#ifeq:{{Yesno|{{{Canceled|no}}}}}|yes|该用户已注销<br><small>(点击访问用户主页)</small>|访问用户主页}}
|left-href = {{#if: {{{UID|}}}|https://www.mcbbs.net/?{{{UID}}}|{{#if:{{{UserName|}}}|https://www.mcbbs.net/home.php?username={{{UserName|}}}}}}}
|left-style={{#ifeq:{{Yesno|{{{Canceled|no}}}}}|yes|background:#ddd;line-height:25px}}
|right-text = &nbsp;
|right-href = {{#if:{{{Bilibili|}}}|//space.bilibili.com/{{{Bilibili}}}|https://afdian.net/@{{{Afdian|}}}}}
|right-class = bottom-{{#if:{{{Bilibili|}}}|bilibili|afdian}}
}}
}}{{#if:{{NAMESPACE}}||[[分类:用户]]}}</includeonly><noinclude>
{{#cargo_declare:
_table = BBSUsers
|UserName = String
|UserAlias = List (,) of String
|ManagementGroup = String
|UserGroupEx = List (,) of String
|UserGroup = String
|UID = Integer
|Title = String
|Birthday = String
|Other = String
}}
{{doc}}[[Category:信息模板]]<templatedata>{
"params": {
"name": {
"label": "标题",
"type": "string",
"default": "{{BASEPAGENAME}}",
"autovalue": "{{BASEPAGENAME}}"
},
"UserAlias": {
"label": "别名",
"type": "content",
"autovalue": ""
},
"ManagementGroup": {
"label": "管理组",
"type": "string"
},
"UserGroupEx": {
"label": "拓展用户组",
"type": "content"
},
"UID": {
"label": "UID",
"description": "用户的UID",
"example": "3038",
"type": "number",
"required": true
},
"Title": {
"label": "自定义头衔",
"description": "只有有自定义头衔的用户组才会拥有此资料项",
"type": "content"
},
"VerifyType": {
"label": "认证类别",
"description": "MCBBS中用户认证的类别",
"example": "作者认证/服主认证(二选一)",
"type": "string"
},
"VerifyInfo": {
"label": "认证内容",
"description": "鼠标悬在认证图标上显示的信息,具体内容以MCBBS为准",
"type": "content"
},
"Afdian": {
"label": "爱发电",
"description": "爱发电账号ID",
"type": "string"
},
"Bilibili": {
"label": "Bilibili",
"description": "Bilibili账号UID",
"type": "string"
},
"ForumKLPUID": {
"label": "KLPBBS",
"description": "苦力怕论坛账号UID",
"type": "number",
"example": "1615327"
},
"ForumMBUID": {
"label": "MineBBS",
"description": "MineBBS论坛账号UID",
"type": "string",
"example": "78572"
},
"ForumMemorialUID": {
"label": "纪念版",
"description": "MCBBS纪念版账号UID",
"type": "string",
"example": "10"
},
"ForumZWLTUsername": {
"label": "红石中继站",
"description": "红石中继站账号用户名",
"type": "string",
"example": "10"
},
"Birthday": {
"label": "生日",
"description": "为保护对象隐私,一般情况下请不要填写",
"type": "string"
},
"Other": {
"label": "其他",
"type": "content"
},
"UserGroupOverride": {
"label": "用户组",
"description": "用于覆盖系统自动识别的用户组。如果该项被成功识别,会自动生成链接并分类至大家族模板。",
"type": "string"
},
"UserNameOverride": {
"label": "用户名",
"description": "用于覆盖系统自动识别的用户名",
"type": "string"
},
"Avatar": {
"label": "用户头像",
"description": "用于覆盖论坛的头像图片,请填写上传至Wiki的文件名(不含“File:/文件:”,含后缀)",
"type": "wiki-file-name"


},
[[Category:信息模板]]
"Canceled": {
"label": "是否注销MCBBS账号",
"description": "当用户在账号注销版发起注销程序并最终被通过时,填写本项",
"type": "boolean"
}
},
"format": "block",
"description": "MCBBS用户条目的信息卡",
"paramOrder": [
"name",
"Avatar",
"UserNameOverride",
"UserAlias",
"UserGroupOverride",
"ManagementGroup",
"UserGroupEx",
"UID",
"Title",
"VerifyType",
"VerifyInfo",
"Afdian",
"Bilibili",
"ForumKLPUID",
"ForumMBUID",
"ForumMemorialUID",
"ForumZWLTUsername",
"Birthday",
"Other",
"Canceled"
]
}</templatedata></noinclude>

2025年2月5日 (三) 23:06的最新版本

此模板定义表格“BBSUsers”。 此表格尚未创建。

模板文档  [查看] [编辑] [历史] [刷新]

在页面右侧浮动显示一个用户信息框。

注意,本模板在主名字空间会自动加上 用户分类,所以使用时无需在页底写[[分类:用户]]

使用方法

混乱 作者认证:代表作 《热诚传说X》皮肤合集
用户信息
用户名 混乱
别名 混沌
用户组 Lv.11 领主
扩展用户组 艺术家
UID 3038
自定义头衔 茶馆掌柜

除了name和UID之外的其他变量都是可选的。

{{用户信息
|name        = (名字)
|Avatar      = 用户头像图片,填写文件名(因论坛无法访问,如有可靠的头像图片可以上传至Wiki)
|UserNameOverride = (用于覆盖系统自动识别的用户名)
|UserAlias   = (别名)
|UserGroupOverride = (用于覆盖系统自动识别的用户组,如果该项被成功识别,会自动生成链接并分类至大家族模板<!--,否则会报错-->)
|ManagementGroup = (MCBBS管理组)
|UserGroupEx = (MCBBS扩展用户组)
|UID         = (指MCBBS用户页地址中uid后的一串数字,如 混乱 的UID是3038)
|Title       = (自定义头衔,只有有自定义头衔的用户组才会显示此项)
|VerifyType  = (认证类别)
|VerifyInfo  = (认证内容,具体内容参见MCBBS)
|Afdian      = (爱发电账号ID,可选)
|Bilibili    = (哔哩哔哩账号UID,可选,填写后将会覆盖爱发电链接)
|Birthday    = (生日,可选参数)
|Other       = (其他,可选参数)
}}

示例

{{用户信息
|name        = 混乱
|Avatar      = 混乱.jpg
|UserAlias   = 混沌
|UserGroupEx = 艺术家
|UID         = 3038
|Title       = 茶馆掌柜
|VerifyType  = 作者
|VerifyInfo  = 《热诚传说X》皮肤合集
}}

MCBBS用户条目的信息卡

[编辑模板数据]

模板参数

此模板首选参数换行的代码块格式。

参数描述类型状态
标题name

无描述

默认值
{{BASEPAGENAME}}
自动值
{{BASEPAGENAME}}
字符串可选
用户头像Avatar

用于覆盖论坛的头像图片,请填写上传至Wiki的文件名(不含“File:/文件:”,含后缀)

文件可选
用户名UserNameOverride

用于覆盖系统自动识别的用户名

字符串可选
别名UserAlias

无描述

自动值
内容可选
用户组UserGroupOverride

用于覆盖系统自动识别的用户组。如果该项被成功识别,会自动生成链接并分类至大家族模板。

字符串可选
管理组ManagementGroup

无描述

字符串可选
拓展用户组UserGroupEx

无描述

内容可选
UIDUID

用户的UID

示例值
3038
数字必需
自定义头衔Title

只有有自定义头衔的用户组才会拥有此资料项

内容可选
认证类别VerifyType

MCBBS中用户认证的类别

示例值
作者认证/服主认证(二选一)
字符串可选
认证内容VerifyInfo

鼠标悬在认证图标上显示的信息,具体内容以MCBBS为准

内容可选
爱发电Afdian

爱发电账号ID

字符串可选
BilibiliBilibili

Bilibili账号UID

字符串可选
KLPBBSForumKLPUID

苦力怕论坛账号UID

示例值
1615327
数字可选
MineBBSForumMBUID

MineBBS论坛账号UID

示例值
78572
字符串可选
纪念版ForumMemorialUID

MCBBS纪念版账号UID

示例值
10
字符串可选
红石中继站ForumZWLTUsername

红石中继站账号用户名

示例值
10
字符串可选
生日Birthday

为保护对象隐私,一般情况下请不要填写

字符串可选
其他Other

无描述

内容可选
是否注销MCBBS账号Canceled

当用户在账号注销版发起注销程序并最终被通过时,填写本项

布尔可选