Content deleted Content added
Fixed issue with -0 value; changed movable separator default under certain condition |
Fixed issue where no short name was retrieved when a call to 'label' with 'short' flag and without item ID was done |
||
Line 533:
function getShortName(itemID)
if itemID then
return p._property({itemID, aliasesP.shortName}) -- "property" is single else
return p._property({aliasesP.shortName}) -- "property" is single
end
end
function getLabel(ID)
if ID then
return p._label({ID}) else
return p._label({})
end
end
Line 1,815 ⟶ 1,823:
else
if not _.pageTitle then
if _.curState.shortName then
label = mw.wikibase.label()▼
label = getShortName()
end
-- at this point, 'label' will be a string and not nil
if label == "" then
▲ label = mw.wikibase.label()
end
else
-- set 'label' to nil so 'title' will always prevail
label = nil
end
-- at this point, 'label' will be nil or a non-empty string
if _.curState.linked or label == nil then
|