ഉള്ളടക്കത്തിലേക്ക് പോവുക

ഘടകം:InfoboxSchool

Schoolwiki സംരംഭത്തിൽ നിന്ന്
12:27, 18 ജനുവരി 2026-നു ഉണ്ടായിരുന്ന രൂപം സൃഷ്ടിച്ചത്:- Jinoytommanjaly (സംവാദം | സംഭാവനകൾ) ('local p = {} function p.getRevenueDistrict(frame) local page = frame.args.page if not page or page == '' then return '' end local title = mw.title.new(page) if not title then return '' end local content = title:getContent() if not content then return '' end -- Match Infobox School and extract "റവന്യൂ ജില്ല" local district = co...' താൾ സൃഷ്ടിച്ചിരിക്കുന്നു)

ഈ ഘടകത്തിന്റെ വിവരണം ഘടകം:InfoboxSchool/വിവരണം എന്ന താളിൽ നിർമ്മിക്കാവുന്നതാണ്

local p = {}

function p.getRevenueDistrict(frame)
    local page = frame.args.page
    if not page or page == '' then
        return ''
    end

    local title = mw.title.new(page)
    if not title then
        return ''
    end

    local content = title:getContent()
    if not content then
        return ''
    end

    -- Match Infobox School and extract "റവന്യൂ ജില്ല"
    local district = content:match('{{%s*Infobox School.-\n.-|%s*റവന്യൂ%s*ജില്ല%s*=%s*([^\n|}]+)')
    
    if district then
        district = mw.text.trim(district)
    end

    return district or ''
end

return p
"https://schoolwiki.in/index.php?title=ഘടകം:InfoboxSchool&oldid=2938723" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്