Content deleted Content added
auto detect module_title |
Bad syntax for calling isType |
||
Line 648:
local result = entity:formatPropertyValues(propertyID, mw.wikibase.entity.claimRanks).value
-- if number type: remove thousand separators, bounds and units
if isType(claims
result = mw.ustring.gsub(result, "(%d),(%d)", "%1%2")
result = mw.ustring.gsub(result, "(%d)±.*", "%1")
Line 663:
local entity = errorOrentity
local result = entity:formatPropertyValues(propertyID, mw.wikibase.entity.claimRanks).value
if isType(claims
result = mw.ustring.sub(result, mw.ustring.find(result, " ")+1, -1)
end
Line 677:
local entity = errorOrentity
local result
if isType(claims
-- get the url for the unit entry on Wikidata:
result = claims[1].mainsnak.datavalue.value.unit
|