Modul:Stadtteil: Unterschied zwischen den Versionen

keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 4: Zeile 4:
pf = frame:getParent()
pf = frame:getParent()
args = pf.args
args = pf.args
 
tpl_bild = p.Bild( frame, args )
tab_bild=''
if tpl_bild:gsub("%s+", "") ~= '' then
tab_bild='<tab name=Bild>' ..
tpl_bild .. '</tab>'
end
tpl_karte = p.Karte( frame, args )
tpl_karte = p.Karte( frame, args )
tab_karte=''
tab_karte=''
Zeile 19: Zeile 26:
t ='<div class=factbox><tabs>' ..  
t ='<div class=factbox><tabs>' ..  
  tab_karte ..
  tab_karte ..
  tab_bild ..
  tab_daten ..  
  tab_daten ..  
  '</tabs></div>'
  '</tabs></div>'
Zeile 24: Zeile 32:
-- Use preprocess to render the factbox and all contens at once
-- Use preprocess to render the factbox and all contens at once
return frame:preprocess(t)
return frame:preprocess(t)
end
function p.Bild( frame, args )
t = frame:expandTemplate{title = 'Bildertab', args=args}
    return t
end
end