Module:MaterialInfobox: Difference between revisions

Content deleted Content added
Correct variable names and handling all the cases
That last edit worked, so let's rename that helper function and do it for values as well.
Line 35:
end
 
function SplitHelperMethodSplitRunFunction(func_name, value)
if type( func_name ) == "string" then
if not HF.isempty( func_name ) then
Line 48:
function Infobox.SplitLabelMethod( field, vars )
return {
SplitHelperMethodSplitRunFunction( field.LabelLeftMethod, field.LabelLeft ),
SplitHelperMethodSplitRunFunction( field.LabelRightMethod, field.LabelRight )
}
end
function Infobox.SplitValueMethod( field, vars )
return { "TestValue1", "TestValue2" } --[[ {
Infobox[SplitRunFunction( field.LeftValueMethod ](ValueLeftMethod, field.LeftValueValueLeft ),
Infobox[SplitRunFunction( field.RightValueMethod ](ValueRightMethod, field.RightValueValueRight )
} --]]
end