User:Veerserif/Sandbox/Infobox: Difference between revisions

From Vintage Story Wiki
(technically we have already performed an if check on temp and duration w/ the len check)
(made Material conditional, fixed brackets for Fuel)
Line 3: Line 3:
| imagearea = [[File:{{#if: {{{image|}}} | {{{image}}} | {{#ifexist: File:{{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png | {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png | No image.png}} }}|{{#ifeq: {{NAMESPACE}} | {{ns:10}} || link=File:{{#if: {{{image|}}} | {{{image}}} | {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png }} }}|150px]]
| imagearea = [[File:{{#if: {{{image|}}} | {{{image}}} | {{#ifexist: File:{{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png | {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png | No image.png}} }}|{{#ifeq: {{NAMESPACE}} | {{ns:10}} || link=File:{{#if: {{{image|}}} | {{{image}}} | {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png }} }}|150px]]
| rows =
| rows =
{{User:Veerserif/Sandbox/Infobox row|label=Material|field={{ #if: {{{material|}}} | {{{material}}} | N/A }} }}
{{ #if: {{{material|}}}|{{User:Veerserif/Sandbox/Infobox row|label=Material|field= {{{material}}}}} }}
{{User:Veerserif/Sandbox/Infobox row|label=Stackable|field={{ #if: {{{stackable|}}} | {{{stackable}}} | N/A }} }}
{{User:Veerserif/Sandbox/Infobox row|label=Stackable|field={{ #if: {{{stackable|}}} | {{{stackable}}} | N/A }} }}
{{
{{
#if: {{#len:{{{temperature|}}}}} or {{#len:{{{duration|}}}}} | {{User:Veerserif/Sandbox/Infobox row|label=Fuel|field={{{temperature}}}°C}}, {{{duration}}} seconds}}
#if: {{#len:{{{temperature|}}}}} or {{#len:{{{duration|}}}}} | {{User:Veerserif/Sandbox/Infobox row|label=Fuel|field={{{temperature}}}°C, {{{duration}}} seconds}}
| footer =
| footer =
{{{notes|}}}
{{{notes|}}}
}}
}}

Revision as of 15:13, 30 August 2023

{{User:Veerserif/Sandbox/Infobox common | title = Veerserif/Sandbox | imagearea = No image.png | rows =

| style="white-space: nowrap; font-weight: bold;" |Stackable | N/A |- | style="white-space: nowrap; font-weight: bold;" |Fuel | {{{temperature}}}°C, {{{duration}}} seconds |-