模板:版块信息:修订间差异

删除14字节 、​ 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…”)
 
无编辑摘要
 
(未显示6个用户的17个中间版本)
<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|}}}
|-
{{|bartext = 版块信息
! colspan="3" style="background-color: #B5955C; border:3px solid #B5955C; padding: 5px; margin: 3px; color: #FFFFFF; font-size:120%; padding:0.5em;" | {{#if:{{{版块名称|}}}|{{{版块名称}}}|{{BASEPAGENAME}}}}
{{#if: |名称|{{{版块名称|}}}|
|-
{{#if: |ID|{{{版块类型ID|}}}|
! colspan="2" | {{#if: {{{image|}}}| {{{image}}} }}
|FID|{{{版块FID|}}}
|-
|类型|{{{!}} '''版块类型'''|}}}
! colspan="2" style="background-color: #C9AA76; border:3px solid #C9AA76; padding: 5px; margin: 3px; color: #FFFFFF; padding:0em;" | 版块信息
|父级版块|{{#if:{{{父级版块|}}}|[[{{{父级版块|}}}]]}}
|-
|bottom-hide = {{{版块ID|{{{版块FID|}}}}}}
| style="width:25%" |
{{!}}|bottom-href colspan="2" {{!}} [https://www.mcbbs.net/forum-{{{版块ID}}}-1.html |{{{版块IDFID|}}}}] }}-1.html
| style="width:75%" |
|bottom-text = 访问版块
|-
}}{{#ifeq:{{NAMESPACE}}||[[分类:版块]]}}</includeonly><noinclude>{{doc}}[[Category:信息模板]]<templatedata>
{{#if: {{{版块名称|}}}|
{
{{!}} '''版块名称'''
"params": {
{{!}} colspan="2" {{!}} {{{版块名称}}} }}
{{!}} ''' "版块名称'''": {
|-
{{#if "label": {{{"版块ID|}}}|名称",
"type": "string",
{{!}} '''版块ID'''
"default": "{{BASEPAGENAME}}",
{{!}} colspan="2" {{!}} [https://www.mcbbs.net/forum-{{{版块ID}}}-1.html {{{版块ID}}}] }}
"autovalue": "{{BASEPAGENAME}}",
|-
"required": true
{{#if: {{{版块类型|}}}|
},
{{!}} '''版块类型'''
"image": {
{{!}} colspan="2" {{!}} {{{版块类型}}} }}
"label": "图标",
|-
"type": "content",
{{#if: {{{父级版块|}}}|
"required": true
{{!}} '''父级版块'''
},
{{!}} colspan="2" {{!}} [[{{{父级版块}}}]] }}
| "版块ID": = chat{
|-
"label": "版块ID",
|}
"description": "若有别名(例如矿工茶馆的“chat”),请填写别名;若没有别名,请填写数字ID。",
</includeonly><noinclude>
"type": "string",
介绍版块的通用的模板。
"required": true
 
},
== 使用方法 ==
"版块FID": {
除了用语名称之外的所有变量是可选的。
"label": "版块FID",
<pre>
"type": "number",
{{版块信息
"required": true
|版块名称 =
},
|image =
| "版块ID =类型": {
"label": "版块类型",
|版块类型 = "description": "可以是:大区 / 版块 / 子版块 / 跳转链接",
|父级版块 =
"type": "string",
}}
"required": true
</pre>
},
 
{{ "父级版块信息": {
{{#if "label": {{{"父级版块|}}}|",
|版块名称 = 矿工茶馆
"type": "content"
|版块ID = chat
}
|版块类型 = 版块
},
|父级版块 =
"description": "版块条目的信息卡",
}}
"format": "block"
 
|}
[[Category:信息模板]]
</includeonlytemplatedata></noinclude>