Module:Languages

From JoJo's Bizarre Encyclopedia - JoJo Wiki
Revision as of 08:46, 6 February 2023 by Vish (talk | contribs)
Jump to navigation Jump to search

Documentation for this module may be created at Module:Languages/doc

local p = {}

local function has_page (tab, lang)
    for index, value in ipairs(tab) do
        if value == lang then
            return true
        end
    end
    return false
end

function p.main( frame )
    local languagesData = mw.loadData( 'Module:Languages/data' )
    if has_page(languagesData, 'fr') then
    	return "Yes"
	else
    	return "No"
	end
end

return p