MCBBS Wiki欢迎您共同参与编辑!在参与编辑之前请先阅读Wiki方针。
如果在编辑的过程中遇到了什么问题,可以去讨论板提问。
为了您能够无阻碍地参与编辑 未验证/绑定过邮箱的用户,请尽快绑定/验证。
MCBBS Wiki GitHub群组已上线!
您可以在回声洞中发表吐槽!
服务器状态监控。点击进入
本站由MCBBS用户自行搭建,与MCBBS及东银河系漫游指南(北京)科技有限公司没有从属关系。点此了解 MCBBS Wiki 不是什么>>
模板:用户信息:修订间差异
跳到导航
跳到搜索
(// Edit via Wikiplus) 标签:已被回退 |
Teddyxlandlee(留言 | 贡献) (fix: 没有上沿) 标签:移动版编辑 移动版网页编辑 高级移动版编辑 |
||
| (未显示4个用户的36个中间版本) | |||
| 第1行: | 第1行: | ||
<includeonly>{{#vardefine:pageuid|{{{UID|}}}}}{{NameSpaceTest|2}}{{#cargo_store:_table=BBSUsers|UserGroup={{AutoUGroupRAW|{{{ | <includeonly>{{#vardefine:pageuid|{{{UID|1}}}}}{{NameSpaceTest|2}}{{#cargo_store:_table=BBSUsers|UserGroup={{AutoUGroupRAW|{{{UserGroupOverride|{{#mcbbscreditvalue:{{{UID|1}}}|grouptext}}}}}}}|UserName={{{UserNameOverride|{{#mcbbscreditvalue:{{{UID|1}}}|nickname}}}}}}}{{信息卡 | ||
|title = {{#if:{{{name|}}}|{{{name}}}|{{BASEPAGENAME}}}} | |title={{#if:{{{name|}}}|{{{name}}}|{{BASEPAGENAME}}}}{{#if:{{{VerifyType|}}}| {{UserVerify|{{{VerifyType}}}|{{{VerifyInfo}}}}}}} | ||
|image = {{MCBBSAvatar|{{{UID|}}}}} | |image={{#if:{{{Avatar|}}}|<center>[[File:{{{Avatar|}}}|120px]]</center>}}<!--{{MCBBSAvatar|{{{UID|1}}}}}--> | ||
|bartext = 用户信息 | |bartext=用户信息 | ||
|用户名|{{{ | |用户名|{{{UserNameOverride|{{#mcbbscreditvalue:{{{UID|1}}}|nickname}}}}} | ||
|别名|{{{UserAlias|}}} | |别名|{{{UserAlias|}}} | ||
|用户组|{{AutoUGroup|{{{UserGroupOverride|{{#mcbbscreditvalue:{{{UID|}}}| | |用户组|{{AutoUGroup|{{{UserGroupOverride|GID{{#mcbbscreditvalue:{{{UID|1}}}|groupid}}}}}|UsergroupCategory={{{UserGroupCatgory|true}}}}} | ||
|管理组|{{{ManagementGroup|}}} | |管理组|{{{ManagementGroup|}}} | ||
|扩展用户组|{{{UserGroupEx|}}} | |扩展用户组|{{{UserGroupEx|}}} | ||
|UID|{{{UID|}}} | |UID|{{{UID|}}} | ||
|自定义头衔|{{#if:{{用户信息/IsMoreThan8|{{{ | |自定义头衔|{{#if:{{用户信息/IsMoreThan8|{{{UserGroupOverride|{{#mcbbscreditvalue:{{{UID|1}}}|grouptext}}}}}}}|{{{Title|}}}}} | ||
|爱发电账号|{{{Afdian|}}} | |爱发电账号|{{{Afdian|}}} | ||
| | |Bilibili账号|{{{Bilibili|}}} | ||
|出生日期|{{{Birthday|}}} | |出生日期|{{{Birthday|}}} | ||
|其他|{{{Other|}}} | |其他|{{{Other|}}} | ||
|bottom-hide = {{#if: {{{Afdian|}}} || {{#if: {{{UID|}}} | 1 | {{{UserName|}}} }} }} | |bartext1={{#ifeq:{{Yesno|{{{Canceled|no}}}}}|yes|该用户已注销}} | ||
|bottom-href = {{#if: {{{UID|}}}|https://www.mcbbs.net/?{{{UID}}}|{{#if:{{{UserName|}}}|https://www.mcbbs.net/home.php?username={{{UserName|}}}}}}} | |bartitle2={{#if:{{{ForumKLPUID|}}}{{{ForumMBUID|}}}{{{ForumMemorialUID|}}}{{{ForumZWLTUsername|}}}{{{ForumCustomName1|}}}{{{ForumCustomURL1|}}}{{{ForumCustomName2|}}}{{{ForumCustomURL2|}}}{{{ForumCustomName3|}}}{{{ForumCustomURL3|}}}{{{ForumCustomName4|}}}{{{ForumCustomURL4|}}}{{{ForumCustomName5|}}}{{{ForumCustomURL5|}}}{{{ForumCustomName6|}}}{{{ForumCustomURL6|}}}{{{ForumCustomName7|}}}{{{ForumCustomURL7|}}}{{{ForumCustomName8|}}}{{{ForumCustomURL8|}}}{{{ForumCustomName9|}}}{{{ForumCustomURL9|}}}|其他论坛}} | ||
|bottom-text = 访问用户主页 | |bartext2={{JoinNullable | ||
|bottom-add-hide = {{#if: {{{UID|}}} | {{#if: | |{{#if:{{{ForumKLPUID|}}}|[[kuid:{{{ForumKLPUID|}}}|苦力怕]]}} | ||
|bottom-add-content = {{信息卡/2:1按钮 | |{{#if:{{{ForumMBUID|}}}|[https://www.minebbs.com/members/{{{ForumMBUID|}}} MineBBS]}} | ||
|left-text = 访问用户主页 | |{{#if:{{{ForumMemorialUID|}}}|[https://www.mcbbs.co/home.php?mod=space&uid={{{ForumMemorialUID|}}} 纪念版]}} | ||
|{{#if:{{{ForumZWLTUsername|}}}|[https://forum.mczwlt.net/user/{{{ForumZWLTUsername|}}} 中继站]}} | |||
|{{#ifexpr: {{#if:{{{ForumCustomName1|}}}|1|0}} and {{#if:{{{ForumCustomURL1|}}}|1|0}}|[{{{ForumCustomURL1|}}} {{{ForumCustomName1|}}}]}} | |||
|{{#ifexpr: {{#if:{{{ForumCustomName2|}}}|1|0}} and {{#if:{{{ForumCustomURL2|}}}|1|0}}|[{{{ForumCustomURL2|}}} {{{ForumCustomName2|}}}]}} | |||
|{{#ifexpr: {{#if:{{{ForumCustomName3|}}}|1|0}} and {{#if:{{{ForumCustomURL3|}}}|1|0}}|[{{{ForumCustomURL3|}}} {{{ForumCustomName3|}}}]}} | |||
|{{#ifexpr: {{#if:{{{ForumCustomName4|}}}|1|0}} and {{#if:{{{ForumCustomURL4|}}}|1|0}}|[{{{ForumCustomURL4|}}} {{{ForumCustomName4|}}}]}} | |||
|{{#ifexpr: {{#if:{{{ForumCustomName5|}}}|1|0}} and {{#if:{{{ForumCustomURL5|}}}|1|0}}|[{{{ForumCustomURL5|}}} {{{ForumCustomName5|}}}]}} | |||
|{{#ifexpr: {{#if:{{{ForumCustomName6|}}}|1|0}} and {{#if:{{{ForumCustomURL6|}}}|1|0}}|[{{{ForumCustomURL6|}}} {{{ForumCustomName6|}}}]}} | |||
|{{#ifexpr: {{#if:{{{ForumCustomName7|}}}|1|0}} and {{#if:{{{ForumCustomURL7|}}}|1|0}}|[{{{ForumCustomURL7|}}} {{{ForumCustomName7|}}}]}} | |||
|{{#ifexpr: {{#if:{{{ForumCustomName8|}}}|1|0}} and {{#if:{{{ForumCustomURL8|}}}|1|0}}|[{{{ForumCustomURL8|}}} {{{ForumCustomName8|}}}]}} | |||
|{{#ifexpr: {{#if:{{{ForumCustomName9|}}}|1|0}} and {{#if:{{{ForumCustomURL9|}}}|1|0}}|[{{{ForumCustomURL9|}}} {{{ForumCustomName9|}}}]}} | |||
}} | |||
<!-- 无法访问 MCBBS,故隐藏单独用户页链接,考虑同时展示爱发电和bilibili链接,注销提示移动至bar栏 | |||
|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-href = {{#if: {{{UID|}}}|https://www.mcbbs.net/?{{{UID}}}|{{#if:{{{UserName|}}}|https://www.mcbbs.net/home.php?username={{{UserName|}}}}}}} | ||
|right-text = | |left-style={{#ifeq:{{Yesno|{{{Canceled|no}}}}}|yes|background:#ddd;line-height:25px}} | ||
|right-href = | |right-text = | ||
|right-class = bottom-afdian | |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: | {{#cargo_declare: | ||
_table = BBSUsers | _table = BBSUsers | ||
| 第36行: | 第56行: | ||
|UID = Integer | |UID = Integer | ||
|Title = String | |Title = String | ||
|Birthday = String | |Birthday = String | ||
|Other = String | |Other = String | ||
}} | }} | ||
{{doc}}[[Category:信息模板]]<templatedata> | {{doc}}[[Category:信息模板]]<templatedata>{ | ||
{ | |||
"params": { | "params": { | ||
"name": { | "name": { | ||
| 第49行: | 第66行: | ||
"default": "{{BASEPAGENAME}}", | "default": "{{BASEPAGENAME}}", | ||
"autovalue": "{{BASEPAGENAME}}" | "autovalue": "{{BASEPAGENAME}}" | ||
}, | }, | ||
"UserAlias": { | "UserAlias": { | ||
| 第60行: | 第71行: | ||
"type": "content", | "type": "content", | ||
"autovalue": "" | "autovalue": "" | ||
}, | }, | ||
"ManagementGroup": { | "ManagementGroup": { | ||
| 第85行: | 第90行: | ||
"label": "自定义头衔", | "label": "自定义头衔", | ||
"description": "只有有自定义头衔的用户组才会拥有此资料项", | "description": "只有有自定义头衔的用户组才会拥有此资料项", | ||
"type": "content" | |||
}, | |||
"VerifyType": { | |||
"label": "认证类别", | |||
"description": "MCBBS中用户认证的类别", | |||
"example": "作者认证/服主认证(二选一)", | |||
"type": "string" | |||
}, | |||
"VerifyInfo": { | |||
"label": "认证内容", | |||
"description": "鼠标悬在认证图标上显示的信息,具体内容以MCBBS为准", | |||
"type": "content" | "type": "content" | ||
}, | }, | ||
| 第92行: | 第108行: | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
" | "Bilibili": { | ||
"label": " | "label": "Bilibili", | ||
"description": " | "description": "Bilibili账号UID", | ||
"type": "string" | "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": { | "Birthday": { | ||
"label": "生日", | "label": "生日", | ||
"description": "为保护对象隐私,一般情况下请不要填写", | "description": "为保护对象隐私,一般情况下请不要填写", | ||
"type": "string" | "type": "string" | ||
| 第110行: | 第145行: | ||
"label": "其他", | "label": "其他", | ||
"type": "content" | "type": "content" | ||
}, | |||
"UserGroupOverride": { | |||
"label": "用户组", | |||
"description": "用于覆盖系统自动识别的用户组。如果该项被成功识别,会自动生成链接并分类至大家族模板。", | |||
"type": "string" | |||
}, | |||
"UserNameOverride": { | |||
"label": "用户名", | |||
"description": "用于覆盖系统自动识别的用户名", | |||
"type": "string" | |||
}, | |||
"Avatar": { | |||
"label": "用户头像", | |||
"description": "用于覆盖论坛的头像图片,请填写上传至Wiki的文件名(不含“File:/文件:”,含后缀)", | |||
"type": "wiki-file-name" | |||
}, | |||
"Canceled": { | |||
"label": "是否注销MCBBS账号", | |||
"description": "当用户在账号注销版发起注销程序并最终被通过时,填写本项", | |||
"type": "boolean" | |||
} | } | ||
}, | }, | ||
"format": "block", | "format": "block", | ||
"description": "MCBBS用户条目的信息卡" | "description": "MCBBS用户条目的信息卡", | ||
} | "paramOrder": [ | ||
</templatedata></noinclude> | "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”。 此表格尚未创建。
在页面右侧浮动显示一个用户信息框。
注意,本模板在主名字空间会自动加上 用户分类,所以使用时无需在页底写[[分类:用户]]。
使用方法
| 混乱 | ||
|---|---|---|
| 用户信息 | ||
| 用户名 | 混乱 | |
| 别名 | 混沌 | |
| 用户组 | ||
| 扩展用户组 | 艺术家 | |
| 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 | 无描述
| 字符串 | 可选 |
| 用户头像 | Avatar | 用于覆盖论坛的头像图片,请填写上传至Wiki的文件名(不含“File:/文件:”,含后缀) | 文件 | 可选 |
| 用户名 | UserNameOverride | 用于覆盖系统自动识别的用户名 | 字符串 | 可选 |
| 别名 | UserAlias | 无描述
| 内容 | 可选 |
| 用户组 | UserGroupOverride | 用于覆盖系统自动识别的用户组。如果该项被成功识别,会自动生成链接并分类至大家族模板。 | 字符串 | 可选 |
| 管理组 | ManagementGroup | 无描述 | 字符串 | 可选 |
| 拓展用户组 | UserGroupEx | 无描述 | 内容 | 可选 |
| UID | UID | 用户的UID
| 数字 | 必需 |
| 自定义头衔 | Title | 只有有自定义头衔的用户组才会拥有此资料项 | 内容 | 可选 |
| 认证类别 | VerifyType | MCBBS中用户认证的类别
| 字符串 | 可选 |
| 认证内容 | VerifyInfo | 鼠标悬在认证图标上显示的信息,具体内容以MCBBS为准 | 内容 | 可选 |
| 爱发电 | Afdian | 爱发电账号ID | 字符串 | 可选 |
| Bilibili | Bilibili | Bilibili账号UID | 字符串 | 可选 |
| KLPBBS | ForumKLPUID | 苦力怕论坛账号UID
| 数字 | 可选 |
| MineBBS | ForumMBUID | MineBBS论坛账号UID
| 字符串 | 可选 |
| 纪念版 | ForumMemorialUID | MCBBS纪念版账号UID
| 字符串 | 可选 |
| 红石中继站 | ForumZWLTUsername | 红石中继站账号用户名
| 字符串 | 可选 |
| 生日 | Birthday | 为保护对象隐私,一般情况下请不要填写 | 字符串 | 可选 |
| 其他 | Other | 无描述 | 内容 | 可选 |
| 是否注销MCBBS账号 | Canceled | 当用户在账号注销版发起注销程序并最终被通过时,填写本项 | 布尔 | 可选 |