“Template:Infobox”的版本间的差异

来自Stardew Valley Wiki
跳到导航 跳到搜索
(remove unnecessary formatting)
 
(未显示6个用户的33个中间版本)
第1行: 第1行:
<includeonly><!--
+
<includeonly>{{#switch:{{NAMESPACE}}
-->{{#arraydefine:qualities|normal,silver,gold|,|unique}}<!-- Excludes iridium, as it is currently handled by {{{iridium}}}. --><!--
+
|{{ns:User}}|{{ns:User talk}}=
-->{{#arraydefine:qualities to show
 
  | {{#switch:{{{quality|true}}}
 
   | true = normal, silver, gold, {{#ifeq:{{{iridium|true}}}|true|iridium}}
 
   | false = normal
 
   | #default = normal, {{{quality|}}}, {{#ifeq:{{{iridium|true}}}|true|iridium}}
 
   }}
 
  |,|unique}}<!--
 
-->{{#arraydiff:qualities to hide|qualities|qualities to show}}<!--
 
-->{{#if:{{{profession|}}} | {{#arraydefine:professions|{{{profession|}}}|,|unique|sort=asc}} |}}<!--
 
-->{{#switch: {{NAMESPACE}} 
 
|{{ns:User}}|{{ns:User talk}}= 
 
 
|#default=<div id="infoboxborder">
 
|#default=<div id="infoboxborder">
{{{!}} id="infoboxtable"
+
<table id="infoboxtable">
{{!}}colspan="2" id="infoboxheader"{{!}}{{{name|{{PAGENAME}}}}}
+
<tr>
{{!}}-
+
<td colspan="2" id="infoboxheader">{{{name|{{PAGENAME}}}}}</td>
{{!}}colspan="2" style="padding-bottom:5px; text-align: center;"{{!}}{{#if:{{{image|}}}|[[File:{{{image|}}}.png]]|{{#if:{{{eng|}}}|[[File:{{{eng|}}}.png]]|}}}}{{#ifeq:{{{image2spacing|}}}|true|&nbsp;&#32;&nbsp;|}}{{#if:{{{image2|}}}|[[File:{{{image2|}}}]]|}}{{#if:{{{image3|}}}|[[File:{{{image3|}}}]]|}}{{#if:{{{image4|}}}|[[File:{{{image4|}}}]]|}}
+
</tr>
{{!}}-
+
<tr>
{{!}}colspan="2" id="infoboxdetail" style="text-align: center; font-style: italic;"{{!}}{{#if:{{{description|}}}|{{{description|}}}|{{Description|{{PAGENAME}}}}}}
+
<td colspan="2" style="padding-bottom: 5px; text-align: center;">[[File:{{{eng|Blank icon}}}{{#if:{{{ext|}}}|.{{{ext|}}}|.png}}]]{{#if:{{{image2|}}}|{{#ifeq:{{lc:{{{image2spacing|}}}}}|true|&nbsp; &nbsp;|&nbsp;}}[[File:{{{image2|}}}.png]]|}}{{#if:{{{image3|}}}|&nbsp;[[File:{{{image3|}}}.png]]|}}{{#if:{{{image4|}}}|&nbsp;[[File:{{{image4|}}}.png]]|}}{{#if:{{{image5|}}}|&nbsp;[[File:{{{image5|}}}.png]]|}}</td>
{{!}}-
+
</tr>
{
+
<tr>
 +
<td colspan="2" id="infoboxdetail" style="text-align: center; padding-right: 3px;">{{#if:{{{description|}}}|{{{description|}}}|{{Description|{{PAGENAME}}}}}}</td>
 +
</tr>
 +
<tr>
 +
<td colspan="2" id="infoboxsection" style="text-align: center; padding-left: 0; padding-right: 0;">信息</td>
 +
</tr>
 +
{{#if:{{{source|}}}|<nowiki/>
 +
<tr>
 +
<td id="infoboxsection">来源</td>
 +
<td id="infoboxdetail">{{{source|}}}</td>
 +
</tr>
 +
}}{{#if:{{{location|}}}|<nowiki/>
 +
<tr>
 +
<td id="infoboxsection">地点</td>
 +
<td id="infoboxdetail">{{{location|}}}</td>
 +
</tr>
 +
}}{{#if:{{{seed|}}}|<nowiki/>
 +
<tr>
 +
<td id="infoboxsection">种子</td>
 +
<td id="infoboxdetail">{{{seed|}}}</td>
 +
</tr>
 +
}}{{#if:{{{growth|}}}|<nowiki/>
 +
<tr>
 +
<td id="infoboxsection">成熟需</td>
 +
<td id="infoboxdetail">{{{growth|}}}</td>
 +
</tr>
 +
}}{{#if:{{{buff|}}}|<nowiki/>
 +
<tr>
 +
<td id="infoboxsection">增益效果</td>
 +
<td id="infoboxdetail">{{{buff|}}}</td>
 +
</tr>
 +
}}{{#if:{{{buffduration|}}}|<nowiki/>
 +
<tr>
 +
<td id="infoboxsection">持续时间</td>
 +
<td id="infoboxdetail">{{duration|{{{buffduration|}}}}}</td>
 +
</tr>
 +
}}{{#if:{{{season|}}}|<nowiki/>
 +
<tr>
 +
<td id="infoboxsection">{{#switch:{{lc:{{{eng|}}}}}
 +
|apple|apricot|banana|cherry|mango|orange|peach|pomegranate|tea stage 4=丰收季节
 +
|#default = 季节}}</td>
 +
<td id="infoboxdetail">{{#iferror: {{Season|{{{season}}}}} | {{{season|}}} | {{Season|{{{season}}}}} }}</td>
 +
</tr>
 +
}}{{#if:{{{weather|}}} |<nowiki />
 +
<tr>
 +
<td id="infoboxsection">天
 
}}{{#if:{{{ingredients|}}}|<nowiki/>
 
}}{{#if:{{{ingredients|}}}|<nowiki/>
{{!}}-
+
<tr>
{{!}}colspan="2" id="infoboxsection" style="text-align: center;"{{!}}{{#if:{{#pos:{{lc:{{{source|}}}}}|工匠物品}}|工匠物品|打造}}
+
<td colspan="2" id="infoboxsection" style="text-align: center; padding-left: 0; padding-right: 0;">{{#if:{{#pos:{{lc:{{{source|}}}}}|工匠物品}} | 工匠物品 | 打造 }}</td>
 +
</tr>
 
}}{{#if:{{{recipe|}}}|<nowiki/>
 
}}{{#if:{{{recipe|}}}|<nowiki/>
{{!}}-
+
<tr>
{{!}}id="infoboxsection"{{!}} 配方来源
+
<td id="infoboxsection"> 配方来源</td>
{{!}}id="infoboxdetail"{{!}}{{{recipe|}}}
+
<td id="infoboxdetail">{{{recipe|}}}</td>
 +
</tr>
 
}}{{#if:{{{craftingstation|}}}|<nowiki/>
 
}}{{#if:{{{craftingstation|}}}|<nowiki/>
{{!}}-
+
<tr>
{{!}}id="infoboxsection"{{!}}打造场所
+
<td id="infoboxsection">处理设备</td>
{{!}}id="infoboxdetail"{{!}}{{{craftingstation|}}}
+
<td id="infoboxdetail">{{{craftingstation|}}}</td>
 +
</tr>
 
}}{{#if:{{{crafttime|}}}|<nowiki/>
 
}}{{#if:{{{crafttime|}}}|<nowiki/>
{{!}}-
+
<tr>
{{!}}id="infoboxsection" class="no-wrap"{{!}}{{#if:{{#pos:{{lc:{{{source|}}}}}|工匠物品}}| 处理时 间|工艺时间}}
+
<td id="infoboxsection"> 处理 </td>
{{!}}id="infoboxdetail"{{!}}{{duration|{{{crafttime|}}}}}
+
<td id="infoboxdetail">{{duration|{{{crafttime|}}}}}</td>
 +
</tr>
 
}}{{#if:{{{ingredients|}}}|<nowiki/>
 
}}{{#if:{{{ingredients|}}}|<nowiki/>
{{!}}-
+
<tr>
{{!}}id="infoboxsection"{{!}} 材料 组分
+
<td id="infoboxsection">所需 材料</td>
{{!}}id="infoboxdetail"{{!}}{{{ingredients|}}}
+
<td id="infoboxdetail">{{{ingredients|}}}</td>
}}<!--Trapper Profession ingredients for Crab Pot-->{{#if:{{{tingredients|}}}|<nowiki/>
+
</tr>
{{!}}-
+
}}{{#if:{{{tingredients|}}}|<nowiki/>
{{!}}id="infoboxsection"{{!}}[[File:Trapper.png|24px|link=]] 材料 组分
+
<tr>
{{!}}id="infoboxdetail"{{!}}{{{tingredients|}}}
+
<td id="infoboxsection" class="no-wrap">[[File:Trapper.png|24px|link=]] [[技能#钓鱼| ]]所需 材料</td>
 +
<td id="infoboxdetail">{{{tingredients|}}}</td>
 +
</tr>
 
}}{{#if:{{{produces|}}}|<nowiki/>
 
}}{{#if:{{{produces|}}}|<nowiki/>
{{!}}-
+
<tr>
{{!}}id="infoboxsection"{{!}}它
+
<td id="infoboxsection"> 出</td>
{{!}}id="infoboxdetail"{{!}}{{{produces|}}}
+
<td id="infoboxdetail">{{{produces|}}}</td>
 +
</tr>
 
}}
 
}}
{{!}}}{{InfoboxSEO}}{{#seo:
+
</table>
|og:image={{#if:{{{image|}}}|{{filepath:{{{image|}}}}}}}
+
</div>{{InfoboxSEO}}}}</includeonly><noinclude>{{Englishdoc}}</noinclude>
}}</div>}}</includeonly><noinclude>
 
==中文特定参数==
 
在此模板中使用'eng'参数将引用英语图像。
 
<pre>{{Infobox|eng=''英语图像名称''}}</pre>{{englishdoc}}</noinclude>
 

2023年9月12日 (二) 17:58的最新版本

有关此模板的详细信息,请参阅英语语言文档页

用法

可以通过在相关页面上输入以下内容来使用此模板。

{{Infobox}}

结果是...

Infobox
Blank icon.png
信息