Модул:Wikidata: Разлика между версии

Изтрито е съдържание Добавено е съдържание
DioBrandovich (беседа | приноси)
Нова страница: „local wiki = { langcode = mw.language.getContentLanguage().code } local i18n = { ["errors"] = { ["property-param-not-provided"] = "Property parameter not pro...“
 
м Critical performance improvement phab:T178114
 
Ред 398:
return entity.claims[property]
else
property = mw.wikibase.resolvePropertyId(property)
-- otherwise, iterate over all properties, fetch their labels and compare this to the given property name
if mw.wikibase.label(k) ==not property then return v end
for k, v in pairs(entity.claims) do
 
if mw.wikibase.label(k) == property then return v end
return entity.claims[property]
end
return
end
end