22.321
Bearbeitungen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 384: | Zeile 384: | ||
function p.FormularZeigeNichtInStrasse(frame) | function p.FormularZeigeNichtInStrasse(frame) | ||
local t = "" | local t = "" | ||
local spalten = 10 | |||
local strasse = "Schwabacher Straße" -- wik.subpagename() | local strasse = "Schwabacher Straße" -- wik.subpagename() | ||
local query = {"[[Datei:+]][[Straße::" .. strasse .. "]]", | local query = {"[[Datei:+]][[Straße::" .. strasse .. "]]", | ||
| Zeile 392: | Zeile 393: | ||
for i, b in ipairs(query) do | for i, b in ipairs(query) do | ||
b = b[1] | b = b[1] | ||
if i % | if (i - 1) % spalten == 0 then | ||
t = t .. "<tr>\n" | t = t .. "<tr>\n" | ||
end | end | ||
| Zeile 398: | Zeile 399: | ||
" <td>[[" .. b .. "|120x120px]]</td>\n" .. | " <td>[[" .. b .. "|120x120px]]</td>\n" .. | ||
" <td>{{{field|" .. b .. "|input type=checkbox}}}</td>\n" | " <td>{{{field|" .. b .. "|input type=checkbox}}}</td>\n" | ||
if i % | if (i - 1) % spalten == (spalten - 1) then | ||
t = t .. "</tr>\n" | t = t .. "</tr>\n" | ||
end | end | ||