Änderungen

Zur Navigation springen Zur Suche springen
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

Navigationsmenü