Template:Item: Difference between revisions
From Vintage Story Wiki
No edit summary |
VeryGoodDog (talk | contribs) m (move row break to inside conditional and remove unneeded classes) |
||
(30 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{|border="1" cellpadding="2" cellspacing="0 | <includeonly>{|border="1" cellpadding="2" cellspacing="0" style="position:relative; border-radius:7px; font-size:90%; width:190px; float:right; margin-left:5px; margin-bottom: 5px;" | ||
|- | |- | ||
|bgcolor="#000000" colspan="2 | |bgcolor="#000000" colspan="2" style="border-top-right-radius:7px; border-top-left-radius:7px; text-align:center; font-size:13.5px;"|<font color="white">'''{{{Name}}}'''</font> | ||
|- | |- | ||
|bgcolor="# | |bgcolor="#d3ab92" colspan=2 style="text-align: center"| [[{{{Image}}}|100px]] | ||
|- | |- | ||
{{#if: {{{ | |'''Stackable''' | ||
| | |{{{Stackable|64}}} | ||
{{#if: {{{Temp|}}} | {{#!: | |||
{{#if: {{{ | |- | ||
| | {{Item/Fuel | ||
| | |Temp={{{Temp}}} | ||
{{#if: {{{ | |Duration={{{Duration}}} | ||
| | }} | ||
| | }} }} | ||
{{#if: {{{SmeltTemp|}}} | {{#!: | |||
|- | |||
{{Item/Smeltable | |||
|SmeltTemp={{{SmeltTemp}}} | |||
|SmeltDuration={{{SmeltDuration}}} | |||
|SmeltRatio={{{SmeltRatio|}}} | |||
|RequiresContainer={{{RequiresContainer|}}} | |||
|Output={{{Output|}}} | |||
|OutputAmount={{{OutputAmount|1}}} | |||
}} | |||
}} }} | |||
{{#if: {{{Satiety|}}} | {{#!: | |||
|- | |||
{{Item/Food | |||
|Satiety={{{Satiety}}} | |||
|Category={{{Category}}} | |||
}} | |||
}} }} | |||
{{#if: {{{FreshTime|}}} | {{#!: | |||
|- | |||
{{Item/Transitionable | |||
|FreshTime={{{FreshTime}}} | |||
|TransitionTime={{{TransitionTime}}} | |||
|TransitionRatio={{{TransitionRatio|}}} | |||
}} | |||
}} }} | |||
|- | |- | ||
|bgcolor="#000000" colspan="2" class="Bloba" style="text-align:center; font-size:13.5px; border-bottom-right-radius:7px; border-bottom-left-radius:7px;"|[[Items|<font color="white">'''Items'''</font>]] | |bgcolor="#000000" colspan="2" class="Bloba" style="text-align:center; font-size:13.5px; border-bottom-right-radius:7px; border-bottom-left-radius:7px;"|[[Items|<font color="white">'''Items'''</font>]] | ||
|}{{#if:{{{NoBreak|}}}||{{-}} }} | |||
[[Category:Items]]</includeonly><noinclude> | |||
'''Example:''' | |||
{{Item | |||
|Name={{{Name}}} | |||
|Image={{{Image}}} | |||
|Stackable={{{Stackable}}} | |||
|Temp={{{Temp}}} | |||
|Duration={{{Duration}}} | |||
|SmeltTemp={{{SmeltTemp}}} | |||
|SmeltDuration={{{SmeltDuration}}} | |||
|SmeltRatio={{{SmeltRatio}}} | |||
|RequiresContainer={{{RequiresContainer}}} | |||
|Output={{{Output}}} | |||
|FreshTime={{{FreshTime}}} | |||
|TransitionTime={{{TransitionTime}}} | |||
|TransitionRatio={{{TransitionRatio}}} | |||
|Satiety={{{Satiety}}} | |||
|Category={{{Category}}} | |||
|NoBreak=y | |||
}} | |||
{| class="wikitable" | |||
|- | |||
! Parameter !! Required or Optional, default if applicable !! Example | |||
|- | |||
| ''Name'' || Required || Dirt | |||
|- | |||
| ''Image'' || Required || File:Grid Dirt.png | |||
|- | |||
| ''Stackable'' || Optional, 64 || 32 | |||
|- | |||
| ''Temp'' || Optional || 1000 | |||
|- | |||
| ''Duration'' || Required with ''Temp'' || 30 | |||
|- | |||
| ''SmeltTemp'' || Optional || 1000 | |||
|- | |||
| ''SmeltDuration'' || Required with ''SmeltTemp'' || 30 | |||
|- | |||
| ''SmeltRatio'' || Optional, 1 || 0.5 | |||
|- | |||
| ''RequiresContainer'' || Optional, Yes || Yes | |||
|- | |||
| ''Output'' || Optional || Torch | |||
|- | |||
| ''OutputAmount'' || Optional, 1 || 2 | |||
|- | |||
| ''FreshTime'' || Optional || 480 | |||
|- | |||
| ''TransitionTime'' || Required with ''FreshTime'' || 48 | |||
|- | |||
| ''TransitionRatio'' || Optional, 1 || 0.75 | |||
|- | |||
| ''Satiety'' || Optional || 200 | |||
|- | |||
| ''Category'' || Required with ''Satiety'' || Protein | |||
|} | |} | ||
Utilizes: [[:Template:Item/Food]], [[:Template:Item/Fuel]], [[:Template:Item/Smeltable]], [[:Template:Item/Transitionable]] | |||
[[Category:Infoboxes]] | |||
</noinclude> |
Revision as of 17:04, 31 December 2020
Example:
{{{Name}}} | |
[[{{{Image}}}|100px]] | |
Stackable | {{{Stackable}}} |
Fuel | |
Temperature | {{{Temp}}}°C |
Duration | {{{Duration}}} s |
Smeltable | |
Smelt Point | {{{SmeltTemp}}}°C |
Requires Container | Yes |
Food | |
Satiety | {{{Satiety}}} |
Category |
{{{Category}}} |
Transitionable | |
Fresh Time | {{{FreshTime}}} |
Transition Time | {{{TransitionTime}}} |
Transition Ratio | {{{TransitionRatio}}} |
Items |
Parameter | Required or Optional, default if applicable | Example |
---|---|---|
Name | Required | Dirt |
Image | Required | File:Grid Dirt.png |
Stackable | Optional, 64 | 32 |
Temp | Optional | 1000 |
Duration | Required with Temp | 30 |
SmeltTemp | Optional | 1000 |
SmeltDuration | Required with SmeltTemp | 30 |
SmeltRatio | Optional, 1 | 0.5 |
RequiresContainer | Optional, Yes | Yes |
Output | Optional | Torch |
OutputAmount | Optional, 1 | 2 |
FreshTime | Optional | 480 |
TransitionTime | Required with FreshTime | 48 |
TransitionRatio | Optional, 1 | 0.75 |
Satiety | Optional | 200 |
Category | Required with Satiety | Protein |
Utilizes: Template:Item/Food, Template:Item/Fuel, Template:Item/Smeltable, Template:Item/Transitionable