最后版本 |
您的文本 |
第1行: |
第1行: |
| <includeonly>{{tsl|Template:Infobox/styles.css}}{{#invoke: infobox | infobox }}</includeonly> | | <includeonly>{{tsl|Template:Infobox/styles.css}}{{#invoke: infobox | infobox }}</includeonly><noinclude>{{documentation}} |
| <noinclude> | | <!-- 请将分类/语言链接放在文档页面 --></noinclude> |
| | |
| <!-- 文档页面 -->
| |
| | |
| | |
| 此模板是信息框的雏形,也是其他信息框模板的基础。
| |
| | |
| == 用法 ==
| |
| {{infobox}}
| |
| <pre width="22px">{{infobox
| |
| | title =
| |
| | imageN =
| |
| | defaultimagesize =
| |
| | imageNsize =
| |
| | invimageN =
| |
| | imagearea =
| |
| | rows =
| |
| | footer =
| |
| }}</pre>
| |
| {| class="wikitable"
| |
| ! 参数
| |
| ! 功能
| |
| ! 默认值
| |
| |-
| |
| | {{Code|title}}
| |
| | 信息框的标题。
| |
| | {{Code|<nowiki>{{BASEPAGENAME}}</nowiki>}}
| |
| |-
| |
| | {{Code|image''N''}}
| |
| | 标题下显示的图片,其中N为从1开始的正整数(若为1可省略不写),对应图片从上到下的顺序。使用{{tl|Animate}}模板的格式。设置为{{Code|none}}将不显示图片。
| |
| | [[:File:No image.svg|No image.svg]]
| |
| |-
| |
| | {{Code|defaultimagesize}}
| |
| | 设置上述图像的默认大小。
| |
| | 150px
| |
| |-
| |
| | {{Code|image''N''size}}
| |
| | 设置相应图像的大小,其中N为从1开始的正整数,这将覆盖{{param|defaultimagesize}}的值。
| |
| |
| |
| |-
| |
| | {{Code|invimage''N''}}
| |
| | 图像下方显示的物品栏图像,其中N为从1开始的正整数,对应物品从左到右、从上到下的顺序。使用{{tl|Inventory slot}}模板的格式。若设置为{{Code|----}},下一个将换行显示。
| |
| |
| |
| |-
| |
| | {{Code|imagearea}}
| |
| | 用空白区域取代图像,可在其中写入任意其他内容。该参数会覆盖其他图像参数设置。
| |
| |
| |
| |-
| |
| | {{Code|rows}}
| |
| | 用于添加额外的行,需配合{{tl|infobox row}}模板使用。
| |
| |
| |
| |-
| |
| | {{Code|footer}}
| |
| | 用于在信息框最底部添加居中的文字脚注。
| |
| |
| |
| |}
| |
| | |
| == 模板数据 ==
| |
| <templatedata>
| |
| {
| |
| "params": {
| |
| "===Infobox": {
| |
| "description": "Template:Infobox参数"
| |
| },
| |
| "title": {
| |
| "label": "标题",
| |
| "description": "信息框的标题。",
| |
| "type": "string",
| |
| "default": "根頁面名(不含命名空間)"
| |
| },
| |
| "imagearea": {
| |
| "label": "图片区域内容",
| |
| "description": "用空白区域取代图像,可在其中写入任意其他内容。该参数会覆盖其他图像参数设置。",
| |
| "type": "content"
| |
| },
| |
| "rows": {
| |
| "label": {
| |
| "zh-hans": "額外的行",
| |
| "zh-hant": "額外的列"
| |
| },
| |
| "description": {
| |
| "zh": "用于添加额外的行,需配合{{[[Template:infobox row|infobox row]]}}模板使用。",
| |
| "zh-hant": "用於加入額外的列,需配合{{[[Template:infobox row|infobox row]]}}模板使用。",
| |
| "type": "content"
| |
| }
| |
| },
| |
| "footer": {
| |
| "label": "脚注",
| |
| "description": "用于在信息框最底部添加居中的文字脚注。",
| |
| "type": "content"
| |
| },
| |
| "===Image area": {
| |
| "description": "[[Template:Image area]]参数"
| |
| },
| |
| "image": {
| |
| "label": "第1张图片",
| |
| "description": "标题下显示的第1张图片。使用{{[[Template:Animate|Animate]]}}模板的格式(下同),设置为<code>none</code>将不显示图片。若未指定显示为[[:File:No image.svg|No image.svg]]。",
| |
| "type": "wiki-file-name",
| |
| "default": "No image.svg",
| |
| "suggested": true
| |
| },
| |
| "image2": {
| |
| "label": "第2张图片",
| |
| "description": "标题下显示的第n张图片。",
| |
| "type": "wiki-file-name"
| |
| },
| |
| "image3": {
| |
| "label": "第3张图片",
| |
| "inherits": "image2"
| |
| },
| |
| "image4": {
| |
| "label": "第4张图片",
| |
| "inherits": "image2"
| |
| },
| |
| "image5": {
| |
| "label": "第5张图片",
| |
| "inherits": "image2"
| |
| },
| |
| "image6": {
| |
| "label": "第6张图片",
| |
| "inherits": "image2"
| |
| },
| |
| "image7": {
| |
| "label": "第7张图片",
| |
| "inherits": "image2"
| |
| },
| |
| "image8": {
| |
| "label": "第8张图片",
| |
| "inherits": "image2"
| |
| },
| |
| "image9": {
| |
| "label": "第9张图片",
| |
| "inherits": "image2"
| |
| },
| |
| "image10": {
| |
| "label": "第10张图片",
| |
| "description" :"标题下显示的第10张图片。如果需要更多图片,请自行添加参数。",
| |
| "inherits": "image2"
| |
| },
| |
| "defaultimagesize": {
| |
| "label": "默认图片尺寸",
| |
| "description": "设置上述图像的默认大小。",
| |
| "example": "300px",
| |
| "type": "string",
| |
| "default": "150px"
| |
| },
| |
| "imagesize": {
| |
| "label": "第1张图片尺寸",
| |
| "description": "设置标题下第1张图片的大小,这将覆盖{{{defaultimagesize}}}的值(下同)。",
| |
| "type": "string"
| |
| },
| |
| "image2size": {
| |
| "label": "第2张图片尺寸",
| |
| "description": "设置标题下第n张图片的大小。",
| |
| "type": "string"
| |
| },
| |
| "image3size": {
| |
| "label": "第3张图片尺寸",
| |
| "inherits": "image2size"
| |
| },
| |
| "image4size": {
| |
| "label": "第4张图片尺寸",
| |
| "inherits": "image2size"
| |
| },
| |
| "image5size": {
| |
| "label": "第5张图片尺寸",
| |
| "inherits": "image2size"
| |
| },
| |
| "image6size": {
| |
| "label": "第6张图片尺寸",
| |
| "inherits": "image2size"
| |
| },
| |
| "image7size": {
| |
| "label": "第7张图片尺寸",
| |
| "inherits": "image2size"
| |
| },
| |
| "image8size": {
| |
| "label": "第8张图片尺寸",
| |
| "inherits": "image2size"
| |
| },
| |
| "image9size": {
| |
| "label": "第9张图片尺寸",
| |
| "inherits": "image2size"
| |
| },
| |
| "image10size": {
| |
| "label": "第10张图片尺寸",
| |
| "description": "设置标题下第10张图片的大小。如果需要设置更多图片的尺寸,请自行添加参数。",
| |
| "inherits": "image2size"
| |
| },
| |
| "invimage": {
| |
| "label": "物品栏图片",
| |
| "description": "第1张物品栏图片。使用{{[[Template:Inventory slot|Inventory slot]]}}模板的格式,若设置为“<code>----</code>”,下一个将换行显示(下同)。设置为<code>none</code>将不显示。",
| |
| "type": "string"
| |
| },
| |
| "invimage2": {
| |
| "label": "第2张物品栏图片",
| |
| "description": "第n张物品栏图片。",
| |
| "type": "string"
| |
| },
| |
| "invimage3": {
| |
| "label": "第3张物品栏图片",
| |
| "inherits": "invimage2"
| |
| },
| |
| "invimage4": {
| |
| "label": "第4张物品栏图片",
| |
| "inherits": "invimage2"
| |
| },
| |
| "invimage5": {
| |
| "label": "第5张物品栏图片",
| |
| "inherits": "invimage2"
| |
| },
| |
| "invimage6": {
| |
| "label": "第6张物品栏图片",
| |
| "inherits": "invimage2"
| |
| },
| |
| "invimage7": {
| |
| "label": "第7张物品栏图片",
| |
| "inherits": "invimage2"
| |
| },
| |
| "invimage8": {
| |
| "label": "第8张物品栏图片",
| |
| "inherits": "invimage2"
| |
| },
| |
| "invimage9": {
| |
| "label": "第9张物品栏图片",
| |
| "inherits": "invimage2"
| |
| },
| |
| "invimage10": {
| |
| "label": "第10张物品栏图片",
| |
| "description": "第10张物品栏图片。如果需要更多物品栏图片,请自行添加参数。",
| |
| "inherits": "invimage2"
| |
| }
| |
| },
| |
| "description": "此模板是信息框的雏形,也是其他信息框模板的基础。",
| |
| "format": "block",
| |
| "paramOrder": [
| |
| "title",
| |
| "image",
| |
| "image2",
| |
| "image3",
| |
| "image4",
| |
| "image5",
| |
| "image6",
| |
| "image7",
| |
| "image8",
| |
| "image9",
| |
| "image10",
| |
| "defaultimagesize",
| |
| "imagesize",
| |
| "image2size",
| |
| "image3size",
| |
| "image4size",
| |
| "image5size",
| |
| "image6size",
| |
| "image7size",
| |
| "image8size",
| |
| "image9size",
| |
| "image10size",
| |
| "invimage",
| |
| "invimage2",
| |
| "invimage3",
| |
| "invimage4",
| |
| "invimage5",
| |
| "invimage6",
| |
| "invimage7",
| |
| "invimage8",
| |
| "invimage9",
| |
| "invimage10",
| |
| "imagearea",
| |
| "rows",
| |
| "footer",
| |
| "===Infobox",
| |
| "===Image area"
| |
| ]
| |
| }</templatedata>
| |
| | |
| | |
| | |
| <!-- 请将分类/语言链接放在文档页面 --> | |
| </noinclude> | |