Modul:BoxModul: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung Markierung: Zurückgesetzt |
Keine Bearbeitungszusammenfassung Markierung: Manuelle Zurücksetzung |
||
| (Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt) | |||
| Zeile 5: | Zeile 5: | ||
local size = frame.args[2] or "300" | local size = frame.args[2] or "300" | ||
local text = frame.args[3] or "" | local text = frame.args[3] or "" | ||
local output = string.format([[ | local output = string.format([[ | ||
<div style="display: inline-block; text-align: center | <div style="display: inline-block; text-align: center;"> | ||
<gallery mode="traditional" widths=%s heights=%s> | <gallery mode="traditional" widths=%s heights=%s> | ||
File:%s | File:%s | ||
| Zeile 16: | Zeile 13: | ||
%s | %s | ||
</div> | </div> | ||
]] | ]], size, size, bild, text) | ||
return frame:preprocess(output) | return frame:preprocess(output) | ||
Aktuelle Version vom 28. Juli 2025, 15:45 Uhr
Die Dokumentation für dieses Modul kann unter Modul:BoxModul/Doku erstellt werden
local p = {}
function p.fotobox(frame)
local bild = frame.args[1] or ""
local size = frame.args[2] or "300"
local text = frame.args[3] or ""
local output = string.format([[
<div style="display: inline-block; text-align: center;">
<gallery mode="traditional" widths=%s heights=%s>
File:%s
</gallery>
%s
</div>
]], size, size, bild, text)
return frame:preprocess(output)
end
return p