Module:Param Parse: Difference between revisions
if variant is N/A, prevent writing to SMW since the SMW parameter is of datatype page
(exception case for variant, if it is 'N/A' then do not format as a link) |
(if variant is N/A, prevent writing to SMW since the SMW parameter is of datatype page) |
||
Line 458:
end
return ('[[%s|%s]]'):format(v, name)
end
function parse.variant_smw_func(v)
v = parse.has_content(v)
if v == 'N/A' then
return
end
return v
end
local function name_without_variant_category(name, variant_name)
Line 510 ⟶ 517:
name = 'variant',
func = parse.variant_category_func,
smw_func = parse.
smw_property = 'Variant of',
category_incomplete = 'Needs variant'
|