Modul:Unternehmen: Unterschied zwischen den Versionen
Aus FürthWiki
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 4: | Zeile 4: | ||
local args = frame:getParent().args | local args = frame:getParent().args | ||
local tpl_bild = p. | local tpl_bild = p.bild(frame, args) | ||
local tab_bild='' | local tab_bild='' | ||
if tpl_bild:gsub("%s+", "") ~= '' then | if tpl_bild:gsub("%s+", "") ~= '' then | ||
| Zeile 12: | Zeile 12: | ||
-- The tab "Daten" is visible everytime | -- The tab "Daten" is visible everytime | ||
local tpl_daten = p. | local tpl_daten = p.daten(frame, args) | ||
local tab_daten='<tab name=Daten>' .. | local tab_daten='<tab name=Daten>' .. | ||
tpl_daten .. '</tab>' | tpl_daten .. '</tab>' | ||
local tpl_adressen = p. | local tpl_adressen = p.adressen(frame, args) | ||
local tab_adressen='' | local tab_adressen='' | ||
if tpl_adressen:gsub("%s+", "") ~= '' then | if tpl_adressen:gsub("%s+", "") ~= '' then | ||
| Zeile 23: | Zeile 23: | ||
end | end | ||
local tpl_funktionaere = p. | local tpl_funktionaere = p.funktionaere(frame, args) | ||
local tab_funktionaere='' | local tab_funktionaere='' | ||
if tpl_funktionaere:gsub("%s+", "") ~= '' then | if tpl_funktionaere:gsub("%s+", "") ~= '' then | ||
| Zeile 30: | Zeile 30: | ||
end | end | ||
local tpl_bilanzdaten = p. | local tpl_bilanzdaten = p.bilanzdaten(frame, args) | ||
local tab_bilanzdaten='' | local tab_bilanzdaten='' | ||
if tpl_bilanzdaten:gsub("%s+", "") ~= '' then | if tpl_bilanzdaten:gsub("%s+", "") ~= '' then | ||
Version vom 24. August 2025, 13:47 Uhr
Seiten-Übersicht
| Hauptseite | Unterseiten | ||
|---|---|---|---|
| Allgemein | |||
| Faktenbox | Vorlagen | ||
| Formulare |
|
||
| Module | |||
| Abfrage | Vorlagen |
| |
| Formulare |
| ||
| Sonstige | |||
Siehe auch
local p = {} --p stands for package
function p.Faktenbox(frame)
local args = frame:getParent().args
local tpl_bild = p.bild(frame, args)
local tab_bild=''
if tpl_bild:gsub("%s+", "") ~= '' then
tab_bild='<tab name=Bild>' ..
tpl_bild .. '</tab>'
end
-- The tab "Daten" is visible everytime
local tpl_daten = p.daten(frame, args)
local tab_daten='<tab name=Daten>' ..
tpl_daten .. '</tab>'
local tpl_adressen = p.adressen(frame, args)
local tab_adressen=''
if tpl_adressen:gsub("%s+", "") ~= '' then
tab_adressen='<tab name=Adressen>' ..
tpl_adressen .. '</tab>'
end
local tpl_funktionaere = p.funktionaere(frame, args)
local tab_funktionaere=''
if tpl_funktionaere:gsub("%s+", "") ~= '' then
tab_funktionaere='<tab name=Funktionäre>' ..
tpl_funktionaere .. '</tab>'
end
local tpl_bilanzdaten = p.bilanzdaten(frame, args)
local tab_bilanzdaten=''
if tpl_bilanzdaten:gsub("%s+", "") ~= '' then
tab_bilanzdaten='<tab name=Bilanzdaten>' ..
tpl_bilanzdaten .. '</tab>'
end
t ='<div class=factbox><tabs>' ..
tab_bild ..
tab_daten ..
tab_adressen ..
tab_funktionaere ..
tab_bilanzdaten ..
'</tabs></div>'
-- Use preprocess to render the factbox and all contens at once
return frame:preprocess(t)
end
function p.bild(frame, args)
return frame:expandTemplate{title = 'Bildertab', args=args}
end
function p.daten(frame, args)
return frame:expandTemplate{title = 'Unternehmen/Daten', args=args}
end
function p.adressen(frame, args)
return frame:expandTemplate{title = 'Adressen'}
end
function p.funktionaere(frame, args)
return frame:expandTemplate{title = 'Funktionäre'}
end
function p.bilanzdaten(frame, args)
return frame:expandTemplate{title = 'Bilanzdaten'}
end
return p