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
 
(4 intermediate revisions by the same user not shown)
Line 2: Line 2:


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

Latest revision as of 23:59, 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