"ഘടകം:Wd" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം
Content deleted Content added
Added edit links to references |
reverting as the change seems to cause unforeseen issues |
||
വരി 706:
end
function Config:
local prefix = ""
local
if self.entityID:sub(1,1) == "P" then
prefix = "Property:"
end
link = "https://www.wikidata.org/wiki/" .. prefix .. self.entityID .. "?uselang=" .. self.langCode▼
if self.propertyID then▼
link = link .. "#" .. self.propertyID▼
elseif self.pageTitle then▼
link = link .. "#sitelinks-wikipedia"▼
end▼
caption = caption or i18n['info']['edit-on-wikidata']▼
▲ local front = " "
▲ local back = ""
if self.editAtEnd then
Line 747 ⟶ 729:
end
▲
return front .. self:getEditIcon() .. back▼
▲ if self.propertyID then
▲ elseif self.pageTitle then
▲ end
end
Line 1,877 ⟶ 1,869:
if value ~= "" then
value = {value} -- create one value object
Line 2,349 ⟶ 2,337:
-- if desired, add a clickable icon that may be used to edit the returned values on Wikidata
if _.editable and value ~= "" then
value = value .. _:
end
Line 2,527 ⟶ 2,515:
if _.editable and value ~= "" then
-- if desired, add a clickable icon that may be used to edit the returned value on Wikidata
value = value .. _:
end
|