Änderungen

1.338 Bytes hinzugefügt ,  16:06, 25. Dez. 2021
keine Bearbeitungszusammenfassung
Zeile 3: Zeile 3:  
function p.getMitarbeit( frame )
 
function p.getMitarbeit( frame )
 
local Name= frame.args['Name']
 
local Name= frame.args['Name']
local ReturnString = ""
+
local ReturnString = '<h1>' .. Name .. ' beteiligte sich an Folgenden Publikationen:</h1>'
 
-- Redakteuer
 
-- Redakteuer
 
local queryResult =  mw.smw.ask('[[Hauptkategorie::Publikation]][[Kanon::offiziell]][[Redaktion::'.. Name ..']]|limit=500')
 
local queryResult =  mw.smw.ask('[[Hauptkategorie::Publikation]][[Kanon::offiziell]][[Redaktion::'.. Name ..']]|limit=500')
Zeile 21: Zeile 21:  
if queryResult ~= nil then
 
if queryResult ~= nil then
 
ReturnString = ReturnString .. '<h2>Autor:in</h2><small>'
 
ReturnString = ReturnString .. '<h2>Autor:in</h2><small>'
 +
while n <= table.getn(queryResult)
 +
do
 +
ReturnString = ReturnString .. queryResult[n][1] .. '<br>'
 +
n = n +1
 +
end
 +
ReturnString = ReturnString ..'</small>'
 +
end
 +
-- Illustration
 +
local queryResult =  mw.smw.ask('[[Hauptkategorie::Publikation]][[Kanon::offiziell]][[Illustratoren::'.. Name ..']]|limit=500')
 +
n = 1
 +
if queryResult ~= nil then
 +
ReturnString = ReturnString .. '<h2>Illustrator:in</h2><small>'
 +
while n <= table.getn(queryResult)
 +
do
 +
ReturnString = ReturnString .. queryResult[n][1] .. '<br>'
 +
n = n +1
 +
end
 +
ReturnString = ReturnString ..'</small>'
 +
end
 +
-- fan reaktion
 +
local queryResult =  mw.smw.ask('[[Hauptkategorie::Publikation]][[Kanon::nicht offiziell]][[Redaktion::'.. Name ..']]|limit=500')
 +
n = 1
 +
if queryResult ~= nil then
 +
ReturnString = ReturnString .. '<h2>Fan Redakteur:in</h2><small>'
 
while n <= table.getn(queryResult)
 
while n <= table.getn(queryResult)
 
do
 
do
Zeile 33: Zeile 57:  
if queryResult ~= nil then
 
if queryResult ~= nil then
 
ReturnString = ReturnString .. '<h2>Fan Autor:in</h2><small>'
 
ReturnString = ReturnString .. '<h2>Fan Autor:in</h2><small>'
 +
while n <= table.getn(queryResult)
 +
do
 +
ReturnString = ReturnString .. queryResult[n][1] .. '<br>'
 +
n = n +1
 +
end
 +
ReturnString = ReturnString ..'</small>'
 +
end
 +
-- Illustration
 +
local queryResult =  mw.smw.ask('[[Hauptkategorie::Publikation]][[Kanon::nicht offiziell]][[Illustratoren::'.. Name ..']]|limit=500')
 +
n = 1
 +
if queryResult ~= nil then
 +
ReturnString = ReturnString .. '<h2>Fan Illustrator:in</h2><small>'
 
while n <= table.getn(queryResult)
 
while n <= table.getn(queryResult)
 
do
 
do