text:
Module:Format link

-- Format link -- -- Makes a wikilink from the given link and display values. Links are escaped -- with colons if necessary, and links to sections are detected and displayed -- with " § " as a separator rather than the standard MediaWiki "#". Used in -- the template.

local libraryUtil = require('libraryUtil') local checkType = libraryUtil.checkType local checkTypeForNamedArg = libraryUtil.checkTypeForNamedArg local mArguments -- lazily initialise Module:Arguments local mError -- lazily initialise Module:Error local yesno -- lazily initialise Module:Yesno

local p = {}

-- Helper functions

local function getArgs(frame) -- Fetches the arguments from the parent frame. Whitespace is trimmed and -- blanks are removed. mArguments = require('Module:Arguments') return mArguments.getArgs(frame, {parentOnly = true}) end

local function removeInitialColon(s) -- Removes the initial colon from a string, if present. return s:match('^:?(.*)') end

local function maybeItalicize(s, shouldItalicize) -- Italicize s if s is a string and the shouldItalicize parameter is true. if s and shouldItalicize then return  .. s .. 	else return s	end end

local function parseLink(link) -- Parse a link and return a table with the link's components. -- These components are: -- - link: the link, stripped of any initial colon (always present) -- - page: the page name (always present) -- - section: the page name (may be nil) -- - display: the display text, if manually entered after a pipe (may be nil) link = removeInitialColon(link)

-- Find whether a faux display value has been added with the | magic -- word. local prePipe, display = link:match('^(.-)|(.*)$') link = prePipe or link

-- Find the page, if it exists. -- For links like, the page will be nil. local preHash, postHash = link:match('^(.-)#(.*)$') local page if not preHash then -- We have a link like Foo. page = link elseif preHash ~= '' then -- We have a link like Foo. page = preHash end

-- Find the section, if it exists. local section if postHash and postHash ~= '' then section = postHash end return { link = link, page = page, section = section, display = display, } end

local function formatDisplay(parsed, options) -- Formats a display string based on a parsed link table (matching the	-- output of parseLink) and an options table (matching the input options for	-- _formatLink). local page = maybeItalicize(parsed.page, options.italicizePage) local section = maybeItalicize(parsed.section, options.italicizeSection) if (not section) then return page elseif (not page) then return mw.ustring.format('§ %s', section) else return mw.ustring.format('%s § %s', page, section) end end

local function missingArgError(target) mError = require('Module:Error') return mError.error{message = 'Error: no link or target specified! (help)' } end

-- Main functions

function p.formatLink(frame) -- The formatLink export function, for use in templates. yesno = require('Module:Yesno') local args = getArgs(frame) local link = args[1] or args.link local target = args[3] or args.target if not (link or target) then return missingArgError('Template:Format link') end

return p._formatLink{ link = link, display = args[2] or args.display, target = target, italicizePage = yesno(args.italicizepage), italicizeSection = yesno(args.italicizesection), categorizeMissing = args.categorizemissing } end

function p._formatLink(options) -- The formatLink export function, for use in modules. checkType('_formatLink', 1, options, 'table') local function check(key, expectedType) --for brevity checkTypeForNamedArg(			'_formatLink', key, options[key], expectedType or 'string', true		) end check('link') check('display') check('target') check('italicizePage', 'boolean') check('italicizeSection', 'boolean') check('categorizeMissing')

-- Normalize link and target and check that at least one is present if options.link == '' then options.link = nil end if options.target == '' then options.target = nil end if not (options.link or options.target) then return missingArgError('Module:Format link') end

local parsed = parseLink(options.link) local display = options.display or parsed.display local catMissing = options.categorizeMissing local category = ''

-- Find the display text if not display then display = formatDisplay(parsed, options) end

-- Handle the target option if present if options.target then local parsedTarget = parseLink(options.target) parsed.link = parsedTarget.link parsed.page = parsedTarget.page end

-- Test if page exists if a diagnostic category is specified if catMissing and (mw.ustring.len(catMissing) > 0) then local title = nil if parsed.page then title = mw.title.new(parsed.page) end if title and (not title.isExternal) then local success, exists = pcall(function return title.exists end) if success and not exists then category = mw.ustring.format('', catMissing) end end end -- Format the result as a link if parsed.link == display then return mw.ustring.format('%s%s', parsed.link, category) else return mw.ustring.format('%s%s', parsed.link, display, category) end end

-- Derived convenience functions

function p.formatPages(options, pages) -- Formats an array of pages using formatLink and the given options table, -- and returns it as an array. Nil values are not allowed. local ret = {} for i, page in ipairs(pages) do		ret[i] = p._formatLink{ link = page, categorizeMissing = options.categorizeMissing, italicizePage = options.italicizePage, italicizeSection = options.italicizeSection }	end return ret end

return p

license: Creative Commons - Attribution Share-Alike - https://creativecommons.org/licenses/by-sa/4.0/

title: Module:Format link


text:
Module:Format link/doc

This module, migrated from origins in Module:Hatnote, provides functionality for formatting links for display, including that powering the format link template.

It can pretty-format section links with the section symbol ("§") and appropriate whitespace, it automatically escapes category and file names with the colon trick, and includes functionality for italicizing the page or section name, and for detecting and categorizing results that produce red links.

Use from wikitext
The functions in this module cannot be used directly from #invoke, and must be used through templates instead. Please see Template:Format link for documentation on usage of that template.

Use from other Lua modules
To load this module from another Lua module, use the following code:

You can then use the functions as documented below.

_formatLink
Formats link as a wikilink. Categories and files are automatically escaped with the colon trick, and links to sections are automatically formatted as page § section, rather than the MediaWiki default of page#section.

Several options modify the output:
 * If the display value is present, then it will be used as a display value. Any manual piping (using the  magic word or similar) present in link will be overridden by the display value if present.
 * If the target value is present, then it will override link as a target, but the result will still be displayed using either the value from display, or the result of formatting link.
 * If italicizePage is true, then the page portion of the link is italicized if present.
 * If italicizeSection is true, then the section portion of the link is italicized if present.
 * If categorizeMissing is a non-empty string, then that value is used as a category name, and that category will be applied if the resulting target of the link (no matter whether through link or through target ) doesn't exist.

 * Examples:
 * → Foo §&nbsp;Bar →
 * → Qux →
 * → Baz →
 * → §&nbsp;Foo →
 * → The Lord of the Rings §&nbsp;Plot →
 * → Cybercrime Prevention Act of 2012 §&nbsp;Disini v. Secretary of Justice →
 * → Nonexistent page →
 * → Existing →

formatPages
This derived function is useful for lists that format many links. It formats an array of pages using the _formatLink function, and returns the result as an array. Options in the options table are applied, and use the same names as the options for _formatLink.

 * Example
 * mFormatLink.formatPages({categorizeMissing = 'Example'}, {'Foo#Bar', 'Nonexistent page'}) → {'Foo § Bar', 'Nonexistent page'}

Errors
If _formatLink is used and neither a link nor a target argument is provided, then the module will produce an error message instead of its usual output, as it cannot then produce valid output.

You can solve this error by providing appropriate parameters to _formatLink, or you may want to ensure that a more descriptive error is provided by a downstream template or module when it would otherwise call _formatLink with inadequate arguments.

title: Module:Format link/doc


text:
Module:Language/data/iana scripts

-- File-Date: 2023-03-22 return { ["Adlm"] = {"Adlam"}, ["Afak"] = {"Afaka"}, ["Aghb"] = {"Caucasian Albanian"}, ["Ahom"] = {"Ahom", "Tai Ahom"}, ["Arab"] = {"Arabic"}, ["Aran"] = {"Arabic (Nastaliq variant)"}, ["Armi"] = {"Imperial Aramaic"}, ["Armn"] = {"Armenian"}, ["Avst"] = {"Avestan"}, ["Bali"] = {"Balinese"}, ["Bamu"] = {"Bamum"}, ["Bass"] = {"Bassa Vah"}, ["Batk"] = {"Batak"}, ["Beng"] = {"Bengali", "Bangla"}, ["Bhks"] = {"Bhaiksuki"}, ["Blis"] = {"Blissymbols"}, ["Bopo"] = {"Bopomofo"}, ["Brah"] = {"Brahmi"}, ["Brai"] = {"Braille"}, ["Bugi"] = {"Buginese"}, ["Buhd"] = {"Buhid"}, ["Cakm"] = {"Chakma"}, ["Cans"] = {"Unified Canadian Aboriginal Syllabics"}, ["Cari"] = {"Carian"}, ["Cham"] = {"Cham"}, ["Cher"] = {"Cherokee"}, ["Chrs"] = {"Chorasmian"}, ["Cirt"] = {"Cirth"}, ["Copt"] = {"Coptic"}, ["Cpmn"] = {"Cypro-Minoan"}, ["Cprt"] = {"Cypriot syllabary"}, ["Cyrl"] = {"Cyrillic"}, ["Cyrs"] = {"Cyrillic (Old Church Slavonic variant)"}, ["Deva"] = {"Devanagari", "Nagari"}, ["Diak"] = {"Dives Akuru"}, ["Dogr"] = {"Dogra"}, ["Dsrt"] = {"Deseret", "Mormon"}, ["Dupl"] = {"Duployan shorthand", "Duployan stenography"}, ["Egyd"] = {"Egyptian demotic"}, ["Egyh"] = {"Egyptian hieratic"}, ["Egyp"] = {"Egyptian hieroglyphs"}, ["Elba"] = {"Elbasan"}, ["Elym"] = {"Elymaic"}, ["Ethi"] = {"Ethiopic", "Geʻez", "Ge'ez"}, ["Geok"] = {"Khutsuri (Asomtavruli and Nuskhuri)"}, ["Geor"] = {"Georgian (Mkhedruli and Mtavruli)"}, ["Glag"] = {"Glagolitic"}, ["Gong"] = {"Gunjala Gondi"}, ["Gonm"] = {"Masaram Gondi"}, ["Goth"] = {"Gothic"}, ["Gran"] = {"Grantha"}, ["Grek"] = {"Greek"}, ["Gujr"] = {"Gujarati"}, ["Guru"] = {"Gurmukhi"}, ["Hanb"] = {"Han with Bopomofo (alias for Han + Bopomofo)"}, ["Hang"] = {"Hangul", "Hangŭl", "Hangeul"}, ["Hani"] = {"Han", "Hanzi", "Kanji", "Hanja"}, ["Hano"] = {"Hanunoo", "Hanunóo"}, ["Hans"] = {"Han (Simplified variant)"}, ["Hant"] = {"Han (Traditional variant)"}, ["Hatr"] = {"Hatran"}, ["Hebr"] = {"Hebrew"}, ["Hira"] = {"Hiragana"}, ["Hluw"] = {"Anatolian Hieroglyphs", "Luwian Hieroglyphs", "Hittite Hieroglyphs"}, ["Hmng"] = {"Pahawh Hmong"}, ["Hmnp"] = {"Nyiakeng Puachue Hmong"}, ["Hrkt"] = {"Japanese syllabaries (alias for Hiragana + Katakana)"}, ["Hung"] = {"Old Hungarian", "Hungarian Runic"}, ["Inds"] = {"Indus", "Harappan"}, ["Ital"] = {"Old Italic (Etruscan, Oscan, etc.)"}, ["Jamo"] = {"Jamo (alias for Jamo subset of Hangul)"}, ["Java"] = {"Javanese"}, ["Jpan"] = {"Japanese (alias for Han + Hiragana + Katakana)"}, ["Jurc"] = {"Jurchen"}, ["Kali"] = {"Kayah Li"}, ["Kana"] = {"Katakana"}, ["Kawi"] = {"Kawi"}, ["Khar"] = {"Kharoshthi"}, ["Khmr"] = {"Khmer"}, ["Khoj"] = {"Khojki"}, ["Kitl"] = {"Khitan large script"}, ["Kits"] = {"Khitan small script"}, ["Knda"] = {"Kannada"}, ["Kore"] = {"Korean (alias for Hangul + Han)"}, ["Kpel"] = {"Kpelle"}, ["Kthi"] = {"Kaithi"}, ["Lana"] = {"Tai Tham", "Lanna"}, ["Laoo"] = {"Lao"}, ["Latf"] = {"Latin (Fraktur variant)"}, ["Latg"] = {"Latin (Gaelic variant)"}, ["Latn"] = {"Latin"}, ["Leke"] = {"Leke"}, ["Lepc"] = {"Lepcha", "Róng"}, ["Limb"] = {"Limbu"}, ["Lina"] = {"Linear A"}, ["Linb"] = {"Linear B"}, ["Lisu"] = {"Lisu", "Fraser"}, ["Loma"] = {"Loma"}, ["Lyci"] = {"Lycian"}, ["Lydi"] = {"Lydian"}, ["Mahj"] = {"Mahajani"}, ["Maka"] = {"Makasar"}, ["Mand"] = {"Mandaic", "Mandaean"}, ["Mani"] = {"Manichaean"}, ["Marc"] = {"Marchen"}, ["Maya"] = {"Mayan hieroglyphs"}, ["Medf"] = {"Medefaidrin", "Oberi Okaime", "Oberi Ɔkaimɛ"}, ["Mend"] = {"Mende Kikakui"}, ["Merc"] = {"Meroitic Cursive"}, ["Mero"] = {"Meroitic Hieroglyphs"}, ["Mlym"] = {"Malayalam"}, ["Modi"] = {"Modi", "Moḍī"}, ["Mong"] = {"Mongolian"}, ["Moon"] = {"Moon", "Moon code", "Moon script", "Moon type"}, ["Mroo"] = {"Mro", "Mru"}, ["Mtei"] = {"Meitei Mayek", "Meithei", "Meetei"}, ["Mult"] = {"Multani"}, ["Mymr"] = {"Myanmar", "Burmese"}, ["Nagm"] = {"Nag Mundari"}, ["Nand"] = {"Nandinagari"}, ["Narb"] = {"Old North Arabian", "Ancient North Arabian"}, ["Nbat"] = {"Nabataean"}, ["Newa"] = {"Newa", "Newar", "Newari", "Nepāla lipi"}, ["Nkdb"] = {"Naxi Dongba", "na²¹ɕi³³ to³³ba²¹", "Nakhi Tomba"}, ["Nkgb"] = {"Naxi Geba", "na²¹ɕi³³ gʌ²¹ba²¹", "'Na-'Khi ²Ggŏ-¹baw", "Nakhi Geba"}, ["Nkoo"] = {"N’Ko", "N'Ko"}, ["Nshu"] = {"Nüshu"}, ["Ogam"] = {"Ogham"}, ["Olck"] = {"Ol Chiki", "Ol Cemet'", "Ol", "Santali"}, ["Orkh"] = {"Old Turkic", "Orkhon Runic"}, ["Orya"] = {"Oriya", "Odia"}, ["Osge"] = {"Osage"}, ["Osma"] = {"Osmanya"}, ["Ougr"] = {"Old Uyghur"}, ["Palm"] = {"Palmyrene"}, ["Pauc"] = {"Pau Cin Hau"}, ["Pcun"] = {"Proto-Cuneiform"}, ["Pelm"] = {"Proto-Elamite"}, ["Perm"] = {"Old Permic"}, ["Phag"] = {"Phags-pa"}, ["Phli"] = {"Inscriptional Pahlavi"}, ["Phlp"] = {"Psalter Pahlavi"}, ["Phlv"] = {"Book Pahlavi"}, ["Phnx"] = {"Phoenician"}, ["Piqd"] = {"Klingon (KLI pIqaD)"}, ["Plrd"] = {"Miao", "Pollard"}, ["Prti"] = {"Inscriptional Parthian"}, ["Psin"] = {"Proto-Sinaitic"}, ["Ranj"] = {"Ranjana"}, ["Rjng"] = {"Rejang", "Redjang", "Kaganga"}, ["Rohg"] = {"Hanifi Rohingya"}, ["Roro"] = {"Rongorongo"}, ["Runr"] = {"Runic"}, ["Samr"] = {"Samaritan"}, ["Sara"] = {"Sarati"}, ["Sarb"] = {"Old South Arabian"}, ["Saur"] = {"Saurashtra"}, ["Sgnw"] = {"SignWriting"}, ["Shaw"] = {"Shavian", "Shaw"}, ["Shrd"] = {"Sharada", "Śāradā"}, ["Shui"] = {"Shuishu"}, ["Sidd"] = {"Siddham", "Siddhaṃ", "Siddhamātṛkā"}, ["Sind"] = {"Khudawadi", "Sindhi"}, ["Sinh"] = {"Sinhala"}, ["Sogd"] = {"Sogdian"}, ["Sogo"] = {"Old Sogdian"}, ["Sora"] = {"Sora Sompeng"}, ["Soyo"] = {"Soyombo"}, ["Sund"] = {"Sundanese"}, ["Sunu"] = {"Sunuwar"}, ["Sylo"] = {"Syloti Nagri"}, ["Syrc"] = {"Syriac"}, ["Syre"] = {"Syriac (Estrangelo variant)"}, ["Syrj"] = {"Syriac (Western variant)"}, ["Syrn"] = {"Syriac (Eastern variant)"}, ["Tagb"] = {"Tagbanwa"}, ["Takr"] = {"Takri", "Ṭākrī", "Ṭāṅkrī"}, ["Tale"] = {"Tai Le"}, ["Talu"] = {"New Tai Lue"}, ["Taml"] = {"Tamil"}, ["Tang"] = {"Tangut"}, ["Tavt"] = {"Tai Viet"}, ["Telu"] = {"Telugu"}, ["Teng"] = {"Tengwar"}, ["Tfng"] = {"Tifinagh", "Berber"}, ["Tglg"] = {"Tagalog", "Baybayin", "Alibata"}, ["Thaa"] = {"Thaana"}, ["Thai"] = {"Thai"}, ["Tibt"] = {"Tibetan"}, ["Tirh"] = {"Tirhuta"}, ["Tnsa"] = {"Tangsa"}, ["Toto"] = {"Toto"}, ["Ugar"] = {"Ugaritic"}, ["Vaii"] = {"Vai"}, ["Visp"] = {"Visible Speech"}, ["Vith"] = {"Vithkuqi"}, ["Wara"] = {"Warang Citi", "Varang Kshiti"}, ["Wcho"] = {"Wancho"}, ["Wole"] = {"Woleai"}, ["Xpeo"] = {"Old Persian"}, ["Xsux"] = {"Sumero-Akkadian cuneiform"}, ["Yezi"] = {"Yezidi"}, ["Yiii"] = {"Yi"}, ["Zanb"] = {"Zanabazar Square", "Zanabazarin Dörböljin Useg", "Xewtee Dörböljin Bicig", "Horizontal Square Script"}, ["Zinh"] = {"Code for inherited script"}, ["Zmth"] = {"Mathematical notation"}, ["Zsye"] = {"Symbols (Emoji variant)"}, ["Zsym"] = {"Symbols"}, ["Zxxx"] = {"Code for unwritten documents"}, ["Zyyy"] = {"Code for undetermined script"}, ["Zzzz"] = {"Code for uncoded script"} }

title: Module:Language/data/iana scripts


text:
Module:Language/data/iana regions

-- File-Date: 2023-03-22 return { ["AC"] = {"Ascension Island"}, ["AD"] = {"Andorra"}, ["AE"] = {"United Arab Emirates"}, ["AF"] = {"Afghanistan"}, ["AG"] = {"Antigua and Barbuda"}, ["AI"] = {"Anguilla"}, ["AL"] = {"Albania"}, ["AM"] = {"Armenia"}, ["AO"] = {"Angola"}, ["AQ"] = {"Antarctica"}, ["AR"] = {"Argentina"}, ["AS"] = {"American Samoa"}, ["AT"] = {"Austria"}, ["AU"] = {"Australia"}, ["AW"] = {"Aruba"}, ["AX"] = {"Åland Islands"}, ["AZ"] = {"Azerbaijan"}, ["BA"] = {"Bosnia and Herzegovina"}, ["BB"] = {"Barbados"}, ["BD"] = {"Bangladesh"}, ["BE"] = {"Belgium"}, ["BF"] = {"Burkina Faso"}, ["BG"] = {"Bulgaria"}, ["BH"] = {"Bahrain"}, ["BI"] = {"Burundi"}, ["BJ"] = {"Benin"}, ["BL"] = {"Saint Barthélemy"}, ["BM"] = {"Bermuda"}, ["BN"] = {"Brunei Darussalam"}, ["BO"] = {"Bolivia"}, ["BQ"] = {"Bonaire, Sint Eustatius and Saba"}, ["BR"] = {"Brazil"}, ["BS"] = {"Bahamas"}, ["BT"] = {"Bhutan"}, ["BV"] = {"Bouvet Island"}, ["BW"] = {"Botswana"}, ["BY"] = {"Belarus"}, ["BZ"] = {"Belize"}, ["CA"] = {"Canada"}, ["CC"] = {"Cocos (Keeling) Islands"}, ["CD"] = {"The Democratic Republic of the Congo"}, ["CF"] = {"Central African Republic"}, ["CG"] = {"Congo"}, ["CH"] = {"Switzerland"}, ["CI"] = {"Côte d'Ivoire"}, ["CK"] = {"Cook Islands"}, ["CL"] = {"Chile"}, ["CM"] = {"Cameroon"}, ["CN"] = {"China"}, ["CO"] = {"Colombia"}, ["CP"] = {"Clipperton Island"}, ["CQ"] = {"Sark"}, ["CR"] = {"Costa Rica"}, ["CU"] = {"Cuba"}, ["CV"] = {"Cabo Verde", "Cape Verde"}, ["CW"] = {"Curaçao"}, ["CX"] = {"Christmas Island"}, ["CY"] = {"Cyprus"}, ["CZ"] = {"Czechia", "Czech Republic"}, ["DE"] = {"Germany"}, ["DG"] = {"Diego Garcia"}, ["DJ"] = {"Djibouti"}, ["DK"] = {"Denmark"}, ["DM"] = {"Dominica"}, ["DO"] = {"Dominican Republic"}, ["DZ"] = {"Algeria"}, ["EA"] = {"Ceuta, Melilla"}, ["EC"] = {"Ecuador"}, ["EE"] = {"Estonia"}, ["EG"] = {"Egypt"}, ["EH"] = {"Western Sahara"}, ["ER"] = {"Eritrea"}, ["ES"] = {"Spain"}, ["ET"] = {"Ethiopia"}, ["EU"] = {"European Union"}, ["EZ"] = {"Eurozone"}, ["FI"] = {"Finland"}, ["FJ"] = {"Fiji"}, ["FK"] = {"Falkland Islands (Malvinas)"}, ["FM"] = {"Federated States of Micronesia"}, ["FO"] = {"Faroe Islands"}, ["FR"] = {"France"}, ["GA"] = {"Gabon"}, ["GB"] = {"United Kingdom"}, ["GD"] = {"Grenada"}, ["GE"] = {"Georgia"}, ["GF"] = {"French Guiana"}, ["GG"] = {"Guernsey"}, ["GH"] = {"Ghana"}, ["GI"] = {"Gibraltar"}, ["GL"] = {"Greenland"}, ["GM"] = {"Gambia"}, ["GN"] = {"Guinea"}, ["GP"] = {"Guadeloupe"}, ["GQ"] = {"Equatorial Guinea"}, ["GR"] = {"Greece"}, ["GS"] = {"South Georgia and the South Sandwich Islands"}, ["GT"] = {"Guatemala"}, ["GU"] = {"Guam"}, ["GW"] = {"Guinea-Bissau"}, ["GY"] = {"Guyana"}, ["HK"] = {"Hong Kong"}, ["HM"] = {"Heard Island and McDonald Islands"}, ["HN"] = {"Honduras"}, ["HR"] = {"Croatia"}, ["HT"] = {"Haiti"}, ["HU"] = {"Hungary"}, ["IC"] = {"Canary Islands"}, ["ID"] = {"Indonesia"}, ["IE"] = {"Ireland"}, ["IL"] = {"Israel"}, ["IM"] = {"Isle of Man"}, ["IN"] = {"India"}, ["IO"] = {"British Indian Ocean Territory"}, ["IQ"] = {"Iraq"}, ["IR"] = {"Islamic Republic of Iran"}, ["IS"] = {"Iceland"}, ["IT"] = {"Italy"}, ["JE"] = {"Jersey"}, ["JM"] = {"Jamaica"}, ["JO"] = {"Jordan"}, ["JP"] = {"Japan"}, ["KE"] = {"Kenya"}, ["KG"] = {"Kyrgyzstan"}, ["KH"] = {"Cambodia"}, ["KI"] = {"Kiribati"}, ["KM"] = {"Comoros"}, ["KN"] = {"Saint Kitts and Nevis"}, ["KP"] = {"Democratic People's Republic of Korea"}, ["KR"] = {"Republic of Korea"}, ["KW"] = {"Kuwait"}, ["KY"] = {"Cayman Islands"}, ["KZ"] = {"Kazakhstan"}, ["LA"] = {"Lao People's Democratic Republic"}, ["LB"] = {"Lebanon"}, ["LC"] = {"Saint Lucia"}, ["LI"] = {"Liechtenstein"}, ["LK"] = {"Sri Lanka"}, ["LR"] = {"Liberia"}, ["LS"] = {"Lesotho"}, ["LT"] = {"Lithuania"}, ["LU"] = {"Luxembourg"}, ["LV"] = {"Latvia"}, ["LY"] = {"Libya"}, ["MA"] = {"Morocco"}, ["MC"] = {"Monaco"}, ["MD"] = {"Moldova"}, ["ME"] = {"Montenegro"}, ["MF"] = {"Saint Martin (French part)"}, ["MG"] = {"Madagascar"}, ["MH"] = {"Marshall Islands"}, ["MK"] = {"North Macedonia"}, ["ML"] = {"Mali"}, ["MM"] = {"Myanmar"}, ["MN"] = {"Mongolia"}, ["MO"] = {"Macao"}, ["MP"] = {"Northern Mariana Islands"}, ["MQ"] = {"Martinique"}, ["MR"] = {"Mauritania"}, ["MS"] = {"Montserrat"}, ["MT"] = {"Malta"}, ["MU"] = {"Mauritius"}, ["MV"] = {"Maldives"}, ["MW"] = {"Malawi"}, ["MX"] = {"Mexico"}, ["MY"] = {"Malaysia"}, ["MZ"] = {"Mozambique"}, ["NA"] = {"Namibia"}, ["NC"] = {"New Caledonia"}, ["NE"] = {"Niger"}, ["NF"] = {"Norfolk Island"}, ["NG"] = {"Nigeria"}, ["NI"] = {"Nicaragua"}, ["NL"] = {"Netherlands"}, ["NO"] = {"Norway"}, ["NP"] = {"Nepal"}, ["NR"] = {"Nauru"}, ["NU"] = {"Niue"}, ["NZ"] = {"New Zealand"}, ["OM"] = {"Oman"}, ["PA"] = {"Panama"}, ["PE"] = {"Peru"}, ["PF"] = {"French Polynesia"}, ["PG"] = {"Papua New Guinea"}, ["PH"] = {"Philippines"}, ["PK"] = {"Pakistan"}, ["PL"] = {"Poland"}, ["PM"] = {"Saint Pierre and Miquelon"}, ["PN"] = {"Pitcairn"}, ["PR"] = {"Puerto Rico"}, ["PS"] = {"State of Palestine"}, ["PT"] = {"Portugal"}, ["PW"] = {"Palau"}, ["PY"] = {"Paraguay"}, ["QA"] = {"Qatar"}, ["RE"] = {"Réunion"}, ["RO"] = {"Romania"}, ["RS"] = {"Serbia"}, ["RU"] = {"Russian Federation"}, ["RW"] = {"Rwanda"}, ["SA"] = {"Saudi Arabia"}, ["SB"] = {"Solomon Islands"}, ["SC"] = {"Seychelles"}, ["SD"] = {"Sudan"}, ["SE"] = {"Sweden"}, ["SG"] = {"Singapore"}, ["SH"] = {"Saint Helena, Ascension and Tristan da Cunha"}, ["SI"] = {"Slovenia"}, ["SJ"] = {"Svalbard and Jan Mayen"}, ["SK"] = {"Slovakia"}, ["SL"] = {"Sierra Leone"}, ["SM"] = {"San Marino"}, ["SN"] = {"Senegal"}, ["SO"] = {"Somalia"}, ["SR"] = {"Suriname"}, ["SS"] = {"South Sudan"}, ["ST"] = {"Sao Tome and Principe"}, ["SV"] = {"El Salvador"}, ["SX"] = {"Sint Maarten (Dutch part)"}, ["SY"] = {"Syrian Arab Republic"}, ["SZ"] = {"Eswatini", "eSwatini", "Swaziland"}, ["TA"] = {"Tristan da Cunha"}, ["TC"] = {"Turks and Caicos Islands"}, ["TD"] = {"Chad"}, ["TF"] = {"French Southern Territories"}, ["TG"] = {"Togo"}, ["TH"] = {"Thailand"}, ["TJ"] = {"Tajikistan"}, ["TK"] = {"Tokelau"}, ["TL"] = {"Timor-Leste"}, ["TM"] = {"Turkmenistan"}, ["TN"] = {"Tunisia"}, ["TO"] = {"Tonga"}, ["TR"] = {"Türkiye", "Turkey"}, ["TT"] = {"Trinidad and Tobago"}, ["TV"] = {"Tuvalu"}, ["TW"] = {"Taiwan, Province of China"}, ["TZ"] = {"United Republic of Tanzania"}, ["UA"] = {"Ukraine"}, ["UG"] = {"Uganda"}, ["UM"] = {"United States Minor Outlying Islands"}, ["UN"] = {"United Nations"}, ["US"] = {"United States"}, ["UY"] = {"Uruguay"}, ["UZ"] = {"Uzbekistan"}, ["VA"] = {"Holy See (Vatican City State)"}, ["VC"] = {"Saint Vincent and the Grenadines"}, ["VE"] = {"Venezuela"}, ["VG"] = {"British Virgin Islands"}, ["VI"] = {"U.S. Virgin Islands"}, ["VN"] = {"Viet Nam"}, ["VU"] = {"Vanuatu"}, ["WF"] = {"Wallis and Futuna"}, ["WS"] = {"Samoa"}, ["YE"] = {"Yemen"}, ["YT"] = {"Mayotte"}, ["ZA"] = {"South Africa"}, ["ZM"] = {"Zambia"}, ["ZW"] = {"Zimbabwe"}, ["001"] = {"World"}, ["002"] = {"Africa"}, ["003"] = {"North America"}, ["005"] = {"South America"}, ["009"] = {"Oceania"}, ["011"] = {"Western Africa"}, ["013"] = {"Central America"}, ["014"] = {"Eastern Africa"}, ["015"] = {"Northern Africa"}, ["017"] = {"Middle Africa"}, ["018"] = {"Southern Africa"}, ["019"] = {"Americas"}, ["021"] = {"Northern America"}, ["029"] = {"Caribbean"}, ["030"] = {"Eastern Asia"}, ["034"] = {"Southern Asia"}, ["035"] = {"South-Eastern Asia"}, ["039"] = {"Southern Europe"}, ["053"] = {"Australia and New Zealand"}, ["054"] = {"Melanesia"}, ["057"] = {"Micronesia"}, ["061"] = {"Polynesia"}, ["142"] = {"Asia"}, ["143"] = {"Central Asia"}, ["145"] = {"Western Asia"}, ["150"] = {"Europe"}, ["151"] = {"Eastern Europe"}, ["154"] = {"Northern Europe"}, ["155"] = {"Western Europe"}, ["202"] = {"Sub-Saharan Africa"}, ["419"] = {"Latin America and the Caribbean"} }

title: Module:Language/data/iana regions


text:
Template:Div col/styles.css

/* */ .div-col { margin-top: 0.3em; column-width: 30em; }

.div-col-small { font-size: 90%; }

.div-col-rules { column-rule: 1px solid #aaa; }

/* Reset top margin for lists in div col */ .div-col dl, .div-col ol, .div-col ul { margin-top: 0; }

/* Avoid elements breaking between columns See also Template:No col break */ .div-col li, .div-col dd { page-break-inside: avoid; /* Removed from CSS in favor of break-inside c. 2020 */ break-inside: avoid-column; }

/* Unbulleted lists */ .plainlist ol, .plainlist ul { line-height: inherit; list-style: none; margin: 0; } .plainlist ol li, .plainlist ul li { margin-bottom: 0; }

title: Template:Div col/styles.css


text:
Module:Language/data/iana variants

-- File-Date: 2023-03-22 return { ["1606nict"] = { ["descriptions"] = {"Late Middle French (to 1606)"}, ["prefixes"] = {"frm"}, },	["1694acad"] = { ["descriptions"] = {"Early Modern French"}, ["prefixes"] = {"fr"}, },	["1901"] = {		["descriptions"] = {"Traditional German orthography"}, ["prefixes"] = {"de"}, },	["1959acad"] = { ["descriptions"] = {"\"Academic\" (\"governmental\") variant of Belarusian as codified in 1959"}, ["prefixes"] = {"be"}, },	["1994"] = {		["descriptions"] = {"Standardized Resian orthography"}, ["prefixes"] = {"sl-rozaj", "sl-rozaj-biske", "sl-rozaj-njiva", "sl-rozaj-osojs", "sl-rozaj-solba"}, },	["1996"] = {		["descriptions"] = {"German orthography of 1996"}, ["prefixes"] = {"de"}, },	["abl1943"] = { ["descriptions"] = {"Orthographic formulation of 1943 - Official in Brazil (Formulário Ortográfico de 1943 - Oficial no Brasil)"}, ["prefixes"] = {"pt-br"}, },	["akuapem"] = { ["descriptions"] = {"Akuapem Twi"}, ["prefixes"] = {"tw"}, },	["alalc97"] = { ["descriptions"] = {"ALA-LC Romanization, 1997 edition"}, ["prefixes"] = {}, },	["aluku"] = { ["descriptions"] = {"Aluku dialect", "Boni dialect"}, ["prefixes"] = {"djk"}, },	["ao1990"] = { ["descriptions"] = {"Portuguese Language Orthographic Agreement of 1990 (Acordo Ortográfico da Língua Portuguesa de 1990)"}, ["prefixes"] = {"pt", "gl"}, },	["aranes"] = { ["descriptions"] = {"Aranese"}, ["prefixes"] = {"oc"}, },	["arkaika"] = { ["descriptions"] = {"Arcaicam Esperantom", "Arkaika Esperanto"}, ["prefixes"] = {"eo"}, },	["asante"] = { ["descriptions"] = {"Asante Twi", "Ashanti Twi"}, ["prefixes"] = {"tw"}, },	["auvern"] = { ["descriptions"] = {"Auvergnat"}, ["prefixes"] = {"oc"}, },	["baku1926"] = { ["descriptions"] = {"Unified Turkic Latin Alphabet (Historical)"}, ["prefixes"] = {"az", "ba", "crh", "kk", "krc", "ky", "sah", "tk", "tt", "uz"}, },	["balanka"] = { ["descriptions"] = {"The Balanka dialect of Anii"}, ["prefixes"] = {"blo"}, },	["barla"] = { ["descriptions"] = {"The Barlavento dialect group of Kabuverdianu"}, ["prefixes"] = {"kea"}, },	["basiceng"] = { ["descriptions"] = {"Basic English"}, ["prefixes"] = {"en"}, },	["bauddha"] = { ["descriptions"] = {"Buddhist Hybrid Sanskrit"}, ["prefixes"] = {"sa"}, },	["biscayan"] = { ["descriptions"] = {"Biscayan dialect of Basque"}, ["prefixes"] = {"eu"}, },	["biske"] = { ["descriptions"] = {"The San Giorgio dialect of Resian", "The Bila dialect of Resian"}, ["prefixes"] = {"sl-rozaj"}, },	["bohoric"] = { ["descriptions"] = {"Slovene in Bohorič alphabet"}, ["prefixes"] = {"sl"}, },	["boont"] = { ["descriptions"] = {"Boontling"}, ["prefixes"] = {"en"}, },	["bornholm"] = { ["descriptions"] = {"Bornholmsk"}, ["prefixes"] = {"da"}, },	["cisaup"] = { ["descriptions"] = {"Cisalpine"}, ["prefixes"] = {"oc"}, },	["colb1945"] = { ["descriptions"] = {"Portuguese-Brazilian Orthographic Convention of 1945 (Convenção Ortográfica Luso-Brasileira de 1945)"}, ["prefixes"] = {"pt"}, },	["cornu"] = { ["descriptions"] = {"Cornu-English", "Cornish English", "Anglo-Cornish"}, ["prefixes"] = {"en"}, },	["creiss"] = { ["descriptions"] = {"Occitan variants of the Croissant area"}, ["prefixes"] = {"oc"}, },	["dajnko"] = { ["descriptions"] = {"Slovene in Dajnko alphabet"}, ["prefixes"] = {"sl"}, },	["ekavsk"] = { ["descriptions"] = {"Serbian with Ekavian pronunciation"}, ["prefixes"] = {"sr", "sr-latn", "sr-cyrl"}, },	["emodeng"] = { ["descriptions"] = {"Early Modern English (1500-1700)"}, ["prefixes"] = {"en"}, },	["fonipa"] = { ["descriptions"] = {"International Phonetic Alphabet"}, ["prefixes"] = {}, },	["fonkirsh"] = { ["descriptions"] = {"Kirshenbaum Phonetic Alphabet"}, ["prefixes"] = {}, },	["fonnapa"] = { ["descriptions"] = {"North American Phonetic Alphabet", "Americanist Phonetic Notation"}, ["prefixes"] = {}, },	["fonupa"] = { ["descriptions"] = {"Uralic Phonetic Alphabet"}, ["prefixes"] = {}, },	["fonxsamp"] = { ["descriptions"] = {"X-SAMPA transcription"}, ["prefixes"] = {}, },	["gallo"] = { ["descriptions"] = {"Gallo"}, ["prefixes"] = {"fr"}, },	["gascon"] = { ["descriptions"] = {"Gascon"}, ["prefixes"] = {"oc"}, },	["grclass"] = { ["descriptions"] = {"Classical Occitan orthography"}, ["prefixes"] = {"oc", "oc-aranes", "oc-auvern", "oc-cisaup", "oc-creiss", "oc-gascon", "oc-lemosin", "oc-lengadoc", "oc-nicard", "oc-provenc", "oc-vivaraup"}, },	["grital"] = { ["descriptions"] = {"Italian-inspired Occitan orthography"}, ["prefixes"] = {"oc", "oc-cisaup", "oc-nicard", "oc-provenc"}, },	["grmistr"] = { ["descriptions"] = {"Mistralian or Mistralian-inspired Occitan orthography"}, ["prefixes"] = {"oc", "oc-aranes", "oc-auvern", "oc-cisaup", "oc-creiss", "oc-gascon", "oc-lemosin", "oc-lengadoc", "oc-nicard", "oc-provenc", "oc-vivaraup"}, },	["hepburn"] = { ["descriptions"] = {"Hepburn romanization"}, ["prefixes"] = {"ja-latn"}, },	["hognorsk"] = { ["descriptions"] = {"Norwegian in Høgnorsk (High Norwegian) orthography"}, ["prefixes"] = {"nn"}, },	["hsistemo"] = { ["descriptions"] = {"Standard H-system orthographic fallback for spelling Esperanto"}, ["prefixes"] = {"eo"}, },	["ijekavsk"] = { ["descriptions"] = {"Serbian with Ijekavian pronunciation"}, ["prefixes"] = {"sr", "sr-latn", "sr-cyrl"}, },	["itihasa"] = { ["descriptions"] = {"Epic Sanskrit"}, ["prefixes"] = {"sa"}, },	["ivanchov"] = { ["descriptions"] = {"Bulgarian in 1899 orthography"}, ["prefixes"] = {"bg"}, },	["jauer"] = { ["descriptions"] = {"Jauer dialect of Romansh"}, ["prefixes"] = {"rm"}, },	["jyutping"] = { ["descriptions"] = {"Jyutping Cantonese Romanization"}, ["prefixes"] = {"yue"}, },	["kkcor"] = { ["descriptions"] = {"Common Cornish orthography of Revived Cornish"}, ["prefixes"] = {"kw"}, },	["kociewie"] = { ["descriptions"] = {"The Kociewie dialect of Polish"}, ["prefixes"] = {"pl"}, },	["kscor"] = { ["descriptions"] = {"Standard Cornish orthography of Revived Cornish", "Kernowek Standard"}, ["prefixes"] = {"kw"}, },	["laukika"] = { ["descriptions"] = {"Classical Sanskrit"}, ["prefixes"] = {"sa"}, },	["lemosin"] = { ["descriptions"] = {"Limousin"}, ["prefixes"] = {"oc"}, },	["lengadoc"] = { ["descriptions"] = {"Languedocien"}, ["prefixes"] = {"oc"}, },	["lipaw"] = { ["descriptions"] = {"The Lipovaz dialect of Resian", "The Lipovec dialect of Resian"}, ["prefixes"] = {"sl-rozaj"}, },	["ltg1929"] = { ["descriptions"] = {"The Latgalian language orthography codified in 1929"}, ["prefixes"] = {"ltg"}, },	["ltg2007"] = { ["descriptions"] = {"The Latgalian language orthography codified in the language law in 2007"}, ["prefixes"] = {"ltg"}, },	["luna1918"] = { ["descriptions"] = {"Post-1917 Russian orthography"}, ["prefixes"] = {"ru"}, },	["metelko"] = { ["descriptions"] = {"Slovene in Metelko alphabet"}, ["prefixes"] = {"sl"}, },	["monoton"] = { ["descriptions"] = {"Monotonic Greek"}, ["prefixes"] = {"el"}, },	["ndyuka"] = { ["descriptions"] = {"Ndyuka dialect", "Aukan dialect"}, ["prefixes"] = {"djk"}, },	["nedis"] = { ["descriptions"] = {"Natisone dialect", "Nadiza dialect"}, ["prefixes"] = {"sl"}, },	["newfound"] = { ["descriptions"] = {"Newfoundland English"}, ["prefixes"] = {"en-ca"}, },	["nicard"] = { ["descriptions"] = {"Niçard"}, ["prefixes"] = {"oc"}, },	["njiva"] = { ["descriptions"] = {"The Gniva dialect of Resian", "The Njiva dialect of Resian"}, ["prefixes"] = {"sl-rozaj"}, },	["nulik"] = { ["descriptions"] = {"Volapük nulik", "Volapük perevidöl", "Volapük nulädik", "de Jong's Volapük", "New Volapük", "Revised Volapük", "Modern Volapük"}, ["prefixes"] = {"vo"}, },	["osojs"] = { ["descriptions"] = {"The Oseacco dialect of Resian", "The Osojane dialect of Resian"}, ["prefixes"] = {"sl-rozaj"}, },	["oxendict"] = { ["descriptions"] = {"Oxford English Dictionary spelling"}, ["prefixes"] = {"en"}, },	["pahawh2"] = { ["descriptions"] = {"Pahawh Hmong Second Stage Reduced orthography"}, ["prefixes"] = {"mww", "hnj"}, },	["pahawh3"] = { ["descriptions"] = {"Pahawh Hmong Third Stage Reduced orthography"}, ["prefixes"] = {"mww", "hnj"}, },	["pahawh4"] = { ["descriptions"] = {"Pahawh Hmong Final Version orthography"}, ["prefixes"] = {"mww", "hnj"}, },	["pamaka"] = { ["descriptions"] = {"Pamaka dialect"}, ["prefixes"] = {"djk"}, },	["peano"] = { ["descriptions"] = {"Latino Sine Flexione", "Interlingua de API", "Interlingua de Peano"}, ["prefixes"] = {"la"}, },	["petr1708"] = { ["descriptions"] = {"Petrine orthography"}, ["prefixes"] = {"ru"}, },	["pinyin"] = { ["descriptions"] = {"Pinyin romanization"}, ["prefixes"] = {"zh-latn", "bo-latn"}, },	["polyton"] = { ["descriptions"] = {"Polytonic Greek"}, ["prefixes"] = {"el"}, },	["provenc"] = { ["descriptions"] = {"Provençal"}, ["prefixes"] = {"oc"}, },	["puter"] = { ["descriptions"] = {"Puter idiom of Romansh"}, ["prefixes"] = {"rm"}, },	["rigik"] = { ["descriptions"] = {"Volapük rigik", "Schleyer's Volapük", "Original Volapük", "Classic Volapük"}, ["prefixes"] = {"vo"}, },	["rozaj"] = { ["descriptions"] = {"Resian", "Resianic", "Rezijan"}, ["prefixes"] = {"sl"}, },	["rumgr"] = { ["descriptions"] = {"Rumantsch Grischun"}, ["prefixes"] = {"rm"}, },	["scotland"] = { ["descriptions"] = {"Scottish Standard English"}, ["prefixes"] = {"en"}, },	["scouse"] = { ["descriptions"] = {"Scouse"}, ["prefixes"] = {"en"}, },	["simple"] = { ["descriptions"] = {"Simplified form"}, ["prefixes"] = {}, },	["solba"] = { ["descriptions"] = {"The Stolvizza dialect of Resian", "The Solbica dialect of Resian"}, ["prefixes"] = {"sl-rozaj"}, },	["sotav"] = { ["descriptions"] = {"The Sotavento dialect group of Kabuverdianu"}, ["prefixes"] = {"kea"}, },	["spanglis"] = { ["descriptions"] = {"Spanglish"}, ["prefixes"] = {"en", "es"}, },	["surmiran"] = { ["descriptions"] = {"Surmiran idiom of Romansh"}, ["prefixes"] = {"rm"}, },	["sursilv"] = { ["descriptions"] = {"Sursilvan idiom of Romansh"}, ["prefixes"] = {"rm"}, },	["sutsilv"] = { ["descriptions"] = {"Sutsilvan idiom of Romansh"}, ["prefixes"] = {"rm"}, },	["synnejyl"] = { ["descriptions"] = {"Synnejysk", "South Jutish"}, ["prefixes"] = {"da"}, },	["tarask"] = { ["descriptions"] = {"Belarusian in Taraskievica orthography"}, ["prefixes"] = {"be"}, },	["tongyong"] = { ["descriptions"] = {"Tongyong Pinyin romanization"}, ["prefixes"] = {"zh-latn"}, },	["tunumiit"] = { ["descriptions"] = {"Tunumiisiut", "East Greenlandic", "Østgrønlandsk"}, ["prefixes"] = {"kl"}, },	["uccor"] = { ["descriptions"] = {"Unified Cornish orthography of Revived Cornish"}, ["prefixes"] = {"kw"}, },	["ucrcor"] = { ["descriptions"] = {"Unified Cornish Revised orthography of Revived Cornish"}, ["prefixes"] = {"kw"}, },	["ulster"] = { ["descriptions"] = {"Ulster dialect of Scots"}, ["prefixes"] = {"sco"}, },	["unifon"] = { ["descriptions"] = {"Unifon phonetic alphabet"}, ["prefixes"] = {"en", "hup", "kyh", "tol", "yur"}, },	["vaidika"] = { ["descriptions"] = {"Vedic Sanskrit"}, ["prefixes"] = {"sa"}, },	["valencia"] = { ["descriptions"] = {"Valencian"}, ["prefixes"] = {"ca"}, },	["vallader"] = { ["descriptions"] = {"Vallader idiom of Romansh"}, ["prefixes"] = {"rm"}, },	["vecdruka"] = { ["descriptions"] = {"Latvian orthography used before 1920s (\"vecā druka\")"}, ["prefixes"] = {"lv"}, },	["vivaraup"] = { ["descriptions"] = {"Vivaro-Alpine"}, ["prefixes"] = {"oc"}, },	["wadegile"] = { ["descriptions"] = {"Wade-Giles romanization"}, ["prefixes"] = {"zh-latn"}, },	["xsistemo"] = { ["descriptions"] = {"Standard X-system orthographic fallback for spelling Esperanto"}, ["prefixes"] = {"eo"}, }	}

title: Module:Language/data/iana variants


text:
Module:Language/data/iana suppressed scripts

-- File-Date: 2023-03-22 return { ["Arab"] = {"ar", "fa", "ps", "ur"}, ["Armn"] = {"hy"}, ["Beng"] = {"as", "bn"}, ["Blis"] = {"zbl"}, ["Cyrl"] = {"ab", "be", "bg", "kk", "mk", "ru", "uk"}, ["Deva"] = {"hi", "mr", "ne", "kok", "mai"}, ["Ethi"] = {"am", "ti"}, ["Geor"] = {"ka"}, ["Grek"] = {"el"}, ["Gujr"] = {"gu"}, ["Guru"] = {"pa"}, ["Hebr"] = {"he", "iw", "yi"}, ["Jpan"] = {"ja"}, ["Khmr"] = {"km"}, ["Knda"] = {"kn"}, ["Kore"] = {"ko"}, ["Laoo"] = {"lo"}, ["Latn"] = {"af", "ay", "bs", "ca", "ch", "cs", "cy", "da", "de", "en", "eo", "es", "et", "eu", "fi", "fj", "fo", "fr", "fy", "ga", "gl", "gn", "gv", "hr", "ht", "hu", "id", "in", "is", "it", "kl", "la", "lb", "ln", "lt", "lv", "mg", "mh", "mo", "ms", "mt", "na", "nb", "nd", "nl", "nn", "no", "nr", "ny", "om", "pl", "pt", "qu", "rm", "rn", "ro", "rw", "sg", "sk", "sl", "sm", "so", "sq", "ss", "st", "sv", "sw", "tl", "tn", "to", "tr", "ts", "ve", "vi", "xh", "zu", "dsb", "frr", "frs", "gsw", "hsb", "men", "nds", "niu", "nso", "tem", "tkl", "tmh", "tpi", "tvl"}, ["Mlym"] = {"ml"}, ["Mymr"] = {"my"}, ["Nkoo"] = {"nqo"}, ["Orya"] = {"or"}, ["Sinh"] = {"si"}, ["Taml"] = {"ta"}, ["Telu"] = {"te"}, ["Thaa"] = {"dv"}, ["Thai"] = {"th"}, ["Tibt"] = {"dz"} }


text:
Module:Lang/ISO 639 synonyms

-- File-Date: 2013-01-11 return { ["aar"] = "aa", ["abk"] = "ab", ["afr"] = "af", ["aka"] = "ak", ["amh"] = "am", ["ara"] = "ar", ["arg"] = "an", ["asm"] = "as", ["ava"] = "av", ["ave"] = "ae", ["aym"] = "ay", ["aze"] = "az", ["bak"] = "ba", ["bam"] = "bm", ["bel"] = "be", ["ben"] = "bn", ["bih"] = "bh", ["bis"] = "bi", ["bod"] = "bo", ["bos"] = "bs", ["bre"] = "br", ["bul"] = "bg", ["cat"] = "ca", ["ces"] = "cs", ["cha"] = "ch", ["che"] = "ce", ["chu"] = "cu", ["chv"] = "cv", ["cor"] = "kw", ["cos"] = "co", ["cre"] = "cr", ["cym"] = "cy", ["dan"] = "da", ["deu"] = "de", ["div"] = "dv", ["dzo"] = "dz", ["ell"] = "el", ["eng"] = "en", ["epo"] = "eo", ["est"] = "et", ["eus"] = "eu", ["ewe"] = "ee", ["fao"] = "fo", ["fas"] = "fa", ["fij"] = "fj", ["fin"] = "fi", ["fra"] = "fr", ["fry"] = "fy", ["ful"] = "ff", ["gla"] = "gd", ["gle"] = "ga", ["glg"] = "gl", ["glv"] = "gv", ["grn"] = "gn", ["guj"] = "gu", ["hat"] = "ht", ["hau"] = "ha", ["heb"] = "he", ["her"] = "hz", ["hin"] = "hi", ["hmo"] = "ho", ["hrv"] = "hr", ["hun"] = "hu", ["hye"] = "hy", ["ibo"] = "ig", ["ido"] = "io", ["iii"] = "ii", ["iku"] = "iu", ["ile"] = "ie", ["ina"] = "ia", ["ind"] = "id", ["ipk"] = "ik", ["isl"] = "is", ["ita"] = "it", ["jav"] = "jv", ["jpn"] = "ja", ["kal"] = "kl", ["kan"] = "kn", ["kas"] = "ks", ["kat"] = "ka", ["kau"] = "kr", ["kaz"] = "kk", ["khm"] = "km", ["kik"] = "ki", ["kin"] = "rw", ["kir"] = "ky", ["kom"] = "kv", ["kon"] = "kg", ["kor"] = "ko", ["kua"] = "kj", ["kur"] = "ku", ["lao"] = "lo", ["lat"] = "la", ["lav"] = "lv", ["lim"] = "li", ["lin"] = "ln", ["lit"] = "lt", ["ltz"] = "lb", ["lub"] = "lu", ["lug"] = "lg", ["mah"] = "mh", ["mal"] = "ml", ["mar"] = "mr", ["mkd"] = "mk", ["mlg"] = "mg", ["mlt"] = "mt", ["mon"] = "mn", ["mri"] = "mi", ["msa"] = "ms", ["mya"] = "my", ["nau"] = "na", ["nav"] = "nv", ["nbl"] = "nr", ["nde"] = "nd", ["ndo"] = "ng", ["nep"] = "ne", ["nld"] = "nl", ["nno"] = "nn", ["nob"] = "nb", ["nor"] = "no", ["nya"] = "ny", ["oci"] = "oc", ["oji"] = "oj", ["ori"] = "or", ["orm"] = "om", ["oss"] = "os", ["pan"] = "pa", ["pli"] = "pi", ["pol"] = "pl", ["por"] = "pt", ["pus"] = "ps", ["que"] = "qu", ["roh"] = "rm", ["ron"] = "ro", ["run"] = "rn", ["rus"] = "ru", ["sag"] = "sg", ["san"] = "sa", ["sin"] = "si", ["slk"] = "sk", ["slv"] = "sl", ["sme"] = "se", ["smo"] = "sm", ["sna"] = "sn", ["snd"] = "sd", ["som"] = "so", ["sot"] = "st", ["spa"] = "es", ["sqi"] = "sq", ["srd"] = "sc", ["srp"] = "sr", ["ssw"] = "ss", ["sun"] = "su", ["swa"] = "sw", ["swe"] = "sv", ["tah"] = "ty", ["tam"] = "ta", ["tat"] = "tt", ["tel"] = "te", ["tgk"] = "tg", ["tgl"] = "tl", ["tha"] = "th", ["tir"] = "ti", ["ton"] = "to", ["tsn"] = "tn", ["tso"] = "ts", ["tuk"] = "tk", ["tur"] = "tr", ["twi"] = "tw", ["uig"] = "ug", ["ukr"] = "uk", ["urd"] = "ur", ["uzb"] = "uz", ["ven"] = "ve", ["vie"] = "vi", ["vol"] = "vo", ["wln"] = "wa", ["wol"] = "wo", ["xho"] = "xh", ["yid"] = "yi", ["yor"] = "yo", ["zha"] = "za", ["zho"] = "zh", ["zul"] = "zu" }

title: Module:Lang/ISO 639 synonyms


text:
Module:Lang/ISO 639 synonyms/doc

This module contains data taken directly from a local copy of data copied from the table at Codes for the Representation of Names of Languages on the ISO 639-1 and ISO 639-2 custodian's website.

The table in this module was created using Module:Language/data/ISO 639-2/make. There should be no need to hand edit this table, so please do not do so except to reflect changes that are actually present in the source (in which case it is probably better to re-run the extraction tool on the new data).

title: Module:Lang/ISO 639 synonyms/doc


text:
Template:Bracket

[

title: Template:Bracket


text:
Template:Bracket/doc

This template provides way to wrap wiki markup in (single) square brackets. More importantly, it helps to keep the markup free of line noise and thus easier to edit.

Usage

 * → [Example]

Function
This template is a simple wrapper around the  and   HTML entities that produce starting and ending brackets, respectively.

The template cannot output just an ending bracket. You will have to use  to produce the "]" ending bracket.

title: Template:Bracket/doc


text:
Module:Navbox

local p = {} local navbar = require('Module:Navbar')._navbar local cfg = mw.loadData('Module:Navbox/configuration') local getArgs -- lazily initialized local args local format = string.format

local function striped(wikitext, border) -- Return wikitext with markers replaced for odd/even striping. -- Child (subgroup) navboxes are flagged with a category that is removed -- by parent navboxes. The result is that the category shows all pages -- where a child navbox is not contained in a parent navbox. local orphanCat = cfg.category.orphan if border == cfg.keyword.border_subgroup and args[cfg.arg.orphan] ~= cfg.keyword.orphan_yes then -- No change; striping occurs in outermost navbox. return wikitext .. orphanCat end local first, second = cfg.class.navbox_odd_part, cfg.class.navbox_even_part if args[cfg.arg.evenodd] then if args[cfg.arg.evenodd] == cfg.keyword.evenodd_swap then first, second = second, first else first = args[cfg.arg.evenodd] second = first end end local changer if first == second then changer = first else local index = 0 changer = function (code) if code == '0' then -- Current occurrence is for a group before a nested table. -- Set it to first as a valid although pointless class. -- The next occurrence will be the first row after a title -- in a subgroup and will also be first. index = 0 return first end index = index + 1 return index % 2 == 1 and first or second end end local regex = orphanCat:gsub('([%[%]])', '%%%1') return (wikitext:gsub(regex, ''):gsub(cfg.marker.regex, changer)) -- omits gsub count end

local function processItem(item, nowrapitems) if item:sub(1, 2) == '{|' then -- Applying nowrap to lines in a table does not make sense. -- Add newlines to compensate for trim of x in |parm=x in a template. return '\n' .. item ..'\n' end if nowrapitems == cfg.keyword.nowrapitems_yes then local lines = {} for line in (item .. '\n'):gmatch('([^\n]*)\n') do			local prefix, content = line:match('^([*:;#]+)%s*(.*)') if prefix and not content:match(cfg.pattern.nowrap) then line = format(cfg.nowrap_item, prefix, content) end table.insert(lines, line) end item = table.concat(lines, '\n') end if item:match('^[*:;#]') then return '\n' .. item ..'\n' end return item end

local function has_navbar return args[cfg.arg.navbar] ~= cfg.keyword.navbar_off and args[cfg.arg.navbar] ~= cfg.keyword.navbar_plain and (			args[cfg.arg.name]			or mw.getCurrentFrame:getParent:getTitle:gsub(cfg.pattern.sandbox, '')				~= cfg.pattern.navbox		) end

local function renderNavBar(titleCell) if has_navbar then titleCell:wikitext(navbar{			[cfg.navbar.name] = args[cfg.arg.name],			[cfg.navbar.mini] = 1,			[cfg.navbar.fontstyle] = (args[cfg.arg.basestyle] or ) .. ';' ..				(args[cfg.arg.titlestyle] or ) ..				';background:none transparent;border:none;box-shadow:none;padding:0;'		}) end

end

local function renderTitleRow(tbl) if not args[cfg.arg.title] then return end

local titleRow = tbl:tag('tr')

local titleCell = titleRow:tag('th'):attr('scope', 'col')

local titleColspan = 2 if args[cfg.arg.imageleft] then titleColspan = titleColspan + 1 end if args[cfg.arg.image] then titleColspan = titleColspan + 1 end

titleCell :cssText(args[cfg.arg.basestyle]) :cssText(args[cfg.arg.titlestyle]) :addClass(cfg.class.navbox_title) :attr('colspan', titleColspan)

renderNavBar(titleCell)

titleCell :tag('div') -- id for aria-labelledby attribute :attr('id', mw.uri.anchorEncode(args[cfg.arg.title])) :addClass(args[cfg.arg.titleclass]) :css('font-size', '114%') :css('margin', '0 4em') :wikitext(processItem(args[cfg.arg.title])) end

local function getAboveBelowColspan local ret = 2 if args[cfg.arg.imageleft] then ret = ret + 1 end if args[cfg.arg.image] then ret = ret + 1 end return ret end

local function renderAboveRow(tbl) if not args[cfg.arg.above] then return end

tbl:tag('tr') :tag('td') :addClass(cfg.class.navbox_abovebelow) :addClass(args[cfg.arg.aboveclass]) :cssText(args[cfg.arg.basestyle]) :cssText(args[cfg.arg.abovestyle]) :attr('colspan', getAboveBelowColspan) :tag('div') -- id for aria-labelledby attribute, if no title :attr('id', args[cfg.arg.title] and nil or mw.uri.anchorEncode(args[cfg.arg.above])) :wikitext(processItem(args[cfg.arg.above], args[cfg.arg.nowrapitems])) end

local function renderBelowRow(tbl) if not args[cfg.arg.below] then return end

tbl:tag('tr') :tag('td') :addClass(cfg.class.navbox_abovebelow) :addClass(args[cfg.arg.belowclass]) :cssText(args[cfg.arg.basestyle]) :cssText(args[cfg.arg.belowstyle]) :attr('colspan', getAboveBelowColspan) :tag('div') :wikitext(processItem(args[cfg.arg.below], args[cfg.arg.nowrapitems])) end

local function renderListRow(tbl, index, listnum, listnums_size) local row = tbl:tag('tr')

if index == 1 and args[cfg.arg.imageleft] then row :tag('td') :addClass(cfg.class.noviewer) :addClass(cfg.class.navbox_image) :addClass(args[cfg.arg.imageclass]) :css('width', '1px')              -- Minimize width :css('padding', '0 2px 0 0') :cssText(args[cfg.arg.imageleftstyle]) :attr('rowspan', listnums_size) :tag('div') :wikitext(processItem(args[cfg.arg.imageleft])) end

local group_and_num = format(cfg.arg.group_and_num, listnum) local groupstyle_and_num = format(cfg.arg.groupstyle_and_num, listnum) if args[group_and_num] then local groupCell = row:tag('th')

-- id for aria-labelledby attribute, if lone group with no title or above if listnum == 1 and not (args[cfg.arg.title] or args[cfg.arg.above] or args[cfg.arg.group2]) then groupCell :attr('id', mw.uri.anchorEncode(args[cfg.arg.group1])) end

groupCell :attr('scope', 'row') :addClass(cfg.class.navbox_group) :addClass(args[cfg.arg.groupclass]) :cssText(args[cfg.arg.basestyle]) -- If groupwidth not specified, minimize width :css('width', args[cfg.arg.groupwidth] or '1%')

groupCell :cssText(args[cfg.arg.groupstyle]) :cssText(args[groupstyle_and_num]) :wikitext(args[group_and_num]) end

local listCell = row:tag('td')

if args[group_and_num] then listCell :addClass(cfg.class.navbox_list_with_group) else listCell:attr('colspan', 2) end

if not args[cfg.arg.groupwidth] then listCell:css('width', '100%') end

local rowstyle -- usually nil so cssText(rowstyle) usually adds nothing if index % 2 == 1 then rowstyle = args[cfg.arg.oddstyle] else rowstyle = args[cfg.arg.evenstyle] end

local list_and_num = format(cfg.arg.list_and_num, listnum) local listText = args[list_and_num] local oddEven = cfg.marker.oddeven if listText:sub(1, 12) == ' <table' then -- Assume list text is for a subgroup navbox so no automatic striping for this row. oddEven = listText:find(cfg.pattern.navbox_title) and cfg.marker.restart or cfg.class.navbox_odd_part end

local liststyle_and_num = format(cfg.arg.liststyle_and_num, listnum) local listclass_and_num = format(cfg.arg.listclass_and_num, listnum) listCell :css('padding', '0') :cssText(args[cfg.arg.liststyle]) :cssText(rowstyle) :cssText(args[liststyle_and_num]) :addClass(cfg.class.navbox_list) :addClass(cfg.class.navbox_part .. oddEven) :addClass(args[cfg.arg.listclass]) :addClass(args[listclass_and_num]) :tag('div') :css('padding',				(index == 1 and args[cfg.arg.list1padding]) or args[cfg.arg.listpadding] or '0 0.25em'			) :wikitext(processItem(listText, args[cfg.arg.nowrapitems]))

if index == 1 and args[cfg.arg.image] then row :tag('td') :addClass(cfg.class.noviewer) :addClass(cfg.class.navbox_image) :addClass(args[cfg.arg.imageclass]) :css('width', '1px')              -- Minimize width :css('padding', '0 0 0 2px') :cssText(args[cfg.arg.imagestyle]) :attr('rowspan', listnums_size) :tag('div') :wikitext(processItem(args[cfg.arg.image])) end end

local function has_list_class(htmlclass) local patterns = { '^' .. htmlclass .. '$',		'%s' .. htmlclass .. '$',		'^' .. htmlclass .. '%s', '%s' .. htmlclass .. '%s' }	for arg, _ in pairs(args) do		if type(arg) == 'string' and mw.ustring.find(arg, cfg.pattern.class) then for _, pattern in ipairs(patterns) do				if mw.ustring.find(args[arg] or '', pattern) then return true end end end end return false end

-- there are a lot of list classes in the wild, so we add their TemplateStyles local function add_list_styles local frame = mw.getCurrentFrame local function add_list_templatestyles(htmlclass, templatestyles) if has_list_class(htmlclass) then return frame:extensionTag{ name = 'templatestyles', args = { src = templatestyles } }		else return '' end end local hlist_styles = add_list_templatestyles('hlist', cfg.hlist_templatestyles) local plainlist_styles = add_list_templatestyles('plainlist', cfg.plainlist_templatestyles) -- a second workaround for T303378 -- when that issue is fixed, we can actually use has_navbar not to emit the -- tag here if we want if has_navbar and hlist_styles == '' then hlist_styles = frame:extensionTag{ name = 'templatestyles', args = { src = cfg.hlist_templatestyles } }	end -- hlist -> plainlist is best-effort to preserve old Common.css ordering. -- this ordering is not a guarantee because most navboxes will emit only -- one of these classes [hlist_note] return hlist_styles .. plainlist_styles end

local function needsHorizontalLists(border) if border == cfg.keyword.border_subgroup or args[cfg.arg.tracking] == cfg.keyword.tracking_no then return false end return not has_list_class(cfg.pattern.hlist) and not has_list_class(cfg.pattern.plainlist) end

local function hasBackgroundColors for _, key in ipairs({cfg.arg.titlestyle, cfg.arg.groupstyle,		cfg.arg.basestyle, cfg.arg.abovestyle, cfg.arg.belowstyle}) do		if tostring(args[key]):find('background', 1, true) then return true end end return false end

local function hasBorders for _, key in ipairs({cfg.arg.groupstyle, cfg.arg.basestyle,		cfg.arg.abovestyle, cfg.arg.belowstyle}) do		if tostring(args[key]):find('border', 1, true) then return true end end return false end

local function isIllegible local styleratio = require('Module:Color contrast')._styleratio for key, style in pairs(args) do		if tostring(key):match(cfg.pattern.style) then if styleratio{mw.text.unstripNoWiki(style)} < 4.5 then return true end end end return false end

local function getTrackingCategories(border) local cats = {} if needsHorizontalLists(border) then table.insert(cats, cfg.category.horizontal_lists) end if hasBackgroundColors then table.insert(cats, cfg.category.background_colors) end if isIllegible then table.insert(cats, cfg.category.illegible) end if hasBorders then table.insert(cats, cfg.category.borders) end return cats end

local function renderTrackingCategories(builder, border) local title = mw.title.getCurrentTitle if title.namespace ~= 10 then return end -- not in template space local subpage = title.subpageText if subpage == cfg.keyword.subpage_doc or subpage == cfg.keyword.subpage_sandbox or subpage == cfg.keyword.subpage_testcases then return end

for _, cat in ipairs(getTrackingCategories(border)) do		builder:wikitext('') end end

local function renderMainTable(border, listnums) local tbl = mw.html.create('table') :addClass(cfg.class.nowraplinks) :addClass(args[cfg.arg.bodyclass])

local state = args[cfg.arg.state] if args[cfg.arg.title] and state ~= cfg.keyword.state_plain and state ~= cfg.keyword.state_off then if state == cfg.keyword.state_collapsed then state = cfg.class.collapsed end tbl :addClass(cfg.class.collapsible) :addClass(state or cfg.class.autocollapse) end

tbl:css('border-spacing', 0) if border == cfg.keyword.border_subgroup or border == cfg.keyword.border_none then tbl :addClass(cfg.class.navbox_subgroup) :cssText(args[cfg.arg.bodystyle]) :cssText(args[cfg.arg.style]) else -- regular navbox - bodystyle and style will be applied to the wrapper table tbl :addClass(cfg.class.navbox_inner) :css('background', 'transparent') :css('color', 'inherit') end tbl:cssText(args[cfg.arg.innerstyle])

renderTitleRow(tbl) renderAboveRow(tbl) local listnums_size = #listnums for i, listnum in ipairs(listnums) do		renderListRow(tbl, i, listnum, listnums_size) end renderBelowRow(tbl)

return tbl end

local function add_navbox_styles(hiding_templatestyles) local frame = mw.getCurrentFrame -- This is a lambda so that it doesn't need the frame as a parameter local function add_user_styles(templatestyles) if templatestyles and templatestyles ~= '' then return frame:extensionTag{ name = 'templatestyles', args = { src = templatestyles } }		end return '' end

-- get templatestyles. load base from config so that Lua only needs to do	-- the work once of parser tag expansion local base_templatestyles = cfg.templatestyles local templatestyles = add_user_styles(args[cfg.arg.templatestyles]) local child_templatestyles = add_user_styles(args[cfg.arg.child_templatestyles])

-- The 'navbox-styles' div exists to wrap the styles to work around T200206 -- more elegantly. Instead of combinatorial rules, this ends up being linear -- number of CSS rules. return mw.html.create('div') :addClass(cfg.class.navbox_styles) :wikitext(			add_list_styles .. -- see [hlist_note] applied to 'before base_templatestyles'			base_templatestyles ..			templatestyles ..			child_templatestyles ..			table.concat(hiding_templatestyles)		) :done end

-- work around T303378 -- for each arg: find all the templatestyles strip markers, insert them into a -- table. then remove all templatestyles markers from the arg local function move_hiding_templatestyles(args) local gfind = string.gfind local gsub = string.gsub local templatestyles_markers = {} local strip_marker_pattern = '(\127[^\127]*UNIQ%-%-templatestyles%-%x+%-QINU[^\127]*\127)' for k, arg in pairs(args) do		for marker in gfind(arg, strip_marker_pattern) do			table.insert(templatestyles_markers, marker) end args[k] = gsub(arg, strip_marker_pattern, '') end return templatestyles_markers end

function p._navbox(navboxArgs) args = navboxArgs local hiding_templatestyles = move_hiding_templatestyles(args) local listnums = {}

for k, _ in pairs(args) do		if type(k) == 'string' then local listnum = k:match(cfg.pattern.listnum) if listnum then table.insert(listnums, tonumber(listnum)) end end end table.sort(listnums)

local border = mw.text.trim(args[cfg.arg.border] or args[1] or '') if border == cfg.keyword.border_child then border = cfg.keyword.border_subgroup end

-- render the main body of the navbox local tbl = renderMainTable(border, listnums)

local res = mw.html.create -- render the appropriate wrapper for the navbox, based on the border param

if border == cfg.keyword.border_none then res:node(add_navbox_styles(hiding_templatestyles)) local nav = res:tag('div') :attr('role', 'navigation') :node(tbl) -- aria-labelledby title, otherwise above, otherwise lone group if args[cfg.arg.title] or args[cfg.arg.above] or (args[cfg.arg.group1]			and not args[cfg.arg.group2]) then nav:attr(				'aria-labelledby',				mw.uri.anchorEncode( args[cfg.arg.title] or args[cfg.arg.above] or args[cfg.arg.group1] )			)		else nav:attr('aria-label', cfg.aria_label) end elseif border == cfg.keyword.border_subgroup then -- We assume that this navbox is being rendered in a list cell of a -- parent navbox, and is therefore inside a div with padding:0em 0.25em. -- We start with a to avoid the padding being applied, and at the -- end add a to balance out the parent's 		res :wikitext(' ') :node(tbl) :wikitext(' ') else res:node(add_navbox_styles(hiding_templatestyles)) local nav = res:tag('div') :attr('role', 'navigation') :addClass(cfg.class.navbox) :addClass(args[cfg.arg.navboxclass]) :cssText(args[cfg.arg.bodystyle]) :cssText(args[cfg.arg.style]) :css('padding', '3px') :node(tbl) -- aria-labelledby title, otherwise above, otherwise lone group if args[cfg.arg.title] or args[cfg.arg.above] or (args[cfg.arg.group1] and not args[cfg.arg.group2]) then nav:attr(				'aria-labelledby',				mw.uri.anchorEncode(args[cfg.arg.title] or args[cfg.arg.above] or args[cfg.arg.group1])			) else nav:attr('aria-label', cfg.aria_label) end end

if (args[cfg.arg.nocat] or cfg.keyword.nocat_false):lower == cfg.keyword.nocat_false then renderTrackingCategories(res, border) end return striped(tostring(res), border) end

function p.navbox(frame) if not getArgs then getArgs = require('Module:Arguments').getArgs end args = getArgs(frame, {wrappers = {cfg.pattern.navbox}})

-- Read the arguments in the order they'll be output in, to make references -- number in the right order. local _ _ = args[cfg.arg.title] _ = args[cfg.arg.above] -- Limit this to 20 as covering 'most' cases (that's a SWAG) and because -- iterator approach won't work here for i = 1, 20 do		_ = args[format(cfg.arg.group_and_num, i)] _ = args[format(cfg.arg.list_and_num, i)] end _ = args[cfg.arg.below]

return p._navbox(args) end

return p

title: Module:Navbox


text:
Module:Redirect

-- This module provides functions for getting the target of a redirect page.

local p = {}

-- Gets a mw.title object, using pcall to avoid generating script errors if we -- are over the expensive function count limit (among other possible causes). local function getTitle(...) local success, titleObj = pcall(mw.title.new, ...) if success then return titleObj else return nil end end

-- Gets the name of a page that a redirect leads to, or nil if it isn't a -- redirect. function p.getTargetFromText(text) local target = string.match(		text,		"^%s*#[Rr][Ee][Dd][Ii][Rr][Ee][Cc][Tt]%s*:?%s*%[%[([^%[%]|]-)%]%]"	) or string.match(		text,		"^%s*#[Rr][Ee][Dd][Ii][Rr][Ee][Cc][Tt]%s*:?%s*%[%[([^%[%]|]-)|[^%[%]]-%]%]"	) return target and mw.uri.decode(target, 'PATH') end

-- Gets the target of a redirect. If the page specified is not a redirect, -- returns nil. function p.getTarget(page, fulltext) -- Get the title object. Both page names and title objects are allowed -- as input. local titleObj if type(page) == 'string' or type(page) == 'number' then titleObj = getTitle(page) elseif type(page) == 'table' and type(page.getContent) == 'function' then titleObj = page else error(string.format( "bad argument #1 to 'getTarget'" .. " (string, number, or title object expected, got %s)", type(page) ), 2)	end if not titleObj then return nil end local targetTitle = titleObj.redirectTarget if targetTitle then if fulltext then return targetTitle.fullText else return targetTitle.prefixedText end else return nil end end

-- -- Given a single page name determines what page it redirects to and returns the -- target page name, or the passed page name when not a redirect. The passed -- page name can be given as plain text or as a page link. -- -- Returns page name as plain text, or when the bracket parameter is given, as a -- page link. Returns an error message when page does not exist or the redirect -- target cannot be determined for some reason. -- function p.luaMain(rname, bracket, fulltext) if type(rname) ~= "string" or not rname:find("%S") then return nil end bracket = bracket and "%s" or "%s" rname = rname:match("%[%[(.+)%]%]") or rname local target = p.getTarget(rname, fulltext) local ret = target or rname ret = getTitle(ret) if ret then if fulltext then ret = ret.fullText else ret = ret.prefixedText end return bracket:format(ret) else return nil end end

-- Provides access to the luaMain function from wikitext. function p.main(frame) local args = require('Module:Arguments').getArgs(frame, {frameOnly = true}) return p.luaMain(args[1], args.bracket, args.fulltext) or '' end

-- Returns true if the specified page is a redirect, and false otherwise. function p.luaIsRedirect(page) local titleObj = getTitle(page) if not titleObj then return false end if titleObj.isRedirect then return true else return false end end

-- Provides access to the luaIsRedirect function from wikitext, returning 'yes' -- if the specified page is a redirect, and the blank string otherwise. function p.isRedirect(frame) local args = require('Module:Arguments').getArgs(frame, {frameOnly = true}) if p.luaIsRedirect(args[1]) then return 'yes' else return '' end end

return p

title: Module:Redirect


text: Module:Plainlist

title: Module:Plainlist


text:
Module:Navbox/configuration

return { aria_label = 'Navbox', nowrap_item = '%s %s ', templatestyles = mw.getCurrentFrame:extensionTag{ name = 'templatestyles', args = { src = 'Module:Navbox/styles.css' } },	hlist_templatestyles = 'Hlist/styles.css', plainlist_templatestyles = 'Plainlist/styles.css', -- do not localize marker table marker = { oddeven = '\127_ODDEVEN_\127', restart = '\127_ODDEVEN0_\127', regex = '\127_ODDEVEN(%d?)_\127' },	category = { orphan = '', horizontal_lists = 'Navigational boxes without horizontal lists', background_colors = 'Navboxes using background colours', illegible = 'Potentially illegible navboxes', borders = 'Navboxes using borders', },	keyword = { border_subgroup = 'subgroup', border_child = 'child', border_none = 'none', evenodd_swap = 'swap', navbar_off = 'off', navbar_plain = 'plain', nocat_false = 'false', nowrapitems_yes = 'yes', orphan_yes = 'yes', state_collapsed = 'collapsed', state_off = 'off', state_plain = 'plain', subpage_doc = 'doc', subpage_sandbox = 'sandbox', subpage_testcases = 'testcases', tracking_no = 'no' },	class = { autocollapse = 'autocollapse', collapsible = 'mw-collapsible', collapsed = 'mw-collapsed', -- Warning navbox = 'navbox', -- WMF currently hides 'navbox' from mobile, -- so you probably shouldn't change the navbox class. navbox_abovebelow = 'navbox-abovebelow', navbox_group = 'navbox-group', navbox_image = 'navbox-image', navbox_inner = 'navbox-inner', navbox_list = 'navbox-list', navbox_list_with_group = 'navbox-list-with-group', navbox_part = 'navbox-', -- do not l10n navbox_styles = 'navbox-styles', navbox_subgroup = 'navbox-subgroup', navbox_title = 'navbox-title', -- l10n only if you change pattern.navbox_title below navbox_odd_part = 'odd', -- do not l10n navbox_even_part = 'even', -- do not l10n nomobile = 'nomobile', nowraplinks = 'nowraplinks', noviewer = 'noviewer' -- used to remove images from MediaViewer },	pattern = { listnum = '^list(%d+)$', class = 'class', sandbox = '/sandbox$', navbox = 'Template:Navbox', nowrap = '^ ', style = 'style$', navbox_title = ']*"navbox%-title"', hlist = 'hlist', plainlist = 'plainlist', },	arg = { above = 'above', aboveclass = 'aboveclass', abovestyle = 'abovestyle', basestyle = 'basestyle', bodyclass = 'bodyclass', bodystyle = 'bodystyle', border = 'border', below = 'below', belowclass = 'belowclass', belowstyle = 'belowstyle', evenodd = 'evenodd', evenstyle = 'evenstyle', group1 = 'group1', group2 = 'group2', group_and_num = 'group%d', groupstyle_and_num = 'group%dstyle', groupclass = 'groupclass', groupstyle = 'groupstyle', groupwidth = 'groupwidth', innerstyle = 'innerstyle', image = 'image', imageclass = 'imageclass', imageleft = 'imageleft', imageleftstyle = 'imageleftstyle', imagesetyle = 'imagestyle', list_and_num = 'list%d', listclass_and_num = 'list%dclass', liststyle_and_num = 'list%dstyle', list1padding = 'list1padding', listclass = 'listclass', listpadding = 'listpadding', liststyle = 'liststyle', name = 'name', navbar = 'navbar', navboxclass = 'navboxclass', nocat = 'nocat', nowrapitems = 'nowrapitems', oddstyle = 'oddstyle', orphan = 'orphan', state = 'state', style = 'style', templatestyles = 'templatestyles', child_templatestyles = 'child templatestyles', title = 'title', titleclass = 'titleclass', titlestyle = 'titlestyle', tracking = 'tracking' },	-- names of navbar arguments navbar = { name = 1, fontstyle = 'fontstyle', mini = 'mini' } }

title: Module:Navbox/configuration


text: Module:Ombox

title: Module:Ombox


text: Module:Endplainlist

title: Module:Endplainlist


text: Module:Sandbox other

title: Module:Sandbox other


text: Module:Lua

title: Module:Lua


text:
Module:Category link with count

Category:

title: Module:Category link with count


text: Module:Module other

title: Module:Module other


text: Module:Lua sidebar

title: Module:Lua sidebar


text:
Module:Lua sidebar/styles.css

.lua-sidebar { width: auto; max-width: 22em; }

title: Module:Lua sidebar/styles.css


text:
Module:Transclusion count/data/N

return { ["N"] = 15000, ["N/A"] = 23000, ["N/a"] = 52000, ["NA-Class"] = 14000, ["NASTRO_comment"] = 30000, ["NBA_Draft_template_list"] = 3400, ["NBA_Year"] = 5500, ["NBA_color"] = 3600, ["NBA_color_cell"] = 4200, ["NBA_color_cell2"] = 3300, ["NBA_player_statistics_legend"] = 4100, ["NBA_player_statistics_start"] = 3700, ["NBbox"] = 3400, ["NCAA_color_cell"] = 9400, ["NCAA_secondary_color_cell"] = 4100, ["NCES_District_ID"] = 2600, ["NED"] = 9500, ["NEXTYEAR"] = 7500, ["NFLAltPrimaryStyle"] = 5800, ["NFLPrimaryColor"] = 2200, ["NFLPrimaryStyle"] = 28000, ["NFLSecondaryColor"] = 19000, ["NFL_Roster_navbox_template_list"] = 2400, ["NFL_Year"] = 23000, ["NFL_predraft"] = 5200, ["NFL_predraft/check"] = 5200, ["NFL_predraft/ftin"] = 5200, ["NFLplayer"] = 2100, ["NFT"] = 6700, ["NFT_player"] = 30000, ["NGA"] = 3100, ["NGR"] = 2300, ["NHLE"] = 18000, ["NHLS_url"] = 2200, ["NLD"] = 11000, ["NLM_content"] = 2800, ["NOINDEX"] = 443000, ["NOMIS2011"] = 2300, ["NOR"] = 9300, ["NRDB_species"] = 6700, ["NRHP-PA"] = 2600, ["NRHPGoogleMapFootnote"] = 2500, ["NRHP_Focus"] = 75000, ["NRHP_color"] = 3700, ["NRHP_date_for_lists"] = 3100, ["NRHP_date_for_lists/dates"] = 3100, ["NRHP_header"] = 3300, ["NRHP_navigation_box"] = 8200, ["NRHP_row"] = 3400, ["NRHP_style"] = 70000, ["NRHP_url"] = 29000, ["NRHP_url/core"] = 31000, ["NRISref"] = 72000, ["NSWcity"] = 2100, ["NSWcity/core"] = 2100, ["NUMBEROFSECTIONS"] = 3700, ["NYCS_br"] = 2700, ["NYCS_time_2"] = 3100, ["NZL"] = 6700, ["NZ_electorate_link"] = 2300, ["Na"] = 2300, ["Nac"] = 2600, ["Namespace_detect"] = 560000, ["Namespace_detect_showall"] = 6900, ["Nastaliq"] = 10000, ["Nat_fs_end"] = 2400, ["National_Film_Awards/style"] = 2000, ["National_Heritage_List_for_England"] = 22000, ["National_Rail_style"] = 5700, ["National_Register_of_Historic_Places"] = 29000, ["National_Register_of_Historic_Places_in_Massachusetts"] = 4400, ["National_Register_of_Historic_Places_in_New_York"] = 5600, ["National_Register_of_Historic_Places_in_North_Carolina"] = 2900, ["National_Register_of_Historic_Places_in_Pennsylvania"] = 3200, ["National_Register_of_Historic_Places_in_Virginia"] = 3100, ["National_basketball_squad"] = 3200, ["National_field_hockey_squad"] = 4000, ["National_football_squad_end"] = 2900, ["National_football_squad_start/styles.css"] = 2300, ["National_rugby_union_team"] = 3500, ["National_squad"] = 41000, ["National_squad_no_numbers"] = 17000, ["Native_name"] = 16000, ["Native_name_checker"] = 79000, ["Naval"] = 2600, ["Naval/core"] = 2600, ["Navbar"] = 42000, ["Navbar-collapsible"] = 3600, ["Navbar-header"] = 15000, ["Navbar-header/styles.css"] = 15000, ["Navbox"] = 3030000, ["Navbox_GR_munic"] = 3500, ["Navbox_Musical_artist"] = 9700, ["Navbox_bottom"] = 15000, ["Navbox_decade_list"] = 11000, ["Navbox_ice_hockey"] = 3100, ["Navbox_musical_artist"] = 219000, ["Navbox_musical_artist/color"] = 219000, ["Navbox_rugby_league_squad"] = 4900, ["Navbox_season_by_team"] = 3100, ["Navbox_top"] = 15000, ["Navbox_with_collapsible_groups"] = 129000, ["Navbox_with_collapsible_sections"] = 2300, ["Navbox_with_columns"] = 24000, ["Navboxes"] = 54000, ["Navboxes_colour"] = 5600, ["Navseasoncats"] = 476000, ["Navseasoncats_with_centuries_below_decade"] = 7100, ["Navseasoncats_with_decades_below_year"] = 19000, ["Navsource"] = 2500, ["Navy"] = 19000, ["Navy/core"] = 19000, ["Nay"] = 18000, ["Nbay"] = 5500, ["Nbsp"] = 474000, ["Nbsp_to_space"] = 19000, ["Ndash"] = 19000, ["Nee"] = 8700, ["NeilBrownPlayers"] = 3100, ["New_user_bar"] = 57000, ["Newbot"] = 4200, ["Next_period"] = 21000, ["Nfly"] = 2100, ["Nihongo"] = 101000, ["Nihongo2"] = 12000, ["Nihongo_foot"] = 2500, ["No"] = 8100, ["No."] = 14000, ["No2"] = 10000, ["NoSpam"] = 3900, ["NoSpamEmail"] = 17000, ["No_col_break"] = 2300, ["No_col_break/styles.css"] = 2300, ["No_footnotes"] = 51000, ["No_ping"] = 375000, ["No_plot"] = 5300, ["No_redirect"] = 555000, ["No_spam"] = 256000, ["No_wrap"] = 2300, ["Nobold"] = 384000, ["Nobold/styles.css"] = 384000, ["Nobr"] = 4700, ["Nobreak"] = 28000, ["Nochange"] = 2400, ["Noindex"] = 4800, ["Noitalic"] = 4400, ["Noitalic/styles.css"] = 4400, ["Nom"] = 39000, ["Nominated"] = 7000, ["Non-English-language_text_category"] = 2500, ["Non-admin_closure"] = 2700, ["Non-diffusing_subcategory"] = 13000, ["Non-free_2D_art"] = 7100, ["Non-free_3D_art"] = 2500, ["Non-free_album_cover"] = 198000, ["Non-free_audio_sample"] = 8400, ["Non-free_biog-pic"] = 24000, ["Non-free_book_cover"] = 55000, ["Non-free_character"] = 2400, ["Non-free_comic"] = 11000, ["Non-free_fair_use"] = 17000, ["Non-free_fair_use_in"] = 14000, ["Non-free_film_poster"] = 23000, ["Non-free_film_screenshot"] = 5100, ["Non-free_game_cover"] = 7200, ["Non-free_game_screenshot"] = 4600, ["Non-free_historic_image"] = 16000, ["Non-free_image_data"] = 8700, ["Non-free_image_rationale"] = 9800, ["Non-free_in_US"] = 2100, ["Non-free_logo"] = 162000, ["Non-free_magazine_cover"] = 7600, ["Non-free_media"] = 724000, ["Non-free_media_data"] = 9800, ["Non-free_media_rationale"] = 11000, ["Non-free_movie_poster"] = 22000, ["Non-free_poster"] = 79000, ["Non-free_promotional"] = 8900, ["Non-free_school_logo"] = 2400, ["Non-free_seal"] = 3900, ["Non-free_symbol"] = 6100, ["Non-free_television_screenshot"] = 16000, ["Non-free_title-card"] = 5600, ["Non-free_use_rationale"] = 458000, ["Non-free_use_rationale/styles.css"] = 530000, ["Non-free_use_rationale_2"] = 208000, ["Non-free_use_rationale_album_cover"] = 131000, ["Non-free_use_rationale_book_cover"] = 19000, ["Non-free_use_rationale_logo"] = 95000, ["Non-free_use_rationale_poster"] = 51000, ["Non-free_use_rationale_title-card"] = 2700, ["Non-free_use_rationale_video_cover"] = 5800, ["Non-free_use_rationale_video_game_cover"] = 10000, ["Non-free_video_cover"] = 16000, ["Non-free_video_game_cover"] = 21000, ["Non-free_video_game_cover/platform"] = 21000, ["Non-free_video_game_screenshot"] = 10000, ["Non-free_video_game_screenshot/platform"] = 9500, ["Non-free_with_NC"] = 2700, ["Non-free_with_permission"] = 2100, ["Nonspecific"] = 2200, ["Nonumtoc"] = 2700, ["Nonumtoc/styles.css"] = 2700, ["Noping"] = 366000, ["Noprint"] = 2900, ["Noredirect"] = 8300, ["Normalwraplink"] = 3500, ["NorthAmNative"] = 2100, ["North_America_topic"] = 3500, ["Northern_Ireland_tasks"] = 19000, ["Nospam"] = 19000, ["Not-PD-US-expired-min-year"] = 26000, ["Not_a_ballot"] = 7600, ["Not_a_forum"] = 7600, ["Not_a_typo"] = 10000, ["Not_around"] = 2900, ["Not_done"] = 19000, ["Notability"] = 63000, ["Notavote"] = 2100, ["Notdone"] = 5400, ["Note"] = 25000, ["NoteFoot"] = 3700, ["NoteTag"] = 3700, ["Note_label"] = 9000, ["Notelist"] = 177000, ["Notelist-lr"] = 3400, ["Notelist-ua"] = 6500, ["Notes"] = 6700, ["Noteslist"] = 3700, ["Notice"] = 112000, ["NovelsWikiProject"] = 19000, ["Nowiki_="] = 2300, ["Nowrap"] = 829000, ["Np"] = 2700, ["Npby"] = 2500, ["Nq"] = 3600, ["Nrut"] = 3500, ["Ns"] = 2600, ["Ns0"] = 107000, ["Ns_has_subpages"] = 2150000, ["Nts"] = 20000, ["Ntsh"] = 3300, ["Number_of_defined_parameters"] = 4800, ["Number_table_sorting"] = 34000, ["Number_table_sorting_hidden"] = 3300, ["Number_to_word"] = 7200, ["Numero"] = 3500, ["Numrec"] = 2100, ["Nutshell"] = 3900, ["Nw="] = 2300, ["Module:NUMBEROFSECTIONS"] = 3700, ["Module:Namespace_detect"] = 15700000, ["Module:Namespace_detect/config"] = 16900000, ["Module:Namespace_detect/data"] = 16900000, ["Module:National_squad"] = 54000, ["Module:Native_name"] = 89000, ["Module:Navbar"] = 5390000, ["Module:Navbar/configuration"] = 5390000, ["Module:Navbar/styles.css"] = 4760000, ["Module:Navbox"] = 4400000, ["Module:Navbox/configuration"] = 4400000, ["Module:Navbox/styles.css"] = 4400000, ["Module:Navbox_ice_hockey"] = 3100, ["Module:Navbox_top_and_bottom"] = 15000, ["Module:Navbox_with_collapsible_groups"] = 137000, ["Module:Navboxes"] = 55000, ["Module:Navseasoncats"] = 476000, ["Module:Nihongo"] = 104000, ["Module:No_ping"] = 445000, ["Module:Noinclude"] = 4200, ["Module:Ns_has_subpages"] = 2150000, ["Module:Number_table_sorting"] = 36000, }

title: Module:Transclusion count/data/N


text: Module:Module rating

title: Module:Module rating


text:
Module:Navbox/doc

This module implements the Navbox template. Please see the template page for usage instructions.

title: Module:Navbox/doc


text:
Module:Plainlist/styles.css

/* */ .plainlist ol, .plainlist ul { line-height: inherit; list-style: none; margin: 0; padding: 0; /* Reset Minerva default */ }

.plainlist ol li, .plainlist ul li { margin-bottom: 0; }

title: Module:Plainlist/styles.css


text:
Module:Hlist/styles.css

/* */ /*  * hlist styles are defined in core and Minerva and differ in Minerva. The * current definitions here (2023-01-01) are sufficient to override Minerva * without use of the hlist-separated class. The most problematic styles were * related to margin, padding, and the bullet. Check files listed at * MediaWiki talk:Common.css/to do */ /* * TODO: When the majority of readership supports it (or some beautiful world * in which grade C support is above the minimum threshold), use :is */ .hlist dl, .hlist ol, .hlist ul { margin: 0; padding: 0; }

/* Display list items inline */ .hlist dd, .hlist dt, .hlist li { /*	 * don't trust the note that says margin doesn't work with inline * removing margin: 0 makes dds have margins again * We also want to reset margin-right in Minerva */	margin: 0; display: inline; }

/* Display requested top-level lists inline */ .hlist.inline, .hlist.inline dl, .hlist.inline ol, .hlist.inline ul, /* Display nested lists inline */ .hlist dl dl, .hlist dl ol, .hlist dl ul, .hlist ol dl, .hlist ol ol, .hlist ol ul, .hlist ul dl, .hlist ul ol, .hlist ul ul { display: inline; }

/* Hide empty list items */ .hlist .mw-empty-li { display: none; }

/* TODO: :not can maybe be used here to remove the later rule. naive test * seems to work. more testing needed. like so: *.hlist dt:not(:last-child)::after { *	content: ": "; *} *.hlist dd:not(:last-child)::after, *.hlist li:not(:last-child)::after { *	content: " · "; *	font-weight: bold; *} */ /* Generate interpuncts */ .hlist dt::after { content: ": "; }

.hlist dd::after, .hlist li::after { content: " · "; font-weight: bold; }

.hlist dd:last-child::after, .hlist dt:last-child::after, .hlist li:last-child::after { content: none; }

/* Add parentheses around nested lists */ .hlist dd dd:first-child::before, .hlist dd dt:first-child::before, .hlist dd li:first-child::before, .hlist dt dd:first-child::before, .hlist dt dt:first-child::before, .hlist dt li:first-child::before, .hlist li dd:first-child::before, .hlist li dt:first-child::before, .hlist li li:first-child::before { content: " (";	font-weight: normal; }

.hlist dd dd:last-child::after, .hlist dd dt:last-child::after, .hlist dd li:last-child::after, .hlist dt dd:last-child::after, .hlist dt dt:last-child::after, .hlist dt li:last-child::after, .hlist li dd:last-child::after, .hlist li dt:last-child::after, .hlist li li:last-child::after { content: ")";	font-weight: normal; }

/* Put ordinals in front of ordered list items */ .hlist ol { counter-reset: listitem; }

.hlist ol > li { counter-increment: listitem; }

.hlist ol > li::before { content: " " counter(listitem) "\a0"; }

.hlist dd ol > li:first-child::before, .hlist dt ol > li:first-child::before, .hlist li ol > li:first-child::before { content: " (" counter(listitem) "\a0"; }

title: Module:Hlist/styles.css


text:
Module:Redirect/doc

This module contains functions to find the target of a redirect page.

Main
The main function accepts the name of a single page. It determines if the page is a redirect; if so it looks up the page, extracts the target, and returns the target name as text. Its usage is. If  does not exist or is not a redirect then   is returned. If  is blank then blank is returned.

The function normally neither takes nor gives square brackets, so to show the result as a link use.

If the parameter bracket is given a nonblank value, brackets will be passed on if present.

Examples

 * →
 * →
 * →
 * →

Note: WP:AFC and WP:AFD are both redirects, but Articles for deletion is not, and Articles for rumination does not exist.

LuaMain
If you want to use the main function from another Lua module, you may want to use the luaMain function. This provides the same functionality as the main function, but doesn't require that a frame object be available.

To use this, first load the module.

Then use the function with the following syntax:

rname is the name of the redirect page, and if bracket is anything but false or nil, the module will produce a link rather than just a page name.

IsRedirect
The isRedirect function is used from wiki pages to find out if a given page is a redirect or not. If the page is a redirect, the function returns "yes", and if not the output is blank. Its usage is.

Examples

 * →
 * →
 * →

LuaIsRedirect
The isRedirect can be accessed from other Lua modules in the same way as the main function:

GetTarget
The getTarget function fetches the target page name of a redirect page, and is only usable from Lua. If the page specified is a redirect, then the target is returned; otherwise the function returns nil.

To use it, first load the module.

Then use the function with the following syntax:

page can be either the name of the redirect page as a string, or a mw.title object.

title: Module:Redirect/doc


text:
User:WikiUser70176

Hello. For more about me, see my Wikipedia user page.

title: User:WikiUser70176


text:
Supplementary mathematics/Statistics and Probability

Statistics, in the popular sense of the term, deals with the group study of a population with the help of mathematics. In descriptive statistics, we simply describe a sample using quantities such as the mean, the median, the standard deviation, the proportion, the correlation, etc. This is often the technique that is used in censuses.

In a broader sense, statistical theory is used in research for inferential purposes. The goal of statistical inference is to draw the portrait of a given population, from the more or less blurred image formed using a sample from this population.

In another order of ideas, there is also “mathematical” statistics where the challenge is to find judicious (unbiased and efficient) estimators. The analysis of the mathematical properties of these estimators is at the heart of the work of the mathematician specializing in statistics.

The terms inductive statistics, appraisal statistics and inferential statistics ( inferential statistics ) are mostly used synonymously , which characterize the part of the statistics that is complementary to the descriptive statistics. Together with the theory of probability, mathematical statistics form the branch of mathematics known as stochastics .The mathematical basis of mathematical statistics is the theory of probability.

Probability theory in mathematics is the study of phenomena characterized by chance and uncertainty. Along with statistics, it forms the two sciences of chance which are an integral part of mathematics. The beginnings of the study of probabilities correspond to the first observations of chance in games or in climatic phenomena, for example.

Bell curve, histogram and dice.

Although the calculation of probabilities on questions related to chance has existed for a long time, the mathematical formalization is only recent. It dates from the beginning of the 20th century with Kolmogorov  's axiomatics. Objects such as events, probability measures , probability spaces or random variables are central in the theory. They make it possible to abstractly translate behaviors or measured quantities that can be assumed to be random. Depending on the number of possible values for the random phenomenon studied, probability theory is said to be discrete or continuous.. In the discrete case, that is to say for at most a countable number of possible states, the theory of probabilities approaches the theory of enumeration  ; whereas in the continuous case, the theory of integration and the theory of measure provide the necessary tools.

Probabilistic objects and results are a necessary support for statistics, this is the case for example of Bayes' theorem , the evaluation of quantiles or the central limit theorem and the normal law. This modeling of chance also makes it possible to resolve several probabilistic paradoxes.

Whether discrete or continuous, stochastic calculus is the study of random phenomena that depend on time. The notion of stochastic integral and stochastic differential equation are part of this branch of probability theory. These random processes make it possible to make links with several more applied fields such as financial mathematics, statistical mechanics , image processing , etc.


text:
Supplementary mathematics/Mathematics analysis

Analysis is a branch of mathematics. Analysis has existed as an independent branch of mathematics since Leonhard Euler (18th century). Since then it has been the mathematics of natural and engineering sciences.

Its basics were developed independently in the 17th century by Gottfried Wilhelm Leibniz and Isaac Newton as infinitesimal calculus. Calculus is the mathematical study of continuous change, just as geometry is the study of form and algebra is the study of the generalization of arithmetic operations.

Central concepts of analysis are those of the limit value, the sequence , the series and, in particular, the concept of the function. The investigation of real and complex functions with regard to continuity, differentiability and integrability is one of the main subjects of analysis. The two bodies are fundamental to the entire analysis (the field of real numbers ) and(the field of complex numbers ) together with their geometric, arithmetic, algebraic and topological properties.


text:
User talk:WikiUser70176

Let's talk.

title: User talk:WikiUser70176


text:
Talk:Nature/Matter

I try to translate the book from german wikibooks

title: Talk:Nature/Matter


text:
Nature/Matter

Introduction
The world consists of matter (substance) and energy (radiation). These two can have a variety of ordered and random forms (structures). They can also be converted into one another under certain conditions.

An unanswered question is whether the structure ( = information) is only a property of matter and energy, or whether it is an independent basic substance. The currently prevailing doctrine does not see any independent substance in information.

What is matter?
 is a general term for everything material that surrounds us and of which we ourselves are made.

Physical
In the physical sense, matter is everything that has a non-zero. The defining properties of matter are its, volume, and internal. Matter in a broader physical sense includes matter in the narrower sense as well as.

Properties of Matter
Matter has some important properties:

States of Matter
Gif files of the different states of matter

There are several manifestations of matter, for example:
 * solid
 * fluid
 * gaseous

When matter transitions from one state of aggregation to another, the inner of matter changes greatly. The entropy changes significantly even if the temperature remains the same. Entropy is a measure of the random structure of matter particles.

No Matter

 * Electromagnetic radiation, just like all other (rest massless), is not conceived as matter in a narrow sense.
 * Mathematical concepts like points, lines, and planes are immaterial.
 * contains little or no matter.

Creation of matter
According to the current standard model, large amounts of energy were released during the Big Bang.

These massive amounts of energy led to the formation of large amounts of densely packed elementary particles. In the so-called hadron era between 10-32 and 10-4 seconds after the Big Bang, the first stable and  came into existence.

In the so-called Lepton era up to the 1st second after the big bang, the first stable were created. Up until this time, matter and annihilated each other. In the end, the matter was left behind. Why only matter remained and not antimatter is unexplained.

In the following radiation era,,  and  were formed.

Today's matter era began about a million years after the Big Bang. The hydrogen clouds formed and stars and in those the hydrogen fused into  and onto carbon and iron, the most common chemical elements in our universe.

It is assumed that the heavier, rarer elements such as gold, lead, and uranium were created by the collision of, but especially in.

Extension of the term: Matter
With the development of his Special Theory of Relativity Albert Einstein provided the well-known formula $$E = mc^2 \ (\mathrm{energy} = \mathrm{mass} \times \mathrm{speed of light}^2)\,$$

This means that electromagnetic radiation (light, heat rays, etc.) can also be assigned a 'dynamic' mass. Hence the condition that matter must have mass is satisfied by the condition that matter must have mass at rest.

Conversely, massive matter particles also have wave properties (see the theory of by ). This means that the particles can no longer be precisely located. Instead, however, a statement can be made about the probability of their location.

Matter is built up from atoms. And atoms are made up of. In the group of fermions the three well-known particles are found.
 * the electron,
 * the proton and
 * the neutron,

Protons and neutrons are made out of.

Philosophically
The concept of matter is a central concept of philosophy. What matters actually is has been the subject of controversy since the beginning of philosophy. Today, this discussion has died down completely, since physics and chemistry have very successfully adopted the term and partially clarified it. On the other hand, the philosophical discussion about the is still in heat today.

Antiquity
According to the Greek n, the building blocks of reality were the 4 'elements': This theory is outdated today and only of historical interest.
 * Fire,
 * Water,
 * Air and
 * Earth.

Middle Ages
In the Middle Ages, the doctrine of matter is based on the basic concepts of  and expands on them. The starting point is the problem of becoming. To explain this requires a permanent and changing part. The remaining part is matter (also called cloth). The changing part is the immaterial form (forma).

Modern Times
According to, matter primarily has 2 properties: Expansion and mass. It is matter
 * about an understandable term implying space (extent), and
 * a comprehensible view in which the mass has been added to the space.

Matter as a philosophical category is not defined by the by enumerating physical properties, but by formulating the opposite to consciousness. Matter in this philosophical sense includes everything that exists independently of consciousness.

is the philosophical teaching, according to which the entire reality can be structured materially and accordingly understood purely materially. It was especially popular in the 19th century.

Most scientists today believe in an informed materialism, i.e. the world consists of matter (and energy). The structure of matter contains all of its spiritual possibilities. It is not yet clear if there is an independent basic substance of information.

, the founder of, said: '''Information is information, neither matter nor energy. No materialism that does not take this into account can survive today.'''

title: Nature/Matter


text:
History of video games/Platforms/Asus ROG Ally

History
Announced on April 1st, 2023 with key details omitted, the console was initially believed by many to be an April Fools joke before later being confirmed to be a real product.

Compute
The ROG Ally used a custom AMD APU manufactured by TSMC on an N4 4nm process node containing both a Zen 4 architecture CPU and an RDNA 3 GPU.

Hardware
The system drew 35 watts of power.

The weight of the system was 608 g.

Software
Windows 11 is used as the operating system for the ROG Ally. This was commonly contrasted with the competing Steam Deck, which typically used the Linux based SteamOS.


text:
User:PrincessPandaWiki/sandbox/Sonic Generations Story and Analysis

Sonic Generations is a 2011 platformer video game that was to commemorate Sonic the Hedgehog's 20th anniversary. Two different versions were released; this page covers the console and PC version. The story sees Sonic the Hedgehog's birthday party being interrupted by a monstrous entity called the Time Eater, who kidnaps Sonic's friends and sends Sonic to a strange dimension called White Space. Sonic and his "Classic" self from the past go on an adventure in White Space, which contains locations from previous Sonic games, to rescue their friends and return home.

The story was written by Ken Pontac and Warren Graff.

Story summary
Classic Sonic is running through Green Hill until he hears a noise and senses a brief earthquake, though he ignores it. Soon after though, a mysterious entity known as the Time Eater appears in the sky and everything whites out.

In the present day in the mainstream universe, Tails arrives at a gathering that is attended by his friends. Arriving soon after, Modern Sonic discovers that his friends have been preparing a surprise birthday party for him, as it is his birthday. Modern Sonic celebrates his birthday with his friends until the Time Eater disrupts the party by sucking everyone through various Time Holes and scattering them across time and space. Not happy with this, Modern Sonic tries to attack the monster, only for it to knock him down. The impact of the attack leaves Modern Sonic unconscious in the grass.

A while later, Modern Sonic regains consciousness, though he finds himself in a strange dimension known as White Space. Noticing a colorless portion of Green Hill and Tails (now a colorless statue) nearby, Modern Sonic races through Green Hill, which regains color and life after he runs through it. At the same time, Tails is restored too. The two then spot Chemical Plant in the same colorless state as Green Hill was nearby, and Modern Sonic heads over there to investigate. Meanwhile, Classic Sonic, whom Tails mistakes for Modern Sonic, passes by and goes to Chemical Plant as well. Later, Modern Sonic meets Tails at the Chemical Plant. While there, the hedgehog tells his friend that he is getting a strange sense of déjà vu from passing through these areas. Exiting the Chemical Plant, the area goes back to normal following Modern Sonic and Classic Sonic's run through it. However, each Sonic is unaware of the other's presence. At the same time Chemical Plant is restored, Amy is restored as well.

Afterwards, the two Sonics race through Sky Sanctuary, restoring Knuckles in the process. Following that, Classic Sonic ends up on a highway in Stardust Speedway, where he defeats Classic Metal Sonic and gets a Chaos Emerald from him. Later, Modern Sonic and Classic Sonic end up inside a Boss Gate at the same time, separated by a glass wall, which they each think is a mirror. Suddenly however, Modern Eggman's voice is heard from the exit of the Boss Gate, mocking the hedgehogs and telling them that he will end Sonic soon. While Modern Sonic is unfazed by the taunt, Classic Sonic heads into the exit. Modern Sonic then realizes that there is another version of himself here, and tries to enter the exit as well, only for it to close before he is able to pass through it. Meanwhile, Classic Sonic fights Classic Eggman and his Death Egg Robot aboard the Death Egg. After the doctor is defeated though, he is kidnapped by the Time Eater as he begs Sonic for help. Later, both Sonics meet in White Space, surprised by each other's presence. They also meet both Classic Tails and Modern Tails. The four of them then discover that they are traveling through time and space, which explains the various locations they recognize. The quartet subsequently team up to stop the Time Eater's rampage and save their remaining friends.

Continuing onward, the Sonics rescue Cream the Rabbit and Cheese after restoring Speed Highway, Rouge after restoring City Escape, and Espio after restoring Seaside Hill. Along the way, the two Tailses figure out that the Time Eater is tearing space apart as it moves through time, thereby ripping places from across space and time from their locations in their timelines and placing the-now lifeless and dead areas in White Space. However, by speeding through time in these areas, the Sonics are able to fix space and return life to these areas. With the universe about to fall into chaos because of the Time Eater however, the Sonics realize they have to get going like never before. Soon after, Modern Sonic claims a Chaos Emerald following a meeting and clash with Shadow onboard the Space Colony ARK. Not long after, he finds himself in a flooded Station Square where he defeats Perfect Chaos. Afterward, the Classic and Modern pairs discover that the Time Eater does not like the Chaos Emeralds, making their hunt for the gems even more important. Continuing their adventure, the Sonics pass through Crisis City, Rooftop Run and Planet Wisp, restoring these locations and rescuing Blaze, Vector and Charmy too. Meanwhile, Modern Sonic wins a Chaos Emerald from Silver after defeating him in a fight in Crisis City. He also goes on to fight Modern Eggman and his Egg Dragoon in Eggmanland. After defeating Modern Eggman however, the doctor is taken away by the Time Eater, confusing the heroes.

After collecting all the Chaos Emeralds, the Sonics and Tailses confront the Time Eater in its domain. There, they discover that the Time Eater is being piloted by both Classic Eggman and Modern Eggman. Modern Eggman reveals that while drifting through space following the events of the Wisp incident, he found the primordial form of the Time Eater. Discovering that the creature had the power to erase time and space, Modern Eggman decided to use its powers to alter the past and undo his previous defeats by erasing Sonic's actions from history. However, he needed someone just as smart as him to perfect his modifications for the Time Eater, which was why he had it abduct Classic Eggman earlier. Confident that Eggman still cannot win, the Sonics engage the Time Eater. Although the Time Eater manages to nearly defeat the two Sonics, their friends and allies show up to support them, thereby activating the power of the Chaos Emeralds and allowing the Sonics to transform into Modern Super Sonic and Classic Super Sonic. The super-powered hedgehogs proceed to confront the Time Eater in another dimension and manage to destroy it. The heroes then return to the present of Modern Sonic's dimension, with everything having seemingly returned to normal. There, the group continues to celebrate Modern Sonic's birthday. During the party, Modern Sonic thanks Classic Sonic for the team-up while Classic Sonic attempts to demonstrate the Boost. Although he fails, Modern Sonic encourages to continue working on it. Afterward, Classic Sonic and Classic Tails find a stray Time Hole for them to return home with. As the counterparts and the party guests then bid farewell to each other, Modern Sonic promises Classic Sonic a great future, just as Classic Sonic and Classic Tails pass through the closing Time Hole.

Meanwhile, Classic Eggman and Modern Eggman are lost in White Space. There, the two argue as they search for an exit and discuss about whether or not they ever defeat Sonic. Their discussion makes Classic Eggman contemplate if he should go back and get his teaching degree, which Modern Eggman thinks is not a bad idea since he loves telling people what to do.

Original text is from the article "Sonic Generations", as of April 3, 2023, on Sonic News Network on Fandom and licensed under the Creative Commons Attribution-Share Alike License 3.0 (Unported).

Themes

 * Friendship and teamwork: The Sonics and their friends work together to stop the Time Eater and restore the timeline. Their friends also support them during the final battle, allowing them to transform into Super Sonics.
 * Nostalgia and legacy: The game pays homage to Sonic's history by revisiting iconic locations, characters, and music from previous games. The game also contrasts the different styles and personalities of Classic Sonic and Modern Sonic, showing how Sonic has evolved over the years.

''Text was mostly generated with Bing Chat. Original text is under public domain.''

Learn more
Readers who want to learn more about Sonic Generations, including the pure game aspects, may be interested in the following links:
 * "Sonic Generations" on Wikipedia
 * "Sonic Generations" on Sonic News Network


text:
User talk:Morphine54

Cake
Hi your cake looks delicious can we please have a chart Ms Lehana (discuss • contribs) 07:19, 4 April 2023 (UTC)

title: User talk:Morphine54


text:
User talk:J ansari

Hi,

title: User talk:J ansari