Raft Wiki
No edit summary
No edit summary
(20 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<noinclude>
<includeonly>[[Category:ItemInfoboxes]]</includeonly><noinclude>
 
 
{{#cargo_attach:
 
{{#cargo_attach:
_table = RaftData
+
_table = ItemData
}}</noinclude>{{#cargo_store:
+
}}</noinclude><includeonly>{{#cargo_store:
_table = RaftData
+
_table = ItemData
|Itemname={{{name}}}
+
|ItemName={{{name|{{PAGENAME}}}}}
 
|ItemDesc={{{desc|}}}
 
|ItemDesc={{{desc|}}}
 
|Stacksize={{{stack|}}}
 
|Stacksize={{{stack|}}}
  +
|achieve={{{achieve}}}
 
|component1name={{{component1name|}}}
 
|component1name={{{component1name|}}}
 
|component1amount={{{component1amount|}}}
 
|component1amount={{{component1amount|}}}
Line 17: Line 18:
 
|component5name={{{component5name|}}}
 
|component5name={{{component5name|}}}
 
|component5amount={{{component5amount|}}}
 
|component5amount={{{component5amount|}}}
  +
}}</includeonly>
  +
{{Infobox
  +
|name = {{{name|{{PAGENAME}}}}}
  +
|image = {{{image|}}}
  +
|desc = {{{desc|}}}
  +
|component1name = {{{component1name|}}}
  +
|component1amount = {{{component1amount|}}}
  +
|component2name = {{{component2name|}}}
  +
|component2amount = {{{component2amount|}}}
  +
|component3name = {{{component3name|}}}
  +
|component3amount = {{{component3amount|}}}
  +
|component4name = {{{component4name|}}}
  +
|component4amount = {{{component4amount|}}}
  +
|component5name = {{{component5name|}}}
  +
|component5amount = {{{component5amount|}}}
  +
|title1 = Achievements
  +
|data1 = {{{achieve|}}}
  +
|title2 = Uses
  +
|data2 = {{{uses|}}}
  +
|title3 = Damage
  +
|data3 = {{{damage|}}}
  +
|title4 = Stacksize
  +
|data4 = {{{stack|}}}
  +
|title5 = [[Cook Time]]
 
|data5 = {{#if: {{{cooktime|}}}| {{{cooktime}}} Seconds}}
  +
|title6 = [[Smelt Time]]
 
|data6 = {{#if: {{{smelttime|}}}| {{{smelttime}}} Seconds}}
  +
|title7 = [[Hunger#Raw Foods|Raw]]
  +
|data7 = {{{raw|}}}
  +
|title8 = [[Hunger]]
  +
|data8 = {{#if: {{{hunger|}}}| +{{{hunger}}}}}
  +
|title9 = [[Hunger#Bonus_Hunger|Bonus]]
  +
|data9 = {{#if: {{{bonus|}}}| +{{{bonus}}}}}
  +
|title10 = [[Thirst]]
 
|data10 = {{#if: {{{thirst|}}}|{{#ifexpr: {{{thirst|}}}<0|{{{thirst}}}|+{{{thirst}}}}}}}
  +
|title11 = [[Burn Time]]
 
|data11 = {{#if: {{{burntime|}}}| {{{burntime}}} Seconds}}
  +
|title12 = Type
  +
|data12 = {{#if: {{{type|}}}|[[{{{type}}}]]}}
 
}}
 
}}
<div style="padding-left:20px;">
 
{| class="infoboxtable" style="width:350px" style="margin-left:10px;"
 
|-
 
! colspan="2" style="border-bottom: 4px solid #baa16a; text-transform: uppercase; text-align: center; color: #a48754;" |
 
{| style="width:100%;"
 
! width=50 | {{#if: {{{image|}}} | <div class="infoboximage">[[File:{{{image}}}{{!}}50px|center]]</div> | ''No image yet''{{#ifeq: {{NAMESPACE}} | Template | | <includeonly>[[Category:Infoboxes lacking images]]</includeonly>}} }}
 
| <big><big>'''{{{name}}}'''</big></big>
 
|}
 
|- valign="top"
 
{{#if: {{{desc|}}} | {{!}} colspan="2" {{!}} <center>'''{{{desc}}}'''</center> }}
 
|-
 
{{#if: {{{component1name|}}} | {{!}} colspan="2" style="text-transform: uppercase; text-align: left;" {{!}} '''Requires''' }}
 
|-
 
{{#if: {{{component1name|}}} | {{!}} width=50 class="image" {{!}} <div class="componentsimage">[[File:{{#titleparts:{{{component1name}}}|1}}.png{{!}}center{{!}}48px]]</div> {{!!}} style="padding:0;" {{!}} <div style="font-size:120%;" class="components">'''[[{{{component1name|}}}{{!}}{{{component1transl}}}]]''' <span style="float: right; padding-right: 15px;">'''{{{component1amount|}}}'''</span></div> | <includeonly>[[Category:Infoboxes without crafting recipes]]</includeonly> }}
 
|-
 
{{#if: {{{component2name|}}} | {{!}} width=50 {{!}} <div class="componentsimage">[[File:{{#titleparts:{{{component2name}}}|1}}.png{{!}}center{{!}}48px]]</div> {{!!}} <div style="font-size:120%;" class="components">'''[[{{{component2name|}}}|{{{component2transl|}}}]]''' <span style="float: right; padding-right: 15px;">'''{{{component2amount|}}}'''</span></div> }}
 
|-
 
{{#if: {{{component3name|}}} | {{!}} width=50 {{!}} <div class="componentsimage">[[File:{{#titleparts:{{{component3name}}}|1}}.png{{!}}center{{!}}48px]]</div> {{!!}} <div style="font-size:120%;" class="components">'''[[{{{component3name|}}}|{{{component3transl|}}}]]''' <span style="float: right; padding-right: 15px;">'''{{{component3amount|}}}'''</span></div> }}
 
|-
 
{{#if: {{{component4name|}}} | {{!}} width=50 {{!}} <div class="componentsimage">[[File:{{#titleparts:{{{component4name}}}|1}}.png{{!}}center{{!}}48px]]</div> {{!!}} <div style="font-size:120%;" class="components">'''[[{{{component4name|}}}{{{component4transl|}}}]]''' <span style="float: right; padding-right: 15px;">'''{{{component4amount|}}}'''</span></div> }}
 
|-
 
{{#if: {{{component5name|}}} | {{!}} width=50 {{!}} <div class="componentsimage">[[File:{{#titleparts:{{{component5name}}}|1}}.png{{!}}center{{!}}48px]]</div> {{!!}} <div style="font-size:120%;" class="components">'''[[{{{component5name|{{{component5transl|}}}}}}]]''' <span style="float: right; padding-right: 15px;">'''{{{component5amount|}}}'''</span></div> }}
 
|-
 
{{#if: {{{type|}}} | {{!}} colspan="2" class="" style="text-transform: uppercase; text-align: left;" {{!}} '''Description''' }}
 
|- valign="top"
 
{{#if: {{{uses|}}} | {{!}} width=80 {{!}} <div>'''Uses'''</div> {{!!}} {{{uses}}} }}
 
|- valign="top"
 
{{#if: {{{damage|}}} | {{!}} width=80 {{!}} <div>'''Damage'''</div> {{!!}} {{{damage}}} }}
 
|- valign="top"
 
{{#if: {{{stack|}}} | {{!}} width=80 {{!}} <div>'''Stacksize'''</div> {{!!}} {{{stack}}} }}
 
|- valign="top"
 
{{#if: {{{cooktime|}}} | {{!}} width=80 {{!}} <div>'''[[Cook Time]]'''</div> {{!!}} {{{cooktime}}} Seconds }}
 
|- valign="top"
 
{{#if: {{{smelttime|}}} | {{!}} width=80 {{!}} <div>'''[[Smelt Time]]'''</div> {{!!}} {{{smelttime}}} Seconds }}
 
|- valign="top"
 
{{#if: {{{portions|}}} | {{!}} width=80 {{!}} <div>'''[[Portions]]'''</div> {{!!}} {{{portions}}}}}
 
|- valign="top"
 
{{#if: {{{hunger|}}} | {{!}} width=80 {{!}} <div>'''[[Hunger]]'''</div> {{!!}} +{{{hunger}}}}}
 
|- valign="top"
 
{{#if: {{{bonus|}}} | {{!}} width=80 {{!}} <div>'''[[Hunger#Bonus_Hunger|Bonus]]'''</div> {{!!}} +{{{bonus}}}}}
 
|- valign="top"
 
{{#if: {{{thirst|}}} | {{!}} width=80 {{!}} <div>'''[[Thirst]]'''</div> {{!!}} {{#ifexpr:{{{thirst}}}<0|{{{thirst}}}|+{{{thirst}}}}}}}
 
|- valign="top"
 
{{#if: {{{burntime|}}} | {{!}} width=80 {{!}} <div>'''[[Burn Time]]'''</div> {{!!}} {{{burntime}}} Seconds }}
 
|- valign="top"
 
{{#if: {{{type|}}} | {{!}} width=80 {{!}} <div>'''Type'''</div> {{!!}} [[{{{type}}}]] }}
 
|}
 
</div>
 
<noinclude>{{clear}}{{doc}}
 
[[Category:Infobox templates]]</noinclude>
 

Revision as of 22:29, 2 March 2021

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

ItemInfobox