Board Thread:Support Requests - Getting Technical/@comment-26009169-20151211001130/@comment-26009169-20151214001606

So it seems like there is a bug from reading over the source code. When you use a CustomModule, the InfoboxBuilder expects that Split will pass a list of 2 strings in label and 2 strings in value, as User:Srjek discovered. So if you use CustomModule and have type Split somewhere, you have to use Lua. For future people with same issue, below is a code that works

function SplitRunFunction(func_name, field, vars, value) if type( func_name ) == "string" then if not HF.isempty( func_name ) then if type( Infobox[func_name] ) == "function" then return Infobox[func_name]( field, vars, value ) -- I tried a hack where I modified field.Value to little success, so I resorted to calling it with different arguments -- end end end return value end function Infobox.ExampleSplitLabelMethod( field, vars ) return { SplitRunFunction( field.LabelLeftMethod, field, vars, field.LabelLeft ), SplitRunFunction( field.LabelRightMethod, field, vars, field.LabelRight ) }   end function Infobox.ExampleSplitValueMethod( field, vars ) return { SplitRunFunction( field.ValueLeftMethod, field, vars, field.ValueLeft ), SplitRunFunction( field.ValueRightMethod, field, vars, field.ValueRight ) }   end function Infobox.SplitNewline( field, vars ) return { SplitNewlineHelper( field.ValueLeft ), SplitNewlineHelper( field.ValueRight ) }   end

And in the InfoboxBuilder code:

...   |  3:Type  = Split | 3:LabelMethod = ExampleSplitLabelMethod | 3:LabelLeft = Known uses | 3:ValueLeft = ...

Might be some parts of code in that which are not needed, but you need something that works similar for Split to work. I've updated the documentation on how Split works, but not added a note about the bug.