Modul:Gegner Ehemalige Spieler: Unterschied zwischen den Versionen
Kategorieabfragen für ehemalige Spieler auf 5000 Einträge erweitert |
Ehemalige-Spieler-Modul auf vier Spalten und volle Breite erweitert |
||
| Zeile 174: | Zeile 174: | ||
return { | return { | ||
tableClass = "wikitable", | tableClass = "wikitable", | ||
tableStyle = "font-size:95%; width: | tableStyle = "font-size:95%; width:100%; table-layout:fixed;", | ||
headerStyle = "background:#00205B; color:#FFFFFF; text-align:center;", | headerStyle = "background:#00205B; color:#FFFFFF; text-align:center;", | ||
cellStyles = { | cellStyles = { | ||
"width: | "width:25%; background:#eeeeee; vertical-align:top;", | ||
"width: | "width:25%; background:#f7f7f7; vertical-align:top;", | ||
"width:25%; background:#eeeeee; vertical-align:top;", | |||
"width:25%; background:#f7f7f7; vertical-align:top;", | |||
}, | }, | ||
} | } | ||
| Zeile 185: | Zeile 187: | ||
return { | return { | ||
tableClass = "wikitable plainrowheaders", | tableClass = "wikitable plainrowheaders", | ||
tableStyle = "font-size:95%; width: | tableStyle = "font-size:95%; width:100%; table-layout:fixed;", | ||
headerStyle = "background-color:#eef3f8; text-align:center;", | headerStyle = "background-color:#eef3f8; text-align:center;", | ||
cellStyles = { | cellStyles = { | ||
"width: | "width:25%; background-color:#f8fafc; vertical-align:top;", | ||
"width: | "width:25%; background-color:#eef3f8; vertical-align:top;", | ||
"width:25%; background-color:#f8fafc; vertical-align:top;", | |||
"width:25%; background-color:#eef3f8; vertical-align:top;", | |||
}, | }, | ||
} | } | ||
| Zeile 211: | Zeile 215: | ||
local entries = buildIntersection(opponentCategory, kasselCategories) | local entries = buildIntersection(opponentCategory, kasselCategories) | ||
local columns = splitIntoColumns(entries, | local columns = splitIntoColumns(entries, 4) | ||
local title = getArg(frame, "title") | local title = getArg(frame, "title") | ||
if title == "" then | if title == "" then | ||
| Zeile 225: | Zeile 229: | ||
return table.concat({ | return table.concat({ | ||
string.format('{| class="%s" style="%s"', styleConfig.tableClass, styleConfig.tableStyle), | string.format('{| class="%s" style="%s"', styleConfig.tableClass, styleConfig.tableStyle), | ||
string.format('! colspan= | string.format('! colspan=4 style="%s"|%s', styleConfig.headerStyle, title), | ||
"|-", | "|-", | ||
string.format('| colspan= | string.format('| colspan=4 style="%s"|%s', styleConfig.cellStyles[1], emptyText), | ||
"|}", | "|}", | ||
}, "\n") | }, "\n") | ||
| Zeile 234: | Zeile 238: | ||
return table.concat({ | return table.concat({ | ||
string.format('{| class="%s" style="%s"', styleConfig.tableClass, styleConfig.tableStyle), | string.format('{| class="%s" style="%s"', styleConfig.tableClass, styleConfig.tableStyle), | ||
string.format('! colspan= | string.format('! colspan=4 style="%s"|%s', styleConfig.headerStyle, title), | ||
"|-", | "|-", | ||
'| style="' .. styleConfig.cellStyles[1] .. '"|' .. renderColumn(columns[1]), | '| style="' .. styleConfig.cellStyles[1] .. '"|' .. renderColumn(columns[1]), | ||
'| style="' .. styleConfig.cellStyles[2] .. '"|' .. renderColumn(columns[2]), | '| style="' .. styleConfig.cellStyles[2] .. '"|' .. renderColumn(columns[2]), | ||
'| style="' .. styleConfig.cellStyles[3] .. '"|' .. renderColumn(columns[3]), | |||
'| style="' .. styleConfig.cellStyles[4] .. '"|' .. renderColumn(columns[4]), | |||
"|}", | "|}", | ||
}, "\n") | }, "\n") | ||