"ഘടകം:Wd" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം

Content deleted Content added
Added edit links to references
reverting as the change seems to cause unforeseen issues
വരി 706:
end
 
function Config:getEditLinkgetEditIcon()
local backvalue = ""
local prefix = ""
local linkfront = " "
local frontback = " "
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
return link
end
 
function Config:getEditIcon(caption)
caption = caption or i18n['info']['edit-on-wikidata']
return "[[File:Blue pencil.svg|frameless|text-top|10px|alt=" .. caption .. "|link=" .. self:getEditLink() .. "|" .. caption .. "]]"
end
 
function Config:getClaimEditIcon()
local front = " "
local back = ""
if self.editAtEnd then
Line 747 ⟶ 729:
end
linkvalue = "[[File:Blue pencil.svg|frameless|text-top|10px|alt=" .. i18n['info']['edit-on-wikidata'] .. "|link=https://www.wikidata.org/wiki/" .. prefix .. self.entityID .. "?uselang=" .. self.langCode
return front .. self:getEditIcon() .. back
if self.propertyID then
linkvalue = linkvalue .. "#" .. self.propertyID
elseif self.pageTitle then
linkvalue = linkvalue .. "#sitelinks-wikipedia"
end
captionvalue = captionvalue or.. "|" .. i18n['info']['edit-on-wikidata'] .. "]]"
return front .. self:getEditIcon()value .. back
end
 
Line 1,877 ⟶ 1,869:
if value ~= "" then
if not mw.isSubsting() then
value = value .. " <small class=\"plainlinks\">&#91;" .. self.conf:getEditIcon(i18n['info']['edit-on-wikidata-short']) .. " [" .. self.conf:getEditLink() .. " " .. i18n['info']['edit-on-wikidata-short'] .. "]&#93;</small>"
end
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 .. _:getClaimEditIcongetEditIcon()
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 .. _:getClaimEditIcongetEditIcon()
end
"https://ml.wikipedia.org/wiki/ഘടകം:Wd" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്