Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Library works: Difference between revisions

From ProleWiki, the proletarian encyclopedia
mNo edit summary
mNo edit summary
Line 5: Line 5:
Author = mw.wikibase.getEntity(EntityID)
Author = mw.wikibase.getEntity(EntityID)
Works = Author:getAllStatements('P25')
Works = Author:getAllStatements('P25')
return Works
return tostring(Works)
end
end
return p
return p

Revision as of 23:58, 30 November 2021

local p = {}

function p.main(frame) 
	EntityID = mw.wikibase.getEntityIdForCurrentPage()
	Author = mw.wikibase.getEntity(EntityID)
	Works = Author:getAllStatements('P25')
	return tostring(Works)
end
return p