You can edit almost every page by Creating an account. Otherwise, see the FAQ.

Module:CommonsSitelink

Uit EverybodyWiki Bios & Wiki
Ga naar:navigatie, zoeken

--[[
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

Dit Module "CommonsSitelink" is uit Wikipedia. De lijst van zijn auteurs is te zien in zijn historische.