Zeile 38: |
Zeile 38: |
| if Basistyp ~= nil | | if Basistyp ~= nil |
| then | | then |
− | returnString = mw.getCurrentFrame():expandTemplate{title ="Liste_"..Basistyp} | + | -- teste ob Liste_Pagename vorhanden ist |
− | return returnString
| + | local Vorlage = mw.title.new('Liste_'..Basistyp, 'Vorlage' ) |
| + | if Vorlage.exists |
| + | then |
| + | returnString = mw.getCurrentFrame():expandTemplate{title ="Liste_"..Basistyp} |
| + | return returnString |
| + | end |
| end | | end |
| return returnString | | return returnString |