Template:Block: Difference between revisions

From Vintage Story Wiki
m
i think this will fix an issue when there are missing optional params
m (oops, fixed names of vars)
m (i think this will fix an issue when there are missing optional params)
Line 12: Line 12:
|'''Material'''
|'''Material'''
|{{{Material}}}
|{{{Material}}}
}} }}
}} }}{{#if: {{{Fertility|}}} | {{#!:
{{#if: {{{Fertility|}}} |{{#!:
|-
|-
|'''Fertility'''
|'''Fertility'''
|{{{Fertility}}}
|{{{Fertility}}}
[[Category:Fertile Blocks]]
[[Category:Fertile Blocks]]
}} }}
}} }}{{#if: {{{LightLevel|}}} | {{#!:
{{#if: {{{LightLevel|}}} | {{#!:
|-
|-
|'''Light Level'''
|'''Light Level'''
|{{{LightLevel}}}
|{{{LightLevel}}}
[[Category:Light Emitters]]
[[Category:Light Emitters]]
}} }}
}} }}{{#if: {{{DropCode1|}}} | {{#!:
{{#if: {{{DropCode1|}}} | {{#!:
|-
|-
{{Drops
{{Drops
Line 41: Line 38:
|Var4={{{DropVar4|}}}
|Var4={{{DropVar4|}}}
}}
}}
}} }}
}} }}{{#if: {{{Temp|}}} | {{#!:
{{#if: {{{Temp|}}} | {{#!:
|-
|-
{{Item/Fuel
{{Item/Fuel
Confirmedusers, Bureaucrats, editor, Administrators
1,522

edits