Module:CommonsSitelink: verschil tussen versies
Uit Wiki Raamsdonk
change mw.wikibase.getEntitiy (deprecated) to mw.wikibase.getEntityObject |
k 1 versie geïmporteerd |
| (Een tussenliggende versie door dezelfde gebruiker niet weergegeven) | |
(geen verschil)
| |
Huidige versie van 15 feb 2026 11:27
--[[
Simple module to get the sitelink to Commons for the current page
{{#Invoke:CommonsSitelink | commonsSitelink }}
]]
local p = {}
-- Return title of the page at Commons linked to this page.
function p.commonsSitelink(frame)
globalFrame = frame
local args = frame.args
local entity = mw.wikibase.getEntityObject()
if entity and entity.sitelinks and entity.sitelinks.commonswiki then
return entity.sitelinks.commonswiki.title
else
return ''
end
end
return p
