Modul:Ereignis: Unterschied zwischen den Versionen

keine Bearbeitungszusammenfassung
(Umstellung Slash anstelle Dot)
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
local p = {} --p stands for package
local p = {} --p stands for package


function p.Faktenbox( frame )
function p.Faktenbox(frame)
pf = frame:getParent()
local args = frame:getParent().args
args = pf.args
-- Before you ask: No, you cant' use extensionTag here!
-- Before you ask: No, you cant' use extensionTag here!
tpl_bild = p.Bild( frame, args )
local tpl_bild = p.bild(frame, args)
tab_bild=''
local tab_bild=''
if tpl_bild:gsub("%s+", "") ~= '' then
if tpl_bild:gsub("%s+", "") ~= '' then
tab_bild='<tab name=Bild>' ..  
tab_bild='<tab name=Bild>' ..  
Zeile 14: Zeile 13:
-- The tab "Daten" is visible everytime
-- The tab "Daten" is visible everytime
tpl_daten = p.Daten( frame, args )
local tpl_daten = p.daten(frame, args)
tab_daten='<tab name=Daten>' ..  
local tab_daten='<tab name=Daten>' ..  
tpl_daten .. '</tab>'
tpl_daten .. '</tab>'
t ='<div class=factbox><tabs>' ..
local t ='<div class=factbox><tabs>' ..
  tab_bild ..  
  tab_bild ..  
  tab_daten ..  
  tab_daten ..  
Zeile 27: Zeile 26:
end
end


function p.Bild( frame, args )
function p.bild(frame, args)
t = frame:expandTemplate{title = 'Bildertab', args={
    return frame:expandTemplate{title = 'Bildertab', args={Bild=args.Bild}}
Bild=args.Bild}
}
    return t
end
end


function p.Daten( frame, args )
function p.daten(frame, args)
t = frame:expandTemplate{title = 'Ereignis/Daten', args=args}
    return frame:expandTemplate{title = 'Ereignis/Daten', args=args}
    return t
end
end


return p
return p
82.367

Bearbeitungen