模板:小组信息:修订间差异

删除878字节 、​ 2022年7月13日 (星期三)
无编辑摘要
(创建页面,内容为“<includeonly> {| class="infobox" style="font-size:89%; float:right; width:21em; -moz-border-radius: .7em; -webkit-border-radius: .7em; border-radius: .7em;" |- ! col…”)
 
无编辑摘要
 
(未显示5个用户的15个中间版本)
<includeonly>{{信息卡
|title = {{#if:{{{小组名称|}}}|{{{小组名称}}}|{{BASEPAGENAME}}}}
{| class="infobox" style="font-size:89%; float:right; width:21em; -moz-border-radius: .7em; -webkit-border-radius: .7em; border-radius: .7em;"
|image = {{{image|}}}
|-
|titlestyle = {{{titlestyle|}}}
! colspan="3" style="background-color: #B5955C; border:3px solid #B5955C; padding: 5px; margin: 3px; color: #FFFFFF; font-size:120%; padding:0.5em; {{{titlestyle|}}}" | {{#if:{{{小组名称|}}}|{{{小组名称}}}|{{BASEPAGENAME}}}}
|barstyle = {{{barstyle|}}}
|-
|buttonstyle = {{{buttonstyle|}}}
! colspan="2" | {{#if: {{{image|}}}| {{{image}}} }}
|bartext = 小组信息
|-
|名称|{{{小组名称|}}}
! colspan="2" style="background-color: #C9AA76; border:3px solid #C9AA76; padding: 5px; margin: 3px; color: #FFFFFF; padding:0em; {{{barstyle|}}}" | 小组信息
|别名|{{{小组别名|}}}
|-
|ID|{{{小组ID|}}}
| style="width:25%" |
|分类|{{{小组分类|}}}
| style="width:75%" |
|领导者|{{{领导者|}}}
|-
|代表作|{{{代表作|}}}
{{#if: {{{小组名称|}}}|
|bottom-hide = {{{!}} '''小组名称'''ID|}}}
|bottom-href = https://www.mcbbs.net/group-{{{小组ID}}}-1.html
{{!}} colspan="2" {{!}} {{{小组名称}}} }}
|bottom-text = 访问小组
|-
}}{{#ifeq:{{NAMESPACE}}||[[分类:小组]]}}</includeonly><noinclude>{{doc}}[[Category:信息模板]]<templatedata>
{{#if: {{{小组别名|}}}|
{
{{!}} '''小组别名'''
"params": {
{{!}} colspan="2" {{!}} {{{小组别名}}} }}
"小组名称": {
|-
{{#if "label": {{{"小组ID|}}}|名称",
"default": "{{BASEPAGENAME}}",
{{!}} '''小组ID'''
"autovalue": "{{BASEPAGENAME}}",
{{!}} colspan="2" {{!}} {{{小组ID}}} }}
"required": true
|-
},
{{#if: {{{小组分类|}}}|
"image": {
{{!}} '''小组分类'''
"label": "插图",
{{!}} colspan="2" {{!}} {{{小组分类}}} }}
"type": "content",
|-
"autovalue": ""
{{#if: {{{领导者|}}}|
},
{{!}} '''领导者'''
"小组别名": {
{{!}} colspan="2" {{!}} {{{领导者}}} }}
"label": "小组别名",
|-
"type": "content"
{{#if: {{{代表作|}}}|
},
{{!}} '''代表作'''
"小组ID": {
{{!}} colspan="2" {{!}} {{{代表作}}} }}
"label": "小组ID",
|-
"type": "number",
{{#if: {{{小组ID|}}}|
"required": true
{{!}} colspan="2" {{!}} <div style="margin: 0 auto; width: 250px; background:#E0CBA7; text-align: center; line-height: 50px; border-radius:7px; {{{buttonstyle|}}}">[https://www.mcbbs.net/group-{{{小组ID}}}-1.html -= 访问小组 =-]</div>}}
},
|-
"小组分类": {
|}
"label": "小组分类",
</includeonly><noinclude>
"type": "content",
介绍小组的通用的模板。
"required": true
 
},
== 使用方法 ==
"领导者": {
除了板块名称之外的所有变量是可选的。
"label": "领导者",
<pre>
"type": "content",
{{小组信息
"required": true
|小组名称 =
},
|image =
"代表作": {
|小组别名 =
"label": "代表作",
|小组ID =
"type": "content"
|小组分类 = 红石研究小组/地图创作小组/技术研究小组/美术创作小组/文学创作小组/其他团队/基岩版小组
},
|领导者 =
"titlestyle": {
|代表作 =
"label": "标题栏样式",
}}
"type": "string"
</pre>
},
 
"barstyle": {
<pre>
"label": "分隔栏样式",
{{小组信息
"type": "string"
|小组名称 =
},
|image =
"buttonstyle": {
|titlestyle = 标题样式
|barstyle "label": = 分界栏"按钮样式",
"type": "string"
|buttonstyle = 底部按钮样式
}
|小组别名 =
},
|小组ID =
"description": "小组条目的信息卡",
|小组分类 = 红石研究小组/地图创作小组/技术研究小组/美术创作小组/文学创作小组/其他团队/基岩版小组
"format": "block"
|领导者 =
}
|代表作 =
</templatedata></noinclude>
}}
</pre>
 
举例见右边
 
{{小组信息
|小组名称 = CTHUWORK
|image =
|小组别名 = 想不出来了
|小组ID = 350
|小组分类 = 地图创作小组
}}
 
[[Category:信息模板]]