Some magic wiki trick for tables of unknown size ?

Fragment of a discussion from User talk:Zoycite
Jump to: navigation, search

Haha, right I forgot. Thanks :) But still, the unused parameters are considered as empty rows in the table. It looks weird... check http://zoywiki.com/index.php/LoH/crafting/Upstarts_Photograph_test

Mandal (talk)14:59, 15 January 2013

ah I see the problem...

{{ #if:{{{recipe6|}}} | {{LoH/ForgeRow|{{{recipe6}}}}} |}}

On all of your recipe lines you are saying

if( recipe6 is set )
{
display ForgeRow recipe6
}
else
{
display blank line
}

This is a pretty trivial fix, it is just the way in which you have closed your #if parser function

Change:
{{ #if:{{{recipe6|}}} | {{LoH/ForgeRow|{{{recipe6}}}}} |}}
To:
{{ #if:{{{recipe6|}}} | {{LoH/ForgeRow|{{{recipe6}}}}} }}

Also it might help to declare this block in your table as its own cell

|-
{{ #if:{{{recipe1|}}} | {{LoH/ForgeRow|{{{recipe1}}}}} |}}
{{ #if:{{{recipe2|}}} | {{LoH/ForgeRow|{{{recipe2}}}}} |}}
{{ #if:{{{recipe3|}}} | {{LoH/ForgeRow|{{{recipe3}}}}} |}}
{{ #if:{{{recipe4|}}} | {{LoH/ForgeRow|{{{recipe4}}}}} |}}
{{ #if:{{{recipe5|}}} | {{LoH/ForgeRow|{{{recipe5}}}}} |}}
{{ #if:{{{recipe6|}}} | {{LoH/ForgeRow|{{{recipe6}}}}} |}}

Making that a sub table might help not sure though i havent looked into it too far.
Zoycite (talk)07:41, 17 January 2013