You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
-- Required modules for SPARQL queries and HTML table generation
local sparql = require('SPARQL')
local mwHtml = require('mw.html')
local json = require("mw.text")
local p = {}
function p.getImageWithLegend(frame)
local pidLocalImage = "P1088" -- Property ID for the local image
local pidMediaLegend = "P648" -- Property ID for the (qualifier) media legend
local qid = "Q4610" -- The target entity
local width = "480px"
local defaultLegend = "No legend available."
local imageLegend1 = "No legend available."
local imageLegend2 = "No legend available."
-- Attempt to retrieve entity data
local entity = mw.wikibase.getEntity(qid)
if not entity or not entity.claims[pidLocalImage] then
return "No image found"
end
000
1:0
Template used on this page:
Return to Module:TA4TK:myTest.