Modul:Match: Unterschied zwischen den Versionen

Aus ipsc.de
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 6: Zeile 6:
  local title  = mw.title .new(page)
  local title  = mw.title .new(page)
  local text = title:getContent()
  local text = title:getContent()
  local r = tostring(string.gmatch(text, 'Datum: %s'))
  local r = string.gmatch(text, 'Datum: %s')
  return r
  return text
end
end


return p
return p

Version vom 20. September 2024, 06:52 Uhr

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

local p = {}

function p.datum(frame)
 local page = frame.args[1]
 page = 'Match:' .. page
 local title  = mw.title .new(page)
 local text = title:getContent()
 local r = string.gmatch(text, 'Datum: %s')
 return text
end

return p