Module:MwJson: Difference between revisions

m
no edit summary
(handle statements: default named after relation)
mNo edit summary
Line 650: Line 650:
elseif (jsondata['property'] ~= nil) then properties['Display title of'] = ".." .. jsondata['property']:gsub(p.keys.property_ns_prefix .. ":","") .. ".."
elseif (jsondata['property'] ~= nil) then properties['Display title of'] = ".." .. jsondata['property']:gsub(p.keys.property_ns_prefix .. ":","") .. ".."
elseif (jsondata['predicate'] ~= nil) then properties['Display title of'] = ".." .. jsondata['predicate']:gsub(p.keys.property_ns_prefix .. ":","") .. ".."
elseif (jsondata['predicate'] ~= nil) then properties['Display title of'] = ".." .. jsondata['predicate']:gsub(p.keys.property_ns_prefix .. ":","") .. ".."
elseif (jsondata['quantity'] ~= nil) then properties['Display title of'] = ".." .. jsondata['quantity']:gsub(p.keys.property_ns_prefix .. ":","") .. ".."
elseif (jsondata['quantity'] ~= nil) then properties['Display title of'] = ".. " .. jsondata['quantity']:gsub(p.keys.property_ns_prefix .. ":","") .. " .."
else properties['Display title of'] = p.defaultArg(parent_schema_property.schema_data['title'], "") end
else properties['Display title of'] = p.defaultArg(parent_schema_property.schema_data['title'], "") end
if (p.tableLength(properties) > 0) then
if (p.tableLength(properties) > 0) then