Module:MaterialInfobox: Difference between revisions
Content deleted Content added
That didn't work, so let's return dummy values |
Correct variable names and handling all the cases |
||
Line 33:
end
return output
end
function SplitHelperMethod(func_name, 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]( value )
end
end
end
return value
end
function Infobox.SplitLabelMethod( field, vars )
return
}
end
function Infobox.SplitValueMethod( field, vars )
| |||