20.658
Bearbeitungen
(fix Link auf sich selbst) |
(- smw.addAttrToList(fbdata.attr.list, "Seite", fbdata.fullpagename) verschoben nach Modul:Faktenbox/Common) |
||
| (3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 25: | Zeile 25: | ||
fbdata.formular = frame.args["Formular"] or frame.args["KategorieEinzahl"] or "Publikation" -- ggf. "Publikation/Work" | fbdata.formular = frame.args["Formular"] or frame.args["KategorieEinzahl"] or "Publikation" -- ggf. "Publikation/Work" | ||
fbdata.positionscheck = false | fbdata.positionscheck = false | ||
-- Titel | |||
fbdata.pargs["Titel"] = fbdata.pargs["Titel"] or fbdata.pagename | |||
-- Index-Seite | |||
fbdata.indexpage = "Index:" .. (fbdata.pargs["Index"] or fbdata.pagename) | |||
if wik.pageExists(fbdata.indexpage) then | |||
smw.addAttrToList(fbdata.attr.list, "Index", fbdata.indexpage) | |||
fbdata.bildlink = fbdata.indexpage | |||
else | |||
fbdata.indexpage = nil | |||
end | |||
-- Tabs einsammeln und zusammenfügen | -- Tabs einsammeln und zusammenfügen | ||
local t = fab.bildTab(fbdata) .. p.datenTab(fbdata) | local t = fab.bildTab(fbdata) .. p.datenTab(fbdata) | ||
t = fab. | t = fab.factbox_header_footer(t) | ||
-- Buch-spezifische Kategorien usw. | -- Buch-spezifische Kategorien usw. | ||
| Zeile 52: | Zeile 64: | ||
-- Zusammenbau | -- Zusammenbau | ||
t = t .. p.zeileKategorieSeite(fbdata) | t = t .. p.zeileKategorieSeite(fbdata) | ||
t = t .. fab.zeile{fbdata = fbdata, attr_name = "Untertitel", delimiter = ";"} | t = t .. fab.zeile{fbdata = fbdata, attr_name = "Untertitel", delimiter = ";"} | ||
t = t .. p.zeileReihe(fbdata) | t = t .. p.zeileReihe(fbdata) | ||
t = t .. fab.zeile{fbdata = fbdata, attr_name = "Band | t = t .. fab.zeile{fbdata = fbdata, attr_name = "Band"} | ||
t = t .. p.zeileGenre(fbdata) | t = t .. p.zeileGenre(fbdata) | ||
t = t .. fab.zeile{fbdata = fbdata, attr_name = "Ausfuehrung"} | t = t .. fab.zeile{fbdata = fbdata, attr_name = "Ausfuehrung"} | ||
| Zeile 68: | Zeile 79: | ||
t = t .. fab.zeile{fbdata = fbdata, attr_name = "Besonderheit", delimiter = ";"} | t = t .. fab.zeile{fbdata = fbdata, attr_name = "Besonderheit", delimiter = ";"} | ||
t = t .. fab.zeile{fbdata = fbdata, attr_name = "BestandArchivFuerthWiki", delimiter = ";"} | t = t .. fab.zeile{fbdata = fbdata, attr_name = "BestandArchivFuerthWiki", delimiter = ";"} | ||
t = t .. "</ | if fbdata.indexpage ~= nil then | ||
t = t .. "<dt>" .. wob.attrText("Index") .. " 👓</dt>" | |||
t = t .. "<dd>'''[[" .. fbdata.indexpage .. "|" .. string.sub(fbdata.indexpage, 7) .. "]]'''</dd>" | |||
end | |||
t = fab.table_header_footer(t) | |||
t = t .. fab.zeileSemantikBrowsenAbfrage(fbdata) | t = t .. fab.zeileSemantikBrowsenAbfrage(fbdata) | ||
| Zeile 90: | Zeile 105: | ||
end | end | ||
t = t .. "<dt>[[:Kategorie:" .. fbdata.kategorie[kindex or 1] .. "|" .. kategorie_einzahl .. "-Titel]]</dt>" | t = t .. "<dt>[[:Kategorie:" .. fbdata.kategorie[kindex or 1] .. "|" .. kategorie_einzahl .. "-Titel]]</dt>" | ||
t = t .. "<dd>'''" .. | if fbdata.indexpage ~= nil then | ||
t = t .. "<dd>'''[[" .. fbdata.indexpage .. "|" .. fbdata.pargs["Titel"] .. "]]'''</dd>" | |||
smw.addAttrToList(fbdata.attr.list, " | else | ||
t = t .. "<dd>'''" .. fbdata.pargs["Titel"] .. "'''</dd>" | |||
end | |||
smw.addAttrToList(fbdata.attr.list, "Publikationstitel", fbdata.pargs["Titel"]) | |||
-- mw.logObject(t, "t") | -- mw.logObject(t, "t") | ||
return t | return t | ||