Template:Consumables: Difference between revisions

From PZwiki
(added "position" parameter for the table's position on the page. Options are: left, right or center)
m (added table position parameter to each table)
Line 35: Line 35:


-->{{#ifexpr:{{{perishable|0}}}<>0| {{#ifexpr:{{{cookable|0}}}=0|
-->{{#ifexpr:{{{perishable|0}}}<>0| {{#ifexpr:{{{cookable|0}}}=0|
<TABLE class="mw-collapsible wikitable" style="text-align: center; margin-left:auto; margin-right:auto; vertical-align:text-top;">
<TABLE class="mw-collapsible wikitable" style="text-align: center; {{#switch: {{{position|}}}|center=margin-left:auto; margin-right:auto;|right=margin-left:auto;|left=margin-right:auto;|}} vertical-align:text-top;">
   <TR>
   <TR>
     <TH colspan="3">Nutritional Information</TH>
     <TH colspan="3">Nutritional Information</TH>
Line 54: Line 54:


-->{{#ifexpr:{{{cookable|0}}}<>0| {{#ifexpr:{{{perishable|0}}}=0|
-->{{#ifexpr:{{{cookable|0}}}<>0| {{#ifexpr:{{{perishable|0}}}=0|
<TABLE class="mw-collapsible wikitable" style="text-align: center; margin-left:auto; margin-right:auto; vertical-align:text-top;">
<TABLE class="mw-collapsible wikitable" style="text-align: center; {{#switch: {{{position|}}}|center=margin-left:auto; margin-right:auto;|right=margin-left:auto;|left=margin-right:auto;|}} vertical-align:text-top;">
   <TR>
   <TR>
     <TH colspan="3">Nutritional Information</TH>
     <TH colspan="3">Nutritional Information</TH>

Revision as of 07:05, 22 June 2018

[view] [edit] [history] [purge] Template documentation
This template doesn't have any documentation yet! Help out by writing some.
Documentation transcluded from Template:Consumables/doc.
Editors can experiment in this template's sandbox (create)