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
No edit summary
Line 4: Line 4:
EntityID = mw.wikibase.getEntityIdForCurrentPage()
EntityID = mw.wikibase.getEntityIdForCurrentPage()
Author = mw.wikibase.getEntity(EntityID)
Author = mw.wikibase.getEntity(EntityID)
Works = Author:getAllStatements('P25')
Works = Author:getAllStatements('works')
return tostring(Works)
return 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('works')
	return Works
end
return p