Änderungen
Zur Navigation springen
Zur Suche springen
← Zum vorherigen Versionsunterschied
Zum nächsten Versionsunterschied →
Modul:ListenAuswahl
(Quelltext anzeigen)
Version vom 5. Mai 2021, 18:02 Uhr
8 Bytes entfernt
,
18:02, 5. Mai 2021
keine Bearbeitungszusammenfassung
Zeile 18:
Zeile 18:
if Pagename == nil then return nil end
if Pagename == nil then return nil end
local returnString = ""
local returnString = ""
−
local queryResult = mw.smw.ask('[['..Pagename..']]|?Seitentyp|mainlabel=-')
+
local queryResult = mw.smw.ask('[['..Pagename..']]|?Seitentyp
|?Basistyp
|mainlabel=-')
if queryResult == nil then return nil end
if queryResult == nil then return nil end
local Seitentyp = queryResult[1]['Seitentyp']
local Seitentyp = queryResult[1]['Seitentyp']
Zeile 34:
Zeile 34:
end
end
--keine Kategorienliste vorhanden, teste ob Basistyp (dann nutze Modul:ListeBasistyp)
--keine Kategorienliste vorhanden, teste ob Basistyp (dann nutze Modul:ListeBasistyp)
−
if
Seitentyp
=
= 'Basistyp'
+
if
Basistyp ~
=
nil
then
then
return "FOo"
return "FOo"
end
end
−
return returnString
..Seitentyp
+
return returnString
end
end
return p
return p
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