Modul:Tutorial 03 01

Aus Splitterwiki
Zur Navigation springen Zur Suche springen

Die Dokumentation für dieses Modul kann unter Modul:Tutorial 03 01/Doku erstellt werden

local p = {} --local p = {} -- p steht für Paket (engl. package)

function p.getOfficalAuthors( frame )
	-- rückgabe variable
	local ReturnString = ""
	--liste aller Publikationen, Autoren sind ein attribut der liste
	local queryResult =  mw.smw.ask('[[Hauptkategorie::Publikation]][[Kanon::offiziell]]|?Autoren#-=2|limit=10')
	local i = 1
	while i <= table.getn(queryResult) 
	do
		ReturnString = ReturnString .. "Publikationstitel:" .. queryResult[i][1] .."<br>"
		i = i + 1
	end

    return ReturnString
end


return p