FANDOM


(使用移动化信息框迁移工具进行更新)
第1行: 第1行:
<table class="infobox" style="font-size:89%; width:300px; background-color:#FFF; border:#90725D 1px solid;" cellspacing="0">
+
<infobox>
  +
<title source="Box title"><default>{{PAGENAME}}</default></title>
  +
<group layout="horizontal">
  +
<data source="blank"><default> </default></data>
  +
<data source="raw"><default>'''生'''</default></data>
  +
<data source="cook"><default>'''熟'''</default></data>
  +
</group>
  +
<group layout="horizontal">
  +
<data source="blank"><default></default></data>
  +
<image source="image"/>
  +
<image source="image2"/>
  +
</group>
  +
<group layout="horizontal">
  +
<data source="health"><default>[[File:HealthMeter.png|24px|Health|link=Health]]</default></data>
  +
<data source="health1"></data>
  +
<data source="health2"></data>
  +
</group>
  +
<group layout="horizontal">
  +
<data source="hunger"><default>[[File:HungerMeter.png|24px|Hunger|link=Hunger]]</default></data>
  +
<data source="hunger1"></data>
  +
<data source="hunger2"></data>
  +
</group>
  +
<group layout="horizontal">
  +
<data source="sanity"><default>[[File:SanityMeter.png|24px|Sanity|link=Sanity]]</default></data>
  +
<data source="sanity1"></data>
  +
<data source="sanity2"></data>
  +
</group>
  +
<group layout="horizontal">
  +
<data source="spoil"><default>[[File:Rot.png|24px|Perish|link=Rot]]</default></data>
  +
<data source="spoil1"></data>
  +
<data source="spoil2"></data>
  +
</group>
  +
<group layout="horizontal">
  +
<data source="stacklimit"><default>'''堆疊上限'''</default></data>
  +
<data source="stacklimit1"></data>
  +
<data source="stacklimit2"></data>
  +
</group>
  +
<group layout="horizontal">
  +
<data source="spawnCode"><default>'''[[Console|生成代碼]]'''</default></data>
  +
<data source="spawnCode1"></data>
  +
<data source="spawnCode2"></data>
  +
</group>
  +
<group layout="horizontal">
  +
<data source="dropby"><default>'''[[Mobs|掉落]]'''</default></data>
  +
<data source="droppedBy"><label>起始物品</label></data>
  +
</group>
  +
</infobox>
  +
<noinclude>
  +
== 使用与预览==
  +
键入下列信息:
   
<tr><td>
+
<pre>
<table width="100%" style="background-color:#DEC8A1;">
+
{{Food Infobox
<tr>
+
|Box title=
<td width="18%""></td>
+
|image=
<td width="82%" style="font-size:120%; padding:2px; text-align:center;">'''{{{Box title|No Title}}}'''</td>
+
|image2=
</tr>
+
|health1=1
</table>
+
|health2=1
</td>
+
|hunger1=
</tr>
+
|hunger2=
<tr>
+
|sanity1=
<td>
+
|sanity2=
  +
|spoil1=
  +
|spoil2=
  +
|stacklimit1=
  +
|stacklimit2=
  +
|spawnCode1=
  +
|spawnCode2=
  +
|droppedBy=
  +
}}
   
<!-- Start of 2nd table -->
+
</pre>
<table style="font-size:89%; width:100%; background-color:#FFF; border:none;">
 
   
<tr>
+
以看到下列信息:
<td width="26%"></td>
 
<td width="37%" style="font-size:120%; text-align:center;">'''生'''</td>
 
<td width="37%" style="font-size:120%; text-align:center;">'''熟'''</td>
 
</tr>
 
   
<table style="font-size:89%; width:100%; background-color:#FFF; border:none;">
+
{{Food Infobox
<tr>
+
|Box title=This is a test
<td width="26%"></td>
+
|image=This is a test
<td width="33%" style="text-align:center">
+
|image2=This is a test
{{#ifexist: {{{image|}}}|<span style="z-index:​ 1; position: absolute;">[[File:Inventory slot background.png|link=]]</span><span style="position: relative; padding:2px;"> [[File:{{{image}}}.png||64px|link=]]</span>
+
|crafting=This is a test
}}</td>
+
|health1=This is a test
<td width="8%">
+
|health2=This is a test
[[File:Fire Pit.png|32px|link=Cooking]]
+
|hunger1=This is a test
</td>
+
|hunger2=This is a test
<td width="33%" style="text-align:center">
+
|sanity1=This is a test
{{#ifexist: {{{image2|}}}|<span style="z-index:​ 1; position: absolute;">[[File:Inventory slot background.png|link=]]</span><span style="position: relative; padding:2px;"> [[Image:{{{image2}}}.png|64px|link=]]</span>
+
|sanity2=This is a test
}}</td>
+
|spoil1=This is a test
</tr>
+
|spoil2=This is a test
</table>
+
|stacklimit1=This is a test
<!-- start of details -->
+
|stacklimit2=This is a test
{{#if: {{{crafting|}}}|
+
|spawnCode1=This is a test
<table width="100%">
+
|spawnCode2=This is a test
<tr>
+
|droppedBy=This is a test
<td width="26%">'''[[Crafting]]'''</td>
+
}}
<td width="74%" style="font-size:100%; text-align:center;">{{{crafting}}}</td>
 
</tr>
 
</table>}}
 
<table style="font-size:89%; width:100%; background-color:#FFF; border:none;">
 
   
<tr>
 
<td width="26%" align="center">[[File:HealthMeter.png|24px|Health|link=Health]]</td>
 
<td width="42%" style="font-size:120%; text-align:center;">{{{health1}}}</td>
 
<td width="42%" style="font-size:120%; text-align:center;">{{{health2}}}</td>
 
</tr>
 
   
<tr>
+
[{{fullurl:{{ns:Template}}:{{PAGENAME}}}}?action=purge 点击此处刷新上面的预览内容]
<td align="center">[[File:HungerMeter.png|24px|Hunger|link=Hunger]]</td>
+
</noinclude>
<td style="font-size:120%; text-align:center;">{{{hunger1}}}</td>
 
<td style="font-size:120%; text-align:center;">{{{hunger2}}}</td>
 
</tr>
 
 
<tr>
 
<td align="center">[[File:SanityMeter.png|24px|Sanity|link=Sanity]]</td>
 
<td style="font-size:120%; text-align:center;">{{{sanity1}}}</td>
 
<td style="font-size:120%; text-align:center;">{{{sanity2}}}</td>
 
</tr>
 
 
<tr>
 
<td align="center">[[File:Rot.png|24px|Perish|link=Rot]]</td>
 
<td style="font-size:120%; text-align:center;">{{{spoil1}}}</td>
 
<td style="font-size:120%; text-align:center;">{{{spoil2}}}</td>
 
</tr>
 
 
<tr>
 
<td>'''堆疊上限'''</td>
 
<td style="font-size:120%; text-align:center;">{{{stacklimit1}}}</td>
 
<td style="font-size:120%; text-align:center;">{{{stacklimit2}}}</td>
 
</tr>
 
 
<tr>
 
<td>'''[[Console|生成代碼]]'''</td>
 
<td style="font-size:120%; text-align:center;">{{{spawnCode1}}}</td>
 
<td style="font-size:120%; text-align:center;">{{{spawnCode2}}}</td>
 
</tr>
 
</table>
 
{{#if: {{{droppedBy|}}}|
 
<table width="100%">
 
<tr>
 
<td width="26%">'''[[Mobs|掉落]]'''</td>
 
<td width="74%" style="font-size:100%; text-align:center;">{{{droppedBy}}}</td>
 
</tr>
 
</table>
 
}}
 
</table>
 
</td>
 
</tr>
 
</table>
 
{{#if: {{{spawnCode1|}}} || [[Category:Infobox missing spawncodes]] }}
 
{{#if: {{{spawnCode2|}}} || [[Category:Infobox missing spawncodes]] }}
 
{{Main other|[[Category:Food]]|}}
 
<noinclude>{{documentation}}</noinclude>
 

2015年8月27日 (四) 00:33的版本

使用与预览

键入下列信息:

{{Food Infobox
|Box title=
|image=
|image2=
|health1=1
|health2=1
|hunger1=
|hunger2=
|sanity1=
|sanity2=
|spoil1=
|spoil2=
|stacklimit1=
|stacklimit2=
|spawnCode1=
|spawnCode2=
|droppedBy=
}}

以看到下列信息:




点击此处刷新上面的预览内容

除了特别提示,社区内容遵循CC-BY-SA 授权许可。