Modul:RO: Unterschied zwischen den Versionen

Aus ipsc.de
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 5: Zeile 5:
  title  = mw.title .new(page)
  title  = mw.title .new(page)
  pt = title:getContent()
  pt = title:getContent()
local match = os.date('%y')..'-%d%d-%d%d'
  local out = ''
  local out = ''
  for w in string.gmatch(pt, os.date("%y")..'-%d%d-%d%d')
  for w in string.gmatch(pt, match)
  do
  do
   out = out .. w
   out = out .. w

Version vom 15. Dezember 2020, 18:10 Uhr

Die Dokumentation für dieses Modul kann unter Modul:RO/Doku erstellt werden

local p = {}

function p.next(frame)
 local page = frame.args[1]
 title  = mw.title .new(page)
 pt = title:getContent()
 local match = os.date('%y')..'-%d%d-%d%d'
 local out = ''
 for w in string.gmatch(pt, match)
 do
  out = out .. w
  end
 return out
 end

return p