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 ""
 
  -- Feste Hintergrundfarbe (immer gleich)
  local bgcolor = "#f5f5f5"


   local output = string.format([[
   local output = string.format([[
<div style="display: inline-block; text-align: center; background-color: %s; padding: 10px; border-radius: 8px;">
<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>
]], bgcolor, size, size, bild, text)
]], 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