Änderungen
Zur Navigation springen
Zur Suche springen
← Zum vorherigen Versionsunterschied
Zum nächsten Versionsunterschied →
Modul:Autoren
(Quelltext anzeigen)
Version vom 19. Dezember 2021, 00:23 Uhr
150 Bytes hinzugefügt
,
00:23, 19. Dez. 2021
keine Bearbeitungszusammenfassung
Zeile 3:
Zeile 3:
function p.getOfficalAuthors( frame )
function p.getOfficalAuthors( frame )
local ReturnString =" "
local ReturnString =" "
+
local AuthorList = {}
--liste aller Publikationen, Autoren sind ein attribut der liste
--liste aller Publikationen, Autoren sind ein attribut der liste
local queryResult = mw.smw.ask('[[Hauptkategorie::Publikation]][[Kanon::offiziell]]|?Autoren=2|mainlabel=-|limit=500')
local queryResult = mw.smw.ask('[[Hauptkategorie::Publikation]][[Kanon::offiziell]]|?Autoren=2|mainlabel=-|limit=500')
Zeile 9:
Zeile 10:
do
do
if (type(queryResult[i][1]) == "table") then
if (type(queryResult[i][1]) == "table") then
+
-- mutiple authors so we have a table
local n = 1
local n = 1
while n <= table.getn(queryResult[i][1])
while n <= table.getn(queryResult[i][1])
Zeile 18:
Zeile 20:
else
else
+
-- only one author
+
AuthorList[table.getn(AuthorList +1)] = queryResult[i][1]
ReturnString = ReturnString .. queryResult[i][1] .. '<br>'
ReturnString = ReturnString .. queryResult[i][1] .. '<br>'
end
end
Stewie
Bürokraten
,
SMW-Administratoren
,
SMW-Kuratoren
,
Administratoren
,
Widget-Bearbeiter
5.225
Bearbeitungen
Navigationsmenü
Meine Werkzeuge
Benutzerkonto erstellen
Anmelden
Namensräume
Modul
Diskussion
Varianten
Ansichten
Lesen
Quelltext anzeigen
Versionsgeschichte
Mehr
Suche
Navigation
START
▪ Die Welt
▪ Die Regeln
▪ Das Spiel
▪ Das Wiki
Artikel anlegen
Zufällige Seite
Letzte Änderungen
Semantische Angaben zeigen
Werkzeuge
Spezialseiten
Druckversion