Content deleted Content added
internationalise |
add propertyID parameter |
||
Line 29:
local qid = frame.args.qid
if qid and (#qid == 0) then qid = nil end
-- The module can take a parameter pid=
-- which will create a link to that property in the Wikidata entry for the article
local propertyID = mw.text.trim(frame.args.pid or "")
-- Get the object containing all the claims for the article
Line 36 ⟶ 40:
if qid then thisQid = qid else thisQid = entity.id end
local icon
local icon = " [[File:Blue pencil.svg |frameless |text-top |10px |alt=" .. i18n.message .. " |link=https://www.wikidata.org/wiki/" .. thisQid .. "|" .. i18n.message .. "]]"▼
if propertyID then
icon = " [[File:Blue pencil.svg |frameless |text-top |10px |alt=" .. i18n.message .. " |link=https://www.wikidata.org/wiki/" .. thisQid .. "#" .. propertyID .. "|" .. i18n.message .. "]]"
else
▲
end
return icon
|