Difference between revisions of "Template:ItemInfobox"

From Raft Wiki
Jump to: navigation, search
m
m
Tag: Source edit
 
(10 intermediate revisions by the same user not shown)
Line 19: Line 19:
 
|component5name={{{component5name|}}}
 
|component5name={{{component5name|}}}
 
|component5amount={{{component5amount|}}}
 
|component5amount={{{component5amount|}}}
  +
|Ingredient1name={{{ingredient1name|}}}
}}</includeonly>
 
  +
|Ingredient1amount={{{ingredient1amount|}}}
{{Infobox
 
  +
|Ingredient2name={{{ingredient2name|}}}
  +
|Ingredient2amount={{{ingredient2amount|}}}
  +
|Ingredient3name={{{ingredient3name|}}}
  +
|Ingredient3amount={{{ingredient3amount|}}}
  +
|Ingredient4name={{{ingredient4name|}}}
  +
|Ingredient4amount={{{ingredient4amount|}}}
  +
|ProductName={{{productname|}}}
  +
|ProductAmount={{{productamount|}}}
 
}}</includeonly><!--
 
-->{{Infobox
 
|name = {{{name|{{PAGENAME}}}}}
 
|name = {{{name|{{PAGENAME}}}}}
|image = {{#if: {{{image|}}} |{{{image}}} |{{#ifexist: File:{{PAGENAME}}.png|{{PAGENAME}}.png|}}}}
+
|imageLeftTop = {{#if: {{{image|}}} |{{{image}}} |{{#ifexist: File:{{PAGENAME}}.png|{{PAGENAME}}.png|}}}}
 
|desc = {{{desc|}}}
 
|desc = {{{desc|}}}
  +
|componentTitle = {{#if: {{{ingredient1name|}}}|Ingredients listed|Requires}}:
|component1name = {{{component1name|}}}
+
|component1name = {{{component1name|}}} {{{ingredient1name|}}}
|component1amount = {{{component1amount|}}}
 
  +
|component1amount = {{{component1amount|}}}<!-- -->{{#ifeq: {{{ingredient1max|}}}|y|≤}}<!-- -->{{#ifeq: {{{ingredient1min|}}}|y|≥}}<!-- -->{{{ingredient1amount|}}}
|component2name = {{{component2name|}}}
+
|component2name = {{{component2name|}}} {{{ingredient2name|}}}
|component2amount = {{{component2amount|}}}
 
  +
|component2amount = {{{component2amount|}}}<!-- -->{{#ifeq: {{{ingredient2max|}}}|y|≤}}<!-- -->{{#ifeq: {{{ingredient2min|}}}|y|≥}}<!-- -->{{{ingredient2amount|}}}
|component3name = {{{component3name|}}}
+
|component3name = {{{component3name|}}} {{{ingredient3name|}}}
|component3amount = {{{component3amount|}}}
 
  +
|component3amount = {{{component3amount|}}}<!-- -->{{#ifeq: {{{ingredient3max|}}}|y|≤}}<!-- -->{{#ifeq: {{{ingredient3min|}}}|y|≥}}<!-- -->{{{ingredient3amount|}}}
|component4name = {{{component4name|}}}
+
|component4name = {{{component4name|}}} {{{ingredient4name|}}}
|component4amount = {{{component4amount|}}}
 
  +
|component4amount = {{{component4amount|}}}<!-- -->{{#ifeq: {{{ingredient4max|}}}|y|≤}}<!-- -->{{#ifeq: {{{ingredient4min|}}}|y|≥}}<!-- -->{{{ingredient4amount|}}}
|component5name = {{{component5name|}}}
 
|component5amount = {{{component5amount|}}}
+
|component5name = {{{component5name|}}}
  +
|component5amount = {{{component5amount|}}}
|title1 = Achievements
 
  +
|title1 = Producing
|data1 = {{{achieve|}}}
 
  +
|data1 = {{#if: {{{productname|}}}|{{ItemText|{{{productname|}}}}}}}
|title2 = Uses
 
 
|title2 = Achievements
|data2 = {{{uses|}}}
 
 
|data2 = {{{achieve|}}}
|title3 = Damage
 
 
|title3 = Uses
|data3 = {{{damage|}}}
 
 
|data3 = {{{uses|}}}
|title4 = <span title="This indicates how many items can be in an one stack">Stacksize</span>
 
 
|title4 = Damage
|data4 = {{{stack|}}}
 
 
|data4 = {{{damage|}}}
|title5 = [[Cook Time]]
 
 
|title5 = <span title="This indicates how many items can be in a one stack">Stacksize</span>
|data5 = {{#if: {{{cooktime|}}}| {{{cooktime}}} Seconds}}
 
 
|data5 = {{{stack|}}}
|title6 = [[Smelt Time]]
 
 
|title6 = [[Cook Time]]
|data6 = {{#if: {{{smelttime|}}}| {{{smelttime}}} Seconds}}
 
 
|data6 = {{#if: {{{cooktime|}}}| {{{cooktime}}} Seconds}}
|title7 = [[Hunger#Raw Foods|Raw]]
 
 
|title7 = [[Smelt Time]]
|data7 = {{{raw|}}}
 
 
|data7 = {{#if: {{{smelttime|}}}| {{{smelttime}}} Seconds}}
|title8 = [[Hunger]]
 
 
|title8 = [[Hunger#Raw Foods|Raw]]
|data8 = {{#if: {{{hunger|}}}| +{{{hunger}}}}}
 
 
|data8 = {{{raw|}}}
|title9 = [[Hunger#Bonus_Hunger|Bonus]]
 
 
|title9 = [[Hunger]]
|data9 = {{#if: {{{bonus|}}}| +{{{bonus}}}}}
 
 
|data9 = {{#if: {{{hunger|}}}| +{{{hunger}}}}}
|title10 = [[Thirst]]
 
 
|title10 = [[Hunger#Bonus_Hunger|Bonus]]
|data10 = {{#if: {{{thirst|}}}|{{#ifexpr: {{{thirst|}}}<0|{{{thirst}}}|+{{{thirst}}}}}}}
 
 
|data10 = {{#if: {{{bonus|}}}| +{{{bonus}}}}}
|title11 = [[Burn Time]]
 
 
|title11 = [[Thirst]]
|data11 = {{#if: {{{burntime|}}}| {{{burntime}}} Seconds}}
 
 
|data11 = {{#if: {{{thirst|}}}|{{#ifexpr: {{{thirst|}}}<0|{{{thirst}}}|+{{{thirst}}}}}}}
|title12 = Type
 
 
|title12 = [[Burn Time]]
|data12 = {{#if: {{{type|}}}|[[{{{type}}}]]}}
 
 
|data12 = {{#if: {{{burntime|}}}| {{{burntime}}} Seconds}}
 
|title13 = Type
 
|data13 = {{#if: {{{type|}}}|[[{{{type}}}]]}}
 
}}
 
}}

Latest revision as of 19:22, 9 June 2021

This template adds rows to the table "ItemData", which is declared by the template Cargo-Items. View table.

ItemInfobox