Modul:Work: Unterschied zwischen den Versionen

Aus FürthWiki

Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 3: Zeile 3:
function p.pagenameHasSemicolon(frame)
function p.pagenameHasSemicolon(frame)
local has = false
local has = false
     if string.find(frame.args[1],";") ~= nil then
     if string.find(frame.args[1],";",1,false) ~= nil then
     has = true
     has = true
     end
     end

Version vom 1. September 2025, 07:56 Uhr

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

local p = {} --p stands for package

function p.pagenameHasSemicolon(frame)
	local has = false
    if string.find(frame.args[1],";",1,false) ~= nil then
    	has = true
    end
    return has
end

return p