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

添加3,959字节 、​ 2024年3月9日 (星期六)
// Edit via Wikiplus
无编辑摘要
(// Edit via Wikiplus)
 
(未显示4个用户的36个中间版本)
<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>{{NameSpaceTest|2}}{{信息卡
|title = {{#if:{{{name|}}}|{{{name}}}|{{BASEPAGENAME}}}}{{#if:{{{VerifyType|}}}|&nbsp;{{UserVerify|{{{VerifyType}}}|{{{VerifyInfo}}}}}}}
|image = {{#if:{{{Avatar|}}}|<center>[[File:{{{Avatar|}}}|120px]]</center>}}<!--{{MCBBSAvatar|{{{UID|1}}}}}-->
|bartext = 用户信息
|用户名|{{{UserNameUserNameOverride|{{#mcbbscreditvalue:{{{UID|1}}}|nickname}}}}}
|别名|{{{UserAlias|}}}
|用户组|{{AutoUGroup|{{{UserGroupUserGroupOverride|GID{{#mcbbscreditvalue:{{{UID|1}}}|groupid}}}}}|UsergroupCategory={{{UserGroupCatgory|true}}}}}
|管理组|{{{ManagementGroup|}}}
|扩展用户组|{{#if:{{{UserGroupEx|}}}|{{AutoUGroup|{{{UserGroupEx|}}}}}}}
|UID|{{{UID|}}}
|自定义头衔|{{#if:{{PersonInfoBox用户信息/IsMoreThan8|{{{UserGroupUserGroupOverride|{{#mcbbscreditvalue:{{{UID|1}}}|grouptext}}}}}}}|{{{Title|}}}}}
|爱发电账号|{{{Afdian|}}}
|真名Bilibili账号|{{{RNameBilibili|}}}
|出生日期|{{{Birthday|}}}
|国籍|{{{Nationality|}}}
|其他|{{{Other|}}}
|bottom-hide bartext1= {{#ififeq: {{{Afdian|}}} |Yesno| {{#if: {{{UIDCanceled|no}}}}} | 1 yes| {{{UserName|}}} }} 该用户已注销}}
<!-- 无法访问 MCBBS,故隐藏单独用户页链接,考虑同时展示爱发电和bilibili链接,注销提示移动至bar栏
|bottom-href = {{#if: {{{UID|}}}|https://www.mcbbs.net/?{{{UID}}}|{{#if:{{{UserName|}}}|https://www.mcbbs.net/home.php?username={{{UserName|}}}}}}}
|bottom-hide= {{#if:{{{Afdian|}}}{{{Bilibili|}}}||{{#if:{{{UID|}}}|1|{{{UserName|}}}}}}}
|bottom-text = 访问用户主页
|bottom-add-hide href= {{#if: {{{UID|}}} | https://www.mcbbs.net/?{{{UID}}}|{{#if: {{{AfdianUserName|}}} | https://www.mcbbs.net/home.php?username={{{UserName|}}} }} }}
|buttonstyle={{#ifeq:{{Yesno|{{{Canceled|no}}}}}|yes|background:#ddd}}
|bottom-add-content = {{信息卡/2:1按钮
|bottom-text= {{#ifeq:{{Yesno|{{{Canceled|no}}}}}|yes|该用户已注销(<small>点击访问用户主页</small>)|访问用户主页}}
|left-text = 访问用户主页
-->
|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 = 爱发电
|right-hreftext = http://afdian.net/@{{{Afdian|}}}&nbsp;
|right-href = {{#if:{{{Bilibili|}}}|//space.bilibili.com/{{{Bilibili}}}|https://afdian.net/@{{{Afdian|}}}}}
|right-class = bottom-afdian
|right-class = bottom-{{#if:{{{Bilibili|}}}|bilibili|afdian}}
}}
}}{{#ifeqif: {{NAMESPACENUMBERNAMESPACE}}|0|[[分类:用户]]}}</includeonly><noinclude>{{doc}}[[Category:信息模板]]</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"
},
"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"
 
},
"Canceled": {
"label": "是否注销MCBBS账号",
"description": "当用户在账号注销版发起注销程序并最终被通过时,填写本项",
"type": "boolean"
}
},
"format": "block",
"description": "MCBBS用户条目的信息卡",
"paramOrder": [
"name",
"Avatar",
"UserNameOverride",
"UserAlias",
"UserGroupOverride",
"ManagementGroup",
"UserGroupEx",
"UID",
"Title",
"VerifyType",
"VerifyInfo",
"Afdian",
"Bilibili",
"Birthday",
"Other",
"Canceled"
]
}</templatedata></noinclude>
巡查员
1,454

个编辑