“Template:Infobox”的版本间的差异
跳到导航
跳到搜索
Margotbean(讨论 | 贡献) (allow for description template to populate the description field) |
Margotbean(讨论 | 贡献) |
||
第10行: | 第10行: | ||
-->{{#arraydiff:qualities to hide|qualities|qualities to show}}<!-- | -->{{#arraydiff:qualities to hide|qualities|qualities to show}}<!-- | ||
-->{{#if:{{{profession|}}} | {{#arraydefine:professions|{{{profession|}}}|,|unique|sort=asc}} |}}<!-- | -->{{#if:{{{profession|}}} | {{#arraydefine:professions|{{{profession|}}}|,|unique|sort=asc}} |}}<!-- | ||
− | --><div id="infoboxborder"> | + | -->{{#switch: {{NAMESPACE}} |
− | { | + | |{{ns:User}}|{{ns:User talk}}= |
− | + | |#default=<div id="infoboxborder"> | |
− | + | {{{!}}id="infoboxtable" | |
− | + | {{!}}colspan="2" id="infoboxheader"{{!}}{{{name|{{PAGENAME}}}}} | |
− | + | {{!}}- | |
− | + | {{!}}colspan=2 style="padding-bottom:5px; text-align: center;"{{!}}{{#if:{{{image|}}}|[[File:{{{image|}}}.png]]|{{#if:{{{eng|}}}|[[File:{{{eng|}}}.png]]|}}}}{{#ifeq:{{{image2spacing|}}}|true|   |}}{{#if:{{{image2|}}}|[[File:{{{image2|}}}]]|}}{{#if:{{{image3|}}}|[[File:{{{image3|}}}]]|}}{{#if:{{{image4|}}}|[[File:{{{image4|}}}]]|}} | |
− | + | {{!}}- | |
− | + | {{!}}colspan="2" id="infoboxdetail" style="text-align: center;"{{!}}{{#if:{{{description|}}}|{{{description|}}}|{{Description|{{PAGENAME}}}}}} | |
+ | {{!}}- | ||
+ | {{!}}colspan="2" id="infoboxsection" style="text-align:center;"{{!}} 信息{{#if:{{{source|}}}|<nowiki/> | ||
{{!}}- | {{!}}- | ||
{{!}}id="infoboxsection"{{!}}来源 | {{!}}id="infoboxsection"{{!}}来源 | ||
第394行: | 第396行: | ||
{{!}}id="infoboxdetail"{{!}}{{{produces|}}} | {{!}}id="infoboxdetail"{{!}}{{{produces|}}} | ||
}} | }} | ||
− | + | {{!}}}{{InfoboxSEO}}{{#seo: | |
|og:image={{#if:{{{image|}}}|{{filepath:{{{image|}}}}}}} | |og:image={{#if:{{{image|}}}|{{filepath:{{{image|}}}}}}} | ||
− | }}</div></includeonly><noinclude> | + | }}</div>}}</includeonly><noinclude> |
==中文特定参数== | ==中文特定参数== | ||
在此模板中使用'eng'参数将引用英语图像。 | 在此模板中使用'eng'参数将引用英语图像。 | ||
<pre>{{Infobox|eng=''英语图像名称''}}</pre>{{englishdoc}}</noinclude> | <pre>{{Infobox|eng=''英语图像名称''}}</pre>{{englishdoc}}</noinclude> |
2018年11月2日 (五) 19:36的版本
中文特定参数
在此模板中使用'eng'参数将引用英语图像。
{{Infobox|eng=''英语图像名称''}}
有关此模板的详细信息,请参阅英语语言文档页。
用法
可以通过在相关页面上输入以下内容来使用此模板。
{{Infobox}}
结果是...
Infobox | |
信息 | |
售价 | 不适用 |
Error: {{#seo:}} must contain at least one non-empty attribute.