Modül:GununMaddesi: Revizyonlar arasındaki fark

Hukukipedia sitesinden
Gezinti kısmına atla Arama kısmına atla
"local p = {} function p.extract(frame) local title = mw.title.new(frame.args[1]) if not title or not title.exists then return "Madde bulunamadı." end local content = title:getContent() or "" local firstPara = content:match("^(.-)\n\n") or content return firstPara end return p" içeriğiyle yeni sayfa oluşturdu
(Fark yok)

04.51, 14 Kasım 2025 tarihindeki hâli

Bu modül için bir Modül:GununMaddesi/belge belgelendirmesi oluşturabilirsiniz

local p = {}

function p.extract(frame)
    local title = mw.title.new(frame.args[1])
    if not title or not title.exists then
        return "Madde bulunamadı."
    end

    local content = title:getContent() or ""
    local firstPara = content:match("^(.-)\n\n") or content
    return firstPara
end

return p