Module:TestWikidata: Difference between revisions

From TITAF TANGOWIKI
(Created page with "local p = {} function p.getLabel(frame) local entityId = frame.args[1] or "Q42" -- Defaults to Douglas Adams (Q42) return mw.wikibase.getLabel(entityId) or "Label not found" end return p")
(No difference)

Revision as of 21:09, 20 March 2025

Documentation for this module may be created at Module:TestWikidata/doc

local p = {}

function p.getLabel(frame)
    local entityId = frame.args[1] or "Q42"  -- Defaults to Douglas Adams (Q42)
    return mw.wikibase.getLabel(entityId) or "Label not found"
end

return p