Wikipídiya iglwiki https://igl.wikipedia.org/wiki/Ogb%C3%A1_ogbolo MediaWiki 1.47.0-wmf.7 first-letter Áméwn igò Egwéyí Úkọ̀lá Énéagwu Úkọ̀lá énéagwu Wikipídiya Úkọ̀lá Wikipídiya Fáílú Úkọ̀lá fáílú MediaWiki Úkọ̀lá MediaWiki Éwn malábó Úkọ̀lá éwn malábó Abune Úkọ̀lá abune Gbúgbe Úkọ̀lá gbúgbe TimedText TimedText talk Module Module talk Event Event talk Éwn malábó:Infobox settlement 10 74 43708 181 2026-06-23T22:31:59Z AgnesAbah 9 Imported from https://test.wikipedia.org/wiki/User:Iiirxs/Template:Infobox_settlement by StarterKit infobox tool (content under CC BY-SA) 43708 wikitext text/x-wiki {{Infobox | above = {{{name|{{PAGENAME}}}}} | image = {{{image|{{#if:{{#property:P18}}|[[File:{{#property:P18}}|frameless|upright=1|alt=]]}}}}} | label1 = Country | data1 = {{{country|{{#property:P17}}}}} | label2 = Region | data2 = {{{region|{{#property:P131}}}}} | label3 = Population | data3 = {{{population|{{#property:P1082}}}}} | label4 = Coordinates | data4 = {{{coordinates|{{#property:P625}}}}} }} <noinclude> {{documentation}} </noinclude> 4ffm1eezt7jry44cwcyymaethp657sa Module:Arguments 828 120 43698 299 2026-06-23T21:20:44Z AgnesAbah 9 Imported from https://en.wikipedia.org/wiki/Module:Arguments by StarterKit infobox tool (content under CC BY-SA) 43698 Scribunto text/plain -- This module provides easy processing of arguments passed to Scribunto from -- #invoke. It is intended for use by other Lua modules, and should not be -- called from #invoke directly. local libraryUtil = require('libraryUtil') local checkType = libraryUtil.checkType local arguments = {} -- Generate four different tidyVal functions, so that we don't have to check the -- options every time we call it. local function tidyValDefault(key, val) if type(val) == 'string' then val = val:match('^%s*(.-)%s*$') if val == '' then return nil else return val end else return val end end local function tidyValTrimOnly(key, val) if type(val) == 'string' then return val:match('^%s*(.-)%s*$') else return val end end local function tidyValRemoveBlanksOnly(key, val) if type(val) == 'string' then if val:find('%S') then return val else return nil end else return val end end local function tidyValNoChange(key, val) return val end local function matchesTitle(given, title) local tp = type( given ) return (tp == 'string' or tp == 'number') and mw.title.new( given ).prefixedText == title end local translate_mt = { __index = function(t, k) return k end } function arguments.getArgs(frame, options) checkType('getArgs', 1, frame, 'table', true) checkType('getArgs', 2, options, 'table', true) frame = frame or {} options = options or {} --[[ -- Set up argument translation. --]] options.translate = options.translate or {} if getmetatable(options.translate) == nil then setmetatable(options.translate, translate_mt) end if options.backtranslate == nil then options.backtranslate = {} for k,v in pairs(options.translate) do options.backtranslate[v] = k end end if options.backtranslate and getmetatable(options.backtranslate) == nil then setmetatable(options.backtranslate, { __index = function(t, k) if options.translate[k] ~= k then return nil else return k end end }) end --[[ -- Get the argument tables. If we were passed a valid frame object, get the -- frame arguments (fargs) and the parent frame arguments (pargs), depending -- on the options set and on the parent frame's availability. If we weren't -- passed a valid frame object, we are being called from another Lua module -- or from the debug console, so assume that we were passed a table of args -- directly, and assign it to a new variable (luaArgs). --]] local fargs, pargs, luaArgs if type(frame.args) == 'table' and type(frame.getParent) == 'function' then if options.wrappers then --[[ -- The wrappers option makes Module:Arguments look up arguments in -- either the frame argument table or the parent argument table, but -- not both. This means that users can use either the #invoke syntax -- or a wrapper template without the loss of performance associated -- with looking arguments up in both the frame and the parent frame. -- Module:Arguments will look up arguments in the parent frame -- if it finds the parent frame's title in options.wrapper; -- otherwise it will look up arguments in the frame object passed -- to getArgs. --]] local parent = frame:getParent() if not parent then fargs = frame.args else local title = parent:getTitle():gsub('/sandbox$', '') local found = false if matchesTitle(options.wrappers, title) then found = true elseif type(options.wrappers) == 'table' then for _,v in pairs(options.wrappers) do if matchesTitle(v, title) then found = true break end end end -- We test for false specifically here so that nil (the default) acts like true. if found or options.frameOnly == false then pargs = parent.args end if not found or options.parentOnly == false then fargs = frame.args end end else -- options.wrapper isn't set, so check the other options. if not options.parentOnly then fargs = frame.args end if not options.frameOnly then local parent = frame:getParent() pargs = parent and parent.args or nil end end if options.parentFirst then fargs, pargs = pargs, fargs end else luaArgs = frame end -- Set the order of precedence of the argument tables. If the variables are -- nil, nothing will be added to the table, which is how we avoid clashes -- between the frame/parent args and the Lua args. local argTables = {fargs} argTables[#argTables + 1] = pargs argTables[#argTables + 1] = luaArgs --[[ -- Generate the tidyVal function. If it has been specified by the user, we -- use that; if not, we choose one of four functions depending on the -- options chosen. This is so that we don't have to call the options table -- every time the function is called. --]] local tidyVal = options.valueFunc if tidyVal then if type(tidyVal) ~= 'function' then error( "bad value assigned to option 'valueFunc'" .. '(function expected, got ' .. type(tidyVal) .. ')', 2 ) end elseif options.trim ~= false then if options.removeBlanks ~= false then tidyVal = tidyValDefault else tidyVal = tidyValTrimOnly end else if options.removeBlanks ~= false then tidyVal = tidyValRemoveBlanksOnly else tidyVal = tidyValNoChange end end --[[ -- Set up the args, metaArgs and nilArgs tables. args will be the one -- accessed from functions, and metaArgs will hold the actual arguments. Nil -- arguments are memoized in nilArgs, and the metatable connects all of them -- together. --]] local args, metaArgs, nilArgs, metatable = {}, {}, {}, {} setmetatable(args, metatable) local function mergeArgs(tables) --[[ -- Accepts multiple tables as input and merges their keys and values -- into one table. If a value is already present it is not overwritten; -- tables listed earlier have precedence. We are also memoizing nil -- values, which can be overwritten if they are 's' (soft). --]] for _, t in ipairs(tables) do for key, val in pairs(t) do if metaArgs[key] == nil and nilArgs[key] ~= 'h' then local tidiedVal = tidyVal(key, val) if tidiedVal == nil then nilArgs[key] = 's' else metaArgs[key] = tidiedVal end end end end end --[[ -- Define metatable behaviour. Arguments are memoized in the metaArgs table, -- and are only fetched from the argument tables once. Fetching arguments -- from the argument tables is the most resource-intensive step in this -- module, so we try and avoid it where possible. For this reason, nil -- arguments are also memoized, in the nilArgs table. Also, we keep a record -- in the metatable of when pairs and ipairs have been called, so we do not -- run pairs and ipairs on the argument tables more than once. We also do -- not run ipairs on fargs and pargs if pairs has already been run, as all -- the arguments will already have been copied over. --]] metatable.__index = function (t, key) --[[ -- Fetches an argument when the args table is indexed. First we check -- to see if the value is memoized, and if not we try and fetch it from -- the argument tables. When we check memoization, we need to check -- metaArgs before nilArgs, as both can be non-nil at the same time. -- If the argument is not present in metaArgs, we also check whether -- pairs has been run yet. If pairs has already been run, we return nil. -- This is because all the arguments will have already been copied into -- metaArgs by the mergeArgs function, meaning that any other arguments -- must be nil. --]] if type(key) == 'string' then key = options.translate[key] end local val = metaArgs[key] if val ~= nil then return val elseif metatable.donePairs or nilArgs[key] then return nil end for _, argTable in ipairs(argTables) do local argTableVal = tidyVal(key, argTable[key]) if argTableVal ~= nil then metaArgs[key] = argTableVal return argTableVal end end nilArgs[key] = 'h' return nil end metatable.__newindex = function (t, key, val) -- This function is called when a module tries to add a new value to the -- args table, or tries to change an existing value. if type(key) == 'string' then key = options.translate[key] end if options.readOnly then error( 'could not write to argument table key "' .. tostring(key) .. '"; the table is read-only', 2 ) elseif options.noOverwrite and args[key] ~= nil then error( 'could not write to argument table key "' .. tostring(key) .. '"; overwriting existing arguments is not permitted', 2 ) elseif val == nil then --[[ -- If the argument is to be overwritten with nil, we need to erase -- the value in metaArgs, so that __index, __pairs and __ipairs do -- not use a previous existing value, if present; and we also need -- to memoize the nil in nilArgs, so that the value isn't looked -- up in the argument tables if it is accessed again. --]] metaArgs[key] = nil nilArgs[key] = 'h' else metaArgs[key] = val end end local function translatenext(invariant) local k, v = next(invariant.t, invariant.k) invariant.k = k if k == nil then return nil elseif type(k) ~= 'string' or not options.backtranslate then return k, v else local backtranslate = options.backtranslate[k] if backtranslate == nil then -- Skip this one. This is a tail call, so this won't cause stack overflow return translatenext(invariant) else return backtranslate, v end end end metatable.__pairs = function () -- Called when pairs is run on the args table. if not metatable.donePairs then mergeArgs(argTables) metatable.donePairs = true end return translatenext, { t = metaArgs } end local function inext(t, i) -- This uses our __index metamethod local v = t[i + 1] if v ~= nil then return i + 1, v end end metatable.__ipairs = function (t) -- Called when ipairs is run on the args table. return inext, t, 0 end return args end return arguments 5qx9tzlul9ser30uxj9nbasjt92cevn Module:Infobox 828 128 43693 326 2026-06-23T21:20:30Z AgnesAbah 9 Imported from https://en.wikipedia.org/wiki/Module:Infobox by StarterKit infobox tool (content under CC BY-SA) 43693 Scribunto text/plain local p = {} local args = {} local origArgs = {} local root local empty_row_categories = {} local category_in_empty_row_pattern = '%[%[%s*[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]%s*:[^]]*]]' local has_rows = false local yesno = require("Module:Yesno") local lists = { plainlist_t = { patterns = { '^plainlist$', '%splainlist$', '^plainlist%s', '%splainlist%s' }, found = false, styles = 'Plainlist/styles.css' }, hlist_t = { patterns = { '^hlist$', '%shlist$', '^hlist%s', '%shlist%s' }, found = false, styles = 'Hlist/styles.css' } } local function has_list_class(args_to_check) for _, list in pairs(lists) do if not list.found then for _, arg in pairs(args_to_check) do for _, pattern in ipairs(list.patterns) do if mw.ustring.find(arg or '', pattern) then list.found = true break end end if list.found then break end end end end end local function isUntitledChildBox(sval) return sval and ( sval:match( '^%s*<%s*[Tt][Rr]' ) or sval:match( '^%s*\127[^\127]*UNIQ%-%-templatestyles%-%x+%-QINU[^\127]*\127%s*<%s*[Tt][Rr]' ) ) end local function fixChildBoxes(sval, tt) local function notempty( s ) return s and s:match( '%S' ) end if notempty(sval) then local marker = '<span class=special_infobox_marker>' local s = sval -- start moving templatestyles and categories inside of table rows local slast = '' while slast ~= s do slast = s s = mw.ustring.gsub(s, '(</[Tt][Rr]%s*>%s*)(%[%[%s*[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]%s*:[^]]*%]%])', '%2%1') s = mw.ustring.gsub(s, '(</[Tt][Rr]%s*>%s*)(\127[^\127]*UNIQ%-%-templatestyles%-%x+%-QINU[^\127]*\127)', '%2%1') end -- end moving templatestyles and categories inside of table rows s = mw.ustring.gsub(s, '(<%s*[Tt][Rr])', marker .. '%1') s = mw.ustring.gsub(s, '(</[Tt][Rr]%s*>)', '%1' .. marker) if s:match(marker) then s = mw.ustring.gsub(s, marker .. '%s*' .. marker, '') s = mw.ustring.gsub(s, '([\r\n]|-[^\r\n]*[\r\n])%s*' .. marker, '%1') s = mw.ustring.gsub(s, marker .. '%s*([\r\n]|-)', '%1') s = mw.ustring.gsub(s, '(</[Cc][Aa][Pp][Tt][Ii][Oo][Nn]%s*>%s*)' .. marker, '%1') s = mw.ustring.gsub(s, '(<%s*[Tt][Aa][Bb][Ll][Ee][^<>]*>%s*)' .. marker, '%1') s = mw.ustring.gsub(s, '^(%{|[^\r\n]*[\r\n]%s*)' .. marker, '%1') s = mw.ustring.gsub(s, '([\r\n]%{|[^\r\n]*[\r\n]%s*)' .. marker, '%1') s = mw.ustring.gsub(s, marker .. '(%s*</[Tt][Aa][Bb][Ll][Ee]%s*>)', '%1') s = mw.ustring.gsub(s, marker .. '(%s*\n|%})', '%1') end if s:match(marker) then local subcells = mw.text.split(s, marker) s = '' for k = 1, #subcells do if k == 1 then s = s .. subcells[k] .. '</' .. tt .. '></tr>' elseif k == #subcells then local rowstyle = ' style="display:none"' if notempty(subcells[k]) then rowstyle = '' end s = s .. '<tr' .. rowstyle ..'><' .. tt .. ' colspan=2>\n' .. subcells[k] elseif notempty(subcells[k]) then if (k % 2) == 0 then s = s .. subcells[k] else s = s .. '<tr><' .. tt .. ' colspan=2>\n' .. subcells[k] .. '</' .. tt .. '></tr>' end end end end -- the next two lines add a newline at the end of lists for the PHP parser -- [[Special:Diff/849054481]] -- remove when [[:phab:T191516]] is fixed or OBE s = mw.ustring.gsub(s, '([\r\n][%*#;:][^\r\n]*)$', '%1\n') s = mw.ustring.gsub(s, '^([%*#;:][^\r\n]*)$', '%1\n') s = mw.ustring.gsub(s, '^([%*#;:])', '\n%1') s = mw.ustring.gsub(s, '^(%{%|)', '\n%1') return s else return sval end end -- Cleans empty tables local function cleanInfobox() root = tostring(root) if has_rows == false then root = mw.ustring.gsub(root, '<table[^<>]*>%s*</table>', '') end end -- Returns the union of the values of two tables, as a sequence. local function union(t1, t2) local vals = {} for k, v in pairs(t1) do vals[v] = true end for k, v in pairs(t2) do vals[v] = true end local ret = {} for k, v in pairs(vals) do table.insert(ret, k) end return ret end -- Returns a table containing the numbers of the arguments that exist -- for the specified prefix. For example, if the prefix was 'data', and -- 'data1', 'data2', and 'data5' exist, it would return {1, 2, 5}. local function getArgNums(prefix) local nums = {} for k, v in pairs(args) do local num = tostring(k):match('^' .. prefix .. '([1-9]%d*)$') if num then table.insert(nums, tonumber(num)) end end table.sort(nums) return nums end -- Adds a row to the infobox, with either a header cell -- or a label/data cell combination. local function addRow(rowArgs) if rowArgs.header and rowArgs.header ~= '_BLANK_' then has_rows = true has_list_class({ rowArgs.rowclass, rowArgs.class, args.headerclass }) root :tag('tr') :addClass(rowArgs.rowclass) :addClass( isUntitledChildBox( rowArgs.header ) and 'infobox-hiddenrow' or nil ) :cssText(rowArgs.rowstyle) :tag('th') :attr('colspan', '2') :addClass('infobox-header') :addClass(rowArgs.class) :addClass(args.headerclass) -- @deprecated next; target .infobox-<name> .infobox-header :cssText(args.headerstyle) :cssText(rowArgs.rowcellstyle) :wikitext(fixChildBoxes(rowArgs.header, 'th')) if rowArgs.data and not yesno(args.decat) then root:wikitext( '[[Category:Pages using infobox templates with ignored data cells]]' ) end elseif rowArgs.data and rowArgs.data:gsub(category_in_empty_row_pattern, ''):match('^%S') then has_rows = true has_list_class({ rowArgs.rowclass, rowArgs.class }) local row = root:tag('tr') row:addClass(rowArgs.rowclass) row:cssText(rowArgs.rowstyle) if rowArgs.label then row :tag('th') :attr('scope', 'row') :addClass('infobox-label') -- @deprecated next; target .infobox-<name> .infobox-label :cssText(args.labelstyle) :cssText(rowArgs.rowcellstyle) :wikitext(rowArgs.label) :done() else row:addClass( isUntitledChildBox( rowArgs.data ) and 'infobox-hiddenrow' or nil ) end local dataCell = row:tag('td') dataCell :attr('colspan', not rowArgs.label and '2' or nil) :addClass(not rowArgs.label and 'infobox-full-data' or 'infobox-data') :addClass(rowArgs.class) -- @deprecated next; target .infobox-<name> .infobox(-full)-data :cssText(rowArgs.datastyle) :cssText(rowArgs.rowcellstyle) :wikitext(fixChildBoxes(rowArgs.data, 'td')) else table.insert(empty_row_categories, rowArgs.data or '') end end local function renderTitle() if not args.title then return end has_rows = true has_list_class({args.titleclass}) root :tag('caption') :addClass('infobox-title') :addClass(args.titleclass) -- @deprecated next; target .infobox-<name> .infobox-title :cssText(args.titlestyle) :wikitext(args.title) end local function renderAboveRow() if not args.above then return end has_rows = true has_list_class({ args.aboveclass }) root :tag('tr') :addClass( isUntitledChildBox( args.above ) and 'infobox-hiddenrow' or nil ) :tag('th') :attr('colspan', '2') :addClass('infobox-above') :addClass(args.aboveclass) -- @deprecated next; target .infobox-<name> .infobox-above :cssText(args.abovestyle) :wikitext(fixChildBoxes(args.above,'th')) end local function renderBelowRow() if not args.below then return end has_rows = true has_list_class({ args.belowclass }) root :tag('tr') :addClass( isUntitledChildBox( args.below ) and 'infobox-hiddenrow' or nil ) :tag('td') :attr('colspan', '2') :addClass('infobox-below') :addClass(args.belowclass) -- @deprecated next; target .infobox-<name> .infobox-below :cssText(args.belowstyle) :wikitext(fixChildBoxes(args.below,'td')) end local function addSubheaderRow(subheaderArgs) if subheaderArgs.data and subheaderArgs.data:gsub(category_in_empty_row_pattern, ''):match('^%S') then has_rows = true has_list_class({ subheaderArgs.rowclass, subheaderArgs.class }) local row = root:tag('tr') row:addClass(subheaderArgs.rowclass) row:addClass( isUntitledChildBox( subheaderArgs.data ) and 'infobox-hiddenrow' or nil ) local dataCell = row:tag('td') dataCell :attr('colspan', '2') :addClass('infobox-subheader') :addClass(subheaderArgs.class) :cssText(subheaderArgs.datastyle) :cssText(subheaderArgs.rowcellstyle) :wikitext(fixChildBoxes(subheaderArgs.data, 'td')) else table.insert(empty_row_categories, subheaderArgs.data or '') end end local function renderSubheaders() if args.subheader then args.subheader1 = args.subheader end if args.subheaderrowclass then args.subheaderrowclass1 = args.subheaderrowclass end local subheadernums = getArgNums('subheader') for k, num in ipairs(subheadernums) do addSubheaderRow({ data = args['subheader' .. tostring(num)], -- @deprecated next; target .infobox-<name> .infobox-subheader datastyle = args.subheaderstyle, rowcellstyle = args['subheaderstyle' .. tostring(num)], class = args.subheaderclass, rowclass = args['subheaderrowclass' .. tostring(num)] }) end end local function addImageRow(imageArgs) if imageArgs.data and imageArgs.data:gsub(category_in_empty_row_pattern, ''):match('^%S') then has_rows = true has_list_class({ imageArgs.rowclass, imageArgs.class }) local row = root:tag('tr') row:addClass(imageArgs.rowclass) row:addClass( isUntitledChildBox( imageArgs.data ) and 'infobox-hiddenrow' or nil ) local dataCell = row:tag('td') dataCell :attr('colspan', '2') :addClass('infobox-image') :addClass(imageArgs.class) :cssText(imageArgs.datastyle) :wikitext(fixChildBoxes(imageArgs.data, 'td')) else table.insert(empty_row_categories, imageArgs.data or '') end end local function renderImages() if args.image then args.image1 = args.image end if args.caption then args.caption1 = args.caption end local imagenums = getArgNums('image') for k, num in ipairs(imagenums) do local caption = args['caption' .. tostring(num)] local data = mw.html.create():wikitext(args['image' .. tostring(num)]) if caption then data :tag('div') :addClass('infobox-caption') -- @deprecated next; target .infobox-<name> .infobox-caption :cssText(args.captionstyle) :wikitext(caption) end addImageRow({ data = tostring(data), -- @deprecated next; target .infobox-<name> .infobox-image datastyle = args.imagestyle, class = args.imageclass, rowclass = args['imagerowclass' .. tostring(num)] }) end end -- When autoheaders are turned on, preprocesses the rows local function preprocessRows() if not args.autoheaders then return end local rownums = union(getArgNums('header'), getArgNums('data')) table.sort(rownums) local lastheader for k, num in ipairs(rownums) do if args['header' .. tostring(num)] then if lastheader then args['header' .. tostring(lastheader)] = nil end lastheader = num elseif args['data' .. tostring(num)] and args['data' .. tostring(num)]:gsub( category_in_empty_row_pattern, '' ):match('^%S') then local data = args['data' .. tostring(num)] if data:gsub(category_in_empty_row_pattern, ''):match('%S') then lastheader = nil end end end if lastheader then args['header' .. tostring(lastheader)] = nil end end -- Gets the union of the header and data argument numbers, -- and renders them all in order local function renderRows() local rownums = union(getArgNums('header'), getArgNums('data')) table.sort(rownums) for k, num in ipairs(rownums) do addRow({ header = args['header' .. tostring(num)], label = args['label' .. tostring(num)], data = args['data' .. tostring(num)], datastyle = args.datastyle, class = args['class' .. tostring(num)], rowclass = args['rowclass' .. tostring(num)], -- @deprecated next; target .infobox-<name> rowclass rowstyle = args['rowstyle' .. tostring(num)], rowcellstyle = args['rowcellstyle' .. tostring(num)] }) end end local function renderNavBar() if not args.name then return end has_rows = true root :tag('tr') :tag('td') :attr('colspan', '2') :addClass('infobox-navbar') :wikitext(require('Module:Navbar')._navbar{ args.name, mini = 1, }) end local function renderItalicTitle() local italicTitle = args['italic title'] and mw.ustring.lower(args['italic title']) if italicTitle == '' or italicTitle == 'force' or italicTitle == 'yes' then root:wikitext(require('Module:Italic title')._main({})) end end -- Categories in otherwise empty rows are collected in empty_row_categories. -- This function adds them to the module output. It is not affected by -- args.decat because this module should not prevent module-external categories -- from rendering. local function renderEmptyRowCategories() for _, s in ipairs(empty_row_categories) do root:wikitext(s) end end -- Render tracking categories. args.decat == turns off tracking categories. local function renderTrackingCategories() if yesno(args.decat) then return end if args.child == 'yes' then if args.title then root:wikitext( '[[Category:Pages using embedded infobox templates with the title parameter]]' ) end elseif #(getArgNums('data')) == 0 and mw.title.getCurrentTitle().namespace == 0 then root:wikitext('[[Category:Articles using infobox templates with no data rows]]') end end --[=[ Loads the templatestyles for the infobox. TODO: FINISH loading base templatestyles here rather than in MediaWiki:Common.css. There are 4-5000 pages with 'raw' infobox tables. See [[Mediawiki_talk:Common.css/to_do#Infobox]] and/or come help :). When we do this we should clean up the inline CSS below too. Will have to do some bizarre conversion category like with sidebar. ]=] local function loadTemplateStyles() local frame = mw.getCurrentFrame() local hlist_templatestyles = '' if lists.hlist_t.found then hlist_templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = lists.hlist_t.styles } } end local plainlist_templatestyles = '' if lists.plainlist_t.found then plainlist_templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = lists.plainlist_t.styles } } end -- See function description local base_templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = 'Module:Infobox/styles.css' } } local templatestyles = '' if args['templatestyles'] then templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = args['templatestyles'] } } end local child_templatestyles = '' if args['child templatestyles'] then child_templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = args['child templatestyles'] } } end local grandchild_templatestyles = '' if args['grandchild templatestyles'] then grandchild_templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = args['grandchild templatestyles'] } } end return table.concat({ -- hlist -> plainlist -> base is best-effort to preserve old Common.css ordering. -- this ordering is not a guarantee because the rows of interest invoking -- each class may not be on a specific page hlist_templatestyles, plainlist_templatestyles, base_templatestyles, templatestyles, child_templatestyles, grandchild_templatestyles }) end -- common functions between the child and non child cases local function structure_infobox_common() renderSubheaders() renderImages() preprocessRows() renderRows() renderBelowRow() renderNavBar() renderItalicTitle() renderEmptyRowCategories() renderTrackingCategories() cleanInfobox() end -- Specify the overall layout of the infobox, with special settings if the -- infobox is used as a 'child' inside another infobox. local function _infobox() if args.child ~= 'yes' then root = mw.html.create('table') root :addClass(args.subbox == 'yes' and 'infobox-subbox' or 'infobox') :addClass(args.bodyclass) -- @deprecated next; target .infobox-<name> :cssText(args.bodystyle) has_list_class({ args.bodyclass }) renderTitle() renderAboveRow() else root = mw.html.create() root :wikitext(args.title) end structure_infobox_common() return loadTemplateStyles() .. root end -- If the argument exists and isn't blank, add it to the argument table. -- Blank arguments are treated as nil to match the behaviour of ParserFunctions. local function preprocessSingleArg(argName) if origArgs[argName] and origArgs[argName] ~= '' then args[argName] = origArgs[argName] end end -- Assign the parameters with the given prefixes to the args table, in order, in -- batches of the step size specified. This is to prevent references etc. from -- appearing in the wrong order. The prefixTable should be an array containing -- tables, each of which has two possible fields, a "prefix" string and a -- "depend" table. The function always parses parameters containing the "prefix" -- string, but only parses parameters in the "depend" table if the prefix -- parameter is present and non-blank. local function preprocessArgs(prefixTable, step) if type(prefixTable) ~= 'table' then error("Non-table value detected for the prefix table", 2) end if type(step) ~= 'number' then error("Invalid step value detected", 2) end -- Get arguments without a number suffix, and check for bad input. for i,v in ipairs(prefixTable) do if type(v) ~= 'table' or type(v.prefix) ~= "string" or (v.depend and type(v.depend) ~= 'table') then error('Invalid input detected to preprocessArgs prefix table', 2) end preprocessSingleArg(v.prefix) -- Only parse the depend parameter if the prefix parameter is present -- and not blank. if args[v.prefix] and v.depend then for j, dependValue in ipairs(v.depend) do if type(dependValue) ~= 'string' then error('Invalid "depend" parameter value detected in preprocessArgs') end preprocessSingleArg(dependValue) end end end -- Get arguments with number suffixes. local a = 1 -- Counter variable. local moreArgumentsExist = true while moreArgumentsExist == true do moreArgumentsExist = false for i = a, a + step - 1 do for j,v in ipairs(prefixTable) do local prefixArgName = v.prefix .. tostring(i) if origArgs[prefixArgName] then -- Do another loop if any arguments are found, even blank ones. moreArgumentsExist = true preprocessSingleArg(prefixArgName) end -- Process the depend table if the prefix argument is present -- and not blank, or we are processing "prefix1" and "prefix" is -- present and not blank, and if the depend table is present. if v.depend and (args[prefixArgName] or (i == 1 and args[v.prefix])) then for j,dependValue in ipairs(v.depend) do local dependArgName = dependValue .. tostring(i) preprocessSingleArg(dependArgName) end end end end a = a + step end end -- Parse the data parameters in the same order that the old {{infobox}} did, so -- that references etc. will display in the expected places. Parameters that -- depend on another parameter are only processed if that parameter is present, -- to avoid phantom references appearing in article reference lists. local function parseDataParameters() preprocessSingleArg('autoheaders') preprocessSingleArg('child') preprocessSingleArg('bodyclass') preprocessSingleArg('subbox') preprocessSingleArg('bodystyle') preprocessSingleArg('title') preprocessSingleArg('titleclass') preprocessSingleArg('titlestyle') preprocessSingleArg('above') preprocessSingleArg('aboveclass') preprocessSingleArg('abovestyle') preprocessArgs({ {prefix = 'subheader', depend = {'subheaderstyle', 'subheaderrowclass'}} }, 10) preprocessSingleArg('subheaderstyle') preprocessSingleArg('subheaderclass') preprocessArgs({ {prefix = 'image', depend = {'caption', 'imagerowclass'}} }, 10) preprocessSingleArg('captionstyle') preprocessSingleArg('imagestyle') preprocessSingleArg('imageclass') preprocessArgs({ {prefix = 'header'}, {prefix = 'data', depend = {'label'}}, {prefix = 'rowclass'}, {prefix = 'rowstyle'}, {prefix = 'rowcellstyle'}, {prefix = 'class'} }, 50) preprocessSingleArg('headerclass') preprocessSingleArg('headerstyle') preprocessSingleArg('labelstyle') preprocessSingleArg('datastyle') preprocessSingleArg('below') preprocessSingleArg('belowclass') preprocessSingleArg('belowstyle') preprocessSingleArg('name') -- different behaviour for italics if blank or absent args['italic title'] = origArgs['italic title'] preprocessSingleArg('decat') preprocessSingleArg('templatestyles') preprocessSingleArg('child templatestyles') preprocessSingleArg('grandchild templatestyles') end -- If called via #invoke, use the args passed into the invoking template. -- Otherwise, for testing purposes, assume args are being passed directly in. function p.infobox(frame) if frame == mw.getCurrentFrame() then origArgs = frame:getParent().args else origArgs = frame end parseDataParameters() return _infobox() end -- For calling via #invoke within a template function p.infoboxTemplate(frame) origArgs = {} for k,v in pairs(frame.args) do origArgs[k] = mw.text.trim(v) end parseDataParameters() return _infobox() end return p kueb5p6xeoq6x7bxu2zyyl7pmxgesrs Module:Infobox/styles.css 828 129 43694 328 2026-06-23T21:20:37Z AgnesAbah 9 Imported from https://en.wikipedia.org/wiki/Module:Infobox/styles.css by StarterKit infobox tool (content under CC BY-SA) 43694 sanitized-css text/css /* {{pp|small=y}} */ /* * This TemplateStyles sheet deliberately does NOT include the full set of * infobox styles. We are still working to migrate all of the manual * infoboxes. See [[MediaWiki talk:Common.css/to do#Infobox]] * DO NOT ADD THEM HERE */ /* NOTE: This is maintained both here and in [[MediaWiki:Common.css]] until migration is complete. * Starting with bare minimum for the benefit of [[mw:Manual:Safemode]]. */ @media (min-width: 640px) { .infobox { /* @noflip */ margin-left: 1em; /* @noflip */ float: right; /* @noflip */ clear: right; width: 22em; } } /* * not strictly certain these styles are necessary since the modules now * exclusively output infobox-subbox or infobox, not both * just replicating the module faithfully */ .infobox-subbox { padding: 0; border: none; margin: -3px; width: auto; min-width: 100%; font-size: 100%; clear: none; float: none; background-color: transparent; color:inherit; } .infobox-3cols-child { margin: -3px; } .infobox .navbar { font-size: 100%; } /* remove when infobox is not a table anymore */ .infobox-hiddenrow, /* we mean it, Minerva. but also Vector 2022 in the future at some point */ body.skin--responsive.skin--responsive .infobox .infobox-hiddenrow { display: none; } /* Dark theme: [[William Wragg]], [[Coral Castle]] */ @media screen { html.skin-theme-clientpref-night .infobox-full-data:not(.notheme) > div:not(.notheme)[style] { background: #1f1f23 !important; /* switch with var( --color-base ) when supported. */ color: #f8f9fa; } } @media screen and (prefers-color-scheme: dark) { html.skin-theme-clientpref-os .infobox-full-data:not(.notheme) > div:not(.notheme)[style] { background: #1f1f23 !important; /* switch with var( --color-base ) when supported. */ color: #f8f9fa; } } /* Since infobox is a table, many infobox templates take advantage of this to * add columns and rows to the infobox itself rather than as part of a new table * inside them. This class should be discouraged and removed on the long term, * but allows us to at least identify these tables going forward * Currently in use on: [[Module:Infobox3cols]] * Fixes issue described in [[phab:F55300125]] on Vector 2022. */ @media (min-width: 640px) { body.skin--responsive .infobox-table { display: table !important; } body.skin--responsive .infobox-table > caption { display: table-caption !important; } body.skin--responsive .infobox-table > tbody { display: table-row-group; } body.skin--responsive .infobox-table th, body.skin--responsive .infobox-table td { padding-left: inherit; padding-right: inherit; } } bi1nsztkx4350a55cuzjhaotvp5h216 Module:Navbar 828 141 43696 360 2026-06-23T21:20:41Z AgnesAbah 9 Imported from https://en.wikipedia.org/wiki/Module:Navbar by StarterKit infobox tool (content under CC BY-SA) 43696 Scribunto text/plain local p = {} local cfg = mw.loadData('Module:Navbar/configuration') local function get_title_arg(is_collapsible, template) local title_arg = 1 if is_collapsible then title_arg = 2 end if template then title_arg = 'template' end return title_arg end local function choose_links(template, args) -- The show table indicates the default displayed items. -- view, talk, edit, hist, move, watch -- TODO: Move to configuration. local show = {true, true, true, false, false, false} if template then show[2] = false show[3] = false local index = {t = 2, d = 2, e = 3, h = 4, m = 5, w = 6, talk = 2, edit = 3, hist = 4, move = 5, watch = 6} -- TODO: Consider removing TableTools dependency. for _, v in ipairs(require ('Module:TableTools').compressSparseArray(args)) do local num = index[v] if num then show[num] = true end end end local remove_edit_link = args.noedit if remove_edit_link then show[3] = false end return show end local function add_link(link_description, ul, is_mini, font_style) local l if link_description.url then l = {'[', '', ']'} else l = {'[[', '|', ']]'} end ul:tag('li') :addClass('nv-' .. link_description.full) :wikitext(l[1] .. link_description.link .. l[2]) :tag(is_mini and 'abbr' or 'span') :attr('title', link_description.html_title) :cssText(font_style) :wikitext(is_mini and link_description.mini or link_description.full) :done() :wikitext(l[3]) :done() end local function make_list(title_text, has_brackets, displayed_links, is_mini, font_style) local title = mw.title.new(mw.text.trim(title_text), cfg.title_namespace) if not title then error(cfg.invalid_title .. title_text) end local talkpage = title.talkPageTitle and title.talkPageTitle.fullText or '' -- TODO: Get link_descriptions and show into the configuration module. -- link_descriptions should be easier... local link_descriptions = { { ['mini'] = 'v', ['full'] = 'view', ['html_title'] = 'View this template', ['link'] = title.fullText, ['url'] = false }, { ['mini'] = 't', ['full'] = 'talk', ['html_title'] = 'Discuss this template', ['link'] = talkpage, ['url'] = false }, { ['mini'] = 'e', ['full'] = 'edit', ['html_title'] = 'Edit this template', ['link'] = 'Special:EditPage/' .. title.fullText, ['url'] = false }, { ['mini'] = 'h', ['full'] = 'hist', ['html_title'] = 'History of this template', ['link'] = 'Special:PageHistory/' .. title.fullText, ['url'] = false }, { ['mini'] = 'm', ['full'] = 'move', ['html_title'] = 'Move this template', ['link'] = mw.title.new('Special:Movepage'):fullUrl('target='..title.fullText), ['url'] = true }, { ['mini'] = 'w', ['full'] = 'watch', ['html_title'] = 'Watch this template', ['link'] = title:fullUrl('action=watch'), ['url'] = true } } local ul = mw.html.create('ul') if has_brackets then ul:addClass(cfg.classes.brackets) :cssText(font_style) end for i, _ in ipairs(displayed_links) do if displayed_links[i] then add_link(link_descriptions[i], ul, is_mini, font_style) end end return ul:done() end function p._navbar(args) -- TODO: We probably don't need both fontstyle and fontcolor... local font_style = args.fontstyle local font_color = args.fontcolor local is_collapsible = args.collapsible local is_mini = args.mini local is_plain = args.plain local collapsible_class = nil if is_collapsible then collapsible_class = cfg.classes.collapsible if not is_plain then is_mini = 1 end if font_color then font_style = (font_style or '') .. '; color: ' .. font_color .. ';' end end local navbar_style = args.style local div = mw.html.create():tag('div') div :addClass(cfg.classes.navbar) :addClass(cfg.classes.plainlinks) :addClass(cfg.classes.horizontal_list) :addClass(collapsible_class) -- we made the determination earlier :cssText(navbar_style) if is_mini then div:addClass(cfg.classes.mini) end local box_text = (args.text or cfg.box_text) .. ' ' -- the concatenated space guarantees the box text is separated if not (is_mini or is_plain) then div :tag('span') :addClass(cfg.classes.box_text) :cssText(font_style) :wikitext(box_text) end local template = args.template local displayed_links = choose_links(template, args) local has_brackets = args.brackets local title_arg = get_title_arg(is_collapsible, template) local title_text = args[title_arg] or (':' .. mw.getCurrentFrame():getParent():getTitle()) local list = make_list(title_text, has_brackets, displayed_links, is_mini, font_style) div:node(list) if is_collapsible then local title_text_class if is_mini then title_text_class = cfg.classes.collapsible_title_mini else title_text_class = cfg.classes.collapsible_title_full end div:done() :tag('div') :addClass(title_text_class) :cssText(font_style) :wikitext(args[1]) end local frame = mw.getCurrentFrame() -- hlist -> navbar is best-effort to preserve old Common.css ordering. return frame:extensionTag{ name = 'templatestyles', args = { src = cfg.hlist_templatestyles } } .. frame:extensionTag{ name = 'templatestyles', args = { src = cfg.templatestyles } } .. tostring(div:done()) end function p.navbar(frame) return p._navbar(require('Module:Arguments').getArgs(frame)) end return p 0iwrh6fwqy52ve4qubv886e6mqvyrcq Module:TableTools 828 149 43700 381 2026-06-23T21:20:48Z AgnesAbah 9 Imported from https://en.wikipedia.org/wiki/Module:TableTools by StarterKit infobox tool (content under CC BY-SA) 43700 Scribunto text/plain ------------------------------------------------------------------------------------ -- TableTools -- -- -- -- This module includes a number of functions for dealing with Lua tables. -- -- It is a meta-module, meant to be called from other Lua modules, and should not -- -- be called directly from #invoke. -- ------------------------------------------------------------------------------------ local libraryUtil = require('libraryUtil') local p = {} -- Define often-used variables and functions. local floor = math.floor local infinity = math.huge local checkType = libraryUtil.checkType local checkTypeMulti = libraryUtil.checkTypeMulti ------------------------------------------------------------------------------------ -- isPositiveInteger -- -- This function returns true if the given value is a positive integer, and false -- if not. Although it doesn't operate on tables, it is included here as it is -- useful for determining whether a given table key is in the array part or the -- hash part of a table. ------------------------------------------------------------------------------------ function p.isPositiveInteger(v) return type(v) == 'number' and v >= 1 and floor(v) == v and v < infinity end ------------------------------------------------------------------------------------ -- isNan -- -- This function returns true if the given number is a NaN value, and false if -- not. Although it doesn't operate on tables, it is included here as it is useful -- for determining whether a value can be a valid table key. Lua will generate an -- error if a NaN is used as a table key. ------------------------------------------------------------------------------------ function p.isNan(v) return type(v) == 'number' and v ~= v end ------------------------------------------------------------------------------------ -- shallowClone -- -- This returns a clone of a table. The value returned is a new table, but all -- subtables and functions are shared. Metamethods are respected, but the returned -- table will have no metatable of its own. ------------------------------------------------------------------------------------ function p.shallowClone(t) checkType('shallowClone', 1, t, 'table') local ret = {} for k, v in pairs(t) do ret[k] = v end return ret end ------------------------------------------------------------------------------------ -- removeDuplicates -- -- This removes duplicate values from an array. Non-positive-integer keys are -- ignored. The earliest value is kept, and all subsequent duplicate values are -- removed, but otherwise the array order is unchanged. ------------------------------------------------------------------------------------ function p.removeDuplicates(arr) checkType('removeDuplicates', 1, arr, 'table') local isNan = p.isNan local ret, exists = {}, {} for _, v in ipairs(arr) do if isNan(v) then -- NaNs can't be table keys, and they are also unique, so we don't need to check existence. ret[#ret + 1] = v elseif not exists[v] then ret[#ret + 1] = v exists[v] = true end end return ret end ------------------------------------------------------------------------------------ -- numKeys -- -- This takes a table and returns an array containing the numbers of any numerical -- keys that have non-nil values, sorted in numerical order. ------------------------------------------------------------------------------------ function p.numKeys(t) checkType('numKeys', 1, t, 'table') local isPositiveInteger = p.isPositiveInteger local nums = {} for k in pairs(t) do if isPositiveInteger(k) then nums[#nums + 1] = k end end table.sort(nums) return nums end ------------------------------------------------------------------------------------ -- affixNums -- -- This takes a table and returns an array containing the numbers of keys with the -- specified prefix and suffix. For example, for the table -- {a1 = 'foo', a3 = 'bar', a6 = 'baz'} and the prefix "a", affixNums will return -- {1, 3, 6}. ------------------------------------------------------------------------------------ function p.affixNums(t, prefix, suffix) checkType('affixNums', 1, t, 'table') checkType('affixNums', 2, prefix, 'string', true) checkType('affixNums', 3, suffix, 'string', true) local function cleanPattern(s) -- Cleans a pattern so that the magic characters ()%.[]*+-?^$ are interpreted literally. return s:gsub('([%(%)%%%.%[%]%*%+%-%?%^%$])', '%%%1') end prefix = prefix or '' suffix = suffix or '' prefix = cleanPattern(prefix) suffix = cleanPattern(suffix) local pattern = '^' .. prefix .. '([1-9]%d*)' .. suffix .. '$' local nums = {} for k in pairs(t) do if type(k) == 'string' then local num = mw.ustring.match(k, pattern) if num then nums[#nums + 1] = tonumber(num) end end end table.sort(nums) return nums end ------------------------------------------------------------------------------------ -- numData -- -- Given a table with keys like {"foo1", "bar1", "foo2", "baz2"}, returns a table -- of subtables in the format -- {[1] = {foo = 'text', bar = 'text'}, [2] = {foo = 'text', baz = 'text'}}. -- Keys that don't end with an integer are stored in a subtable named "other". The -- compress option compresses the table so that it can be iterated over with -- ipairs. ------------------------------------------------------------------------------------ function p.numData(t, compress) checkType('numData', 1, t, 'table') checkType('numData', 2, compress, 'boolean', true) local ret = {} for k, v in pairs(t) do local prefix, num = mw.ustring.match(tostring(k), '^([^0-9]*)([1-9][0-9]*)$') if num then num = tonumber(num) local subtable = ret[num] or {} if prefix == '' then -- Positional parameters match the blank string; put them at the start of the subtable instead. prefix = 1 end subtable[prefix] = v ret[num] = subtable else local subtable = ret.other or {} subtable[k] = v ret.other = subtable end end if compress then local other = ret.other ret = p.compressSparseArray(ret) ret.other = other end return ret end ------------------------------------------------------------------------------------ -- compressSparseArray -- -- This takes an array with one or more nil values, and removes the nil values -- while preserving the order, so that the array can be safely traversed with -- ipairs. ------------------------------------------------------------------------------------ function p.compressSparseArray(t) checkType('compressSparseArray', 1, t, 'table') local ret = {} local nums = p.numKeys(t) for _, num in ipairs(nums) do ret[#ret + 1] = t[num] end return ret end ------------------------------------------------------------------------------------ -- sparseIpairs -- -- This is an iterator for sparse arrays. It can be used like ipairs, but can -- handle nil values. ------------------------------------------------------------------------------------ function p.sparseIpairs(t) checkType('sparseIpairs', 1, t, 'table') local nums = p.numKeys(t) local i = 0 local lim = #nums return function () i = i + 1 if i <= lim then local key = nums[i] return key, t[key] else return nil, nil end end end ------------------------------------------------------------------------------------ -- size -- -- This returns the size of a key/value pair table. It will also work on arrays, -- but for arrays it is more efficient to use the # operator. ------------------------------------------------------------------------------------ function p.size(t) checkType('size', 1, t, 'table') local i = 0 for _ in pairs(t) do i = i + 1 end return i end local function defaultKeySort(item1, item2) -- "number" < "string", so numbers will be sorted before strings. local type1, type2 = type(item1), type(item2) if type1 ~= type2 then return type1 < type2 elseif type1 == 'table' or type1 == 'boolean' or type1 == 'function' then return tostring(item1) < tostring(item2) else return item1 < item2 end end ------------------------------------------------------------------------------------ -- keysToList -- -- Returns an array of the keys in a table, sorted using either a default -- comparison function or a custom keySort function. ------------------------------------------------------------------------------------ function p.keysToList(t, keySort, checked) if not checked then checkType('keysToList', 1, t, 'table') checkTypeMulti('keysToList', 2, keySort, {'function', 'boolean', 'nil'}) end local arr = {} local index = 1 for k in pairs(t) do arr[index] = k index = index + 1 end if keySort ~= false then keySort = type(keySort) == 'function' and keySort or defaultKeySort table.sort(arr, keySort) end return arr end ------------------------------------------------------------------------------------ -- sortedPairs -- -- Iterates through a table, with the keys sorted using the keysToList function. -- If there are only numerical keys, sparseIpairs is probably more efficient. ------------------------------------------------------------------------------------ function p.sortedPairs(t, keySort) checkType('sortedPairs', 1, t, 'table') checkType('sortedPairs', 2, keySort, 'function', true) local arr = p.keysToList(t, keySort, true) local i = 0 return function () i = i + 1 local key = arr[i] if key ~= nil then return key, t[key] else return nil, nil end end end ------------------------------------------------------------------------------------ -- isArray -- -- Returns true if the given value is a table and all keys are consecutive -- integers starting at 1. ------------------------------------------------------------------------------------ function p.isArray(v) if type(v) ~= 'table' then return false end local i = 0 for _ in pairs(v) do i = i + 1 if v[i] == nil then return false end end return true end ------------------------------------------------------------------------------------ -- isArrayLike -- -- Returns true if the given value is iterable and all keys are consecutive -- integers starting at 1. ------------------------------------------------------------------------------------ function p.isArrayLike(v) if not pcall(pairs, v) then return false end local i = 0 for _ in pairs(v) do i = i + 1 if v[i] == nil then return false end end return true end ------------------------------------------------------------------------------------ -- invert -- -- Transposes the keys and values in an array. For example, {"a", "b", "c"} -> -- {a = 1, b = 2, c = 3}. Duplicates are not supported (result values refer to -- the index of the last duplicate) and NaN values are ignored. ------------------------------------------------------------------------------------ function p.invert(arr) checkType("invert", 1, arr, "table") local isNan = p.isNan local map = {} for i, v in ipairs(arr) do if not isNan(v) then map[v] = i end end return map end ------------------------------------------------------------------------------------ -- listToSet -- -- Creates a set from the array part of the table. Indexing the set by any of the -- values of the array returns true. For example, {"a", "b", "c"} -> -- {a = true, b = true, c = true}. NaN values are ignored as Lua considers them -- never equal to any value (including other NaNs or even themselves). ------------------------------------------------------------------------------------ function p.listToSet(arr) checkType("listToSet", 1, arr, "table") local isNan = p.isNan local set = {} for _, v in ipairs(arr) do if not isNan(v) then set[v] = true end end return set end ------------------------------------------------------------------------------------ -- deepCopy -- -- Recursive deep copy function. Preserves identities of subtables. ------------------------------------------------------------------------------------ local function _deepCopy(orig, includeMetatable, already_seen) if type(orig) ~= "table" then return orig end -- already_seen stores copies of tables indexed by the original table. local copy = already_seen[orig] if copy ~= nil then return copy end copy = {} already_seen[orig] = copy -- memoize before any recursion, to avoid infinite loops for orig_key, orig_value in pairs(orig) do copy[_deepCopy(orig_key, includeMetatable, already_seen)] = _deepCopy(orig_value, includeMetatable, already_seen) end if includeMetatable then local mt = getmetatable(orig) if mt ~= nil then setmetatable(copy, _deepCopy(mt, true, already_seen)) end end return copy end function p.deepCopy(orig, noMetatable, already_seen) checkType("deepCopy", 3, already_seen, "table", true) return _deepCopy(orig, not noMetatable, already_seen or {}) end ------------------------------------------------------------------------------------ -- sparseConcat -- -- Concatenates all values in the table that are indexed by a number, in order. -- sparseConcat{a, nil, c, d} => "acd" -- sparseConcat{nil, b, c, d} => "bcd" ------------------------------------------------------------------------------------ function p.sparseConcat(t, sep, i, j) local arr = {} local arr_i = 0 for _, v in p.sparseIpairs(t) do arr_i = arr_i + 1 arr[arr_i] = v end return table.concat(arr, sep, i, j) end ------------------------------------------------------------------------------------ -- length -- -- Finds the length of an array, or of a quasi-array with keys such as "data1", -- "data2", etc., using an exponential search algorithm. It is similar to the -- operator #, but may return a different value when there are gaps in the array -- portion of the table. Intended to be used on data loaded with mw.loadData. For -- other tables, use #. -- Note: #frame.args in frame object always be set to 0, regardless of the number -- of unnamed template parameters, so use this function for frame.args. ------------------------------------------------------------------------------------ function p.length(t, prefix) -- requiring module inline so that [[Module:Exponential search]] which is -- only needed by this one function doesn't get millions of transclusions local expSearch = require("Module:Exponential search") checkType('length', 1, t, 'table') checkType('length', 2, prefix, 'string', true) return expSearch(function (i) local key if prefix then key = prefix .. tostring(i) else key = i end return t[key] ~= nil end) or 0 end ------------------------------------------------------------------------------------ -- inArray -- -- Returns true if searchElement is a member of the array, and false otherwise. -- Equivalent to JavaScript array.includes(searchElement) or -- array.includes(searchElement, fromIndex), except fromIndex is 1 indexed ------------------------------------------------------------------------------------ function p.inArray(array, searchElement, fromIndex) checkType("inArray", 1, array, "table") -- if searchElement is nil, error? fromIndex = tonumber(fromIndex) if fromIndex then if (fromIndex < 0) then fromIndex = #array + fromIndex + 1 end if fromIndex < 1 then fromIndex = 1 end for _, v in ipairs({unpack(array, fromIndex)}) do if v == searchElement then return true end end else for _, v in pairs(array) do if v == searchElement then return true end end end return false end ------------------------------------------------------------------------------------ -- merge -- -- Given the arrays, returns an array containing the elements of each input array -- in sequence. ------------------------------------------------------------------------------------ function p.merge(...) local arrays = {...} local ret = {} for i, arr in ipairs(arrays) do checkType('merge', i, arr, 'table') for _, v in ipairs(arr) do ret[#ret + 1] = v end end return ret end ------------------------------------------------------------------------------------ -- extend -- -- Extends the first array in place by appending all elements from the second -- array. ------------------------------------------------------------------------------------ function p.extend(arr1, arr2) checkType('extend', 1, arr1, 'table') checkType('extend', 2, arr2, 'table') for _, v in ipairs(arr2) do arr1[#arr1 + 1] = v end end return p 4n03zk6kcoeg4gz82mieeh94c1szcjy Module:Yesno 828 161 43697 405 2026-06-23T21:20:43Z AgnesAbah 9 Imported from https://en.wikipedia.org/wiki/Module:Yesno by StarterKit infobox tool (content under CC BY-SA) 43697 Scribunto text/plain -- Function allowing for consistent treatment of boolean-like wikitext input. -- It works similarly to the template {{yesno}}. return function (val, default) -- If your wiki uses non-ascii characters for any of "yes", "no", etc., you -- should replace "val:lower()" with "mw.ustring.lower(val)" in the -- following line. val = type(val) == 'string' and val:lower() or val if val == nil then return nil elseif val == true or val == 'yes' or val == 'y' or val == 'true' or val == 't' or val == 'on' or tonumber(val) == 1 then return true elseif val == false or val == 'no' or val == 'n' or val == 'false' or val == 'f' or val == 'off' or tonumber(val) == 0 then return false else return default end end swdskn7svew8i9wuydn9uj5l3r2ghcs Joseph Olumide 0 2184 43690 41997 2026-06-23T19:28:59Z Ojomasarah 861 Created by translating the page "[[:en:Special:Redirect/revision/1330325793|Joseph Olumide]]" 43690 wikitext text/x-wiki '''Joseph Olumide''' Listenⓘ(ma bi 10 efu ochu ekegwa odo 1987) is a Nigerian footballer who plays for VfR Mannheim II. [[Gbúgbe:Abo ki deju]] o6kz43t22vf3h5uz1sxu8xhexqrtojh 43691 43690 2026-06-23T19:35:25Z Ojomasarah 861 Created by translating the page "[[:en:Special:Redirect/revision/1330325793|Joseph Olumide]]" 43691 wikitext text/x-wiki '''Joseph Olumide''' Listenⓘ(ma bi 10 efu ochu ekegwa odo 1987) i cha ri ballu ñwi Nigeria who plays for VfR Mannheim II. [[Gbúgbe:Abo ki deju]] ohafdtt7u7de5g4vi9jzr9j9yh9rqed 43692 43691 2026-06-23T20:36:46Z Ojomasarah 861 Created by translating the page "[[:en:Special:Redirect/revision/1330325793|Joseph Olumide]]" 43692 wikitext text/x-wiki '''Joseph Olumide''' Listenⓘ(ma bi 10 efu ochu ekegwa odo 1987) i cha ri ballu ñwi Nigeria who plays for VfR Mannheim II. == Club career == [[Gbúgbe:Abo ki deju]] dpicf0pwf6n0qrlw1w4hvchtrq7ixx0 Imama Amapakabo 0 2464 43706 43670 2026-06-23T21:56:42Z MaziLazi 1556 /* Ukọlọ */ 43706 wikitext text/x-wiki {{short description|Nigerian football manager}} {{Infobox football biography |name= Imama Amapakabo |birth_date= {{birth date and age|1969|7|27|df=yes}} |birth_place= [[Nigeria]] |position= [[Goalkeeper (association football)|Goalkeeper]] |years1= |clubs1= [[Sharks F.C.]] |managerclubs1= [[Rangers International F.C.]] |manageryears2= |managerclubs2= [[El-Kanemi Warriors F.C.]] |manageryears3= 2020- |managerclubs3= [[Abia Warriors F.C.]] }} '''Imama Amapakabo''' (ma bi ọjọ ki ochu ebie nolu mi ogwu nyọwọ mi ebie ọdọ 1969) i chi ẹnẹ Nigeria ki chi manager ma'nyu ẹnẹ ki ya ri bọlu kwubi. ==Ukọlọ== Anubi ki chi ẹnẹ ka efu amibo Nigeria ku ma du yi [[1985 FIFA U-16 World Championship|FIFA U-16 World Championship]] efu ọdọ 1985, ami attah kpai iye nwu wa dọwọ tọ kì ribọlu.<ref>[https://www.completesports.com/amapakabo-how-w-cup-win-with-golden-eaglets-swayed-my-parents-to-support-my-football/ Amapakabo: How W/Cup Win With Golden Eaglets Swayed My Parents To Support My Football] completesports.com</ref> Adiko ichẹ aganyu Nigerdock ẹgba ki rọ Sharks, he stopped a game to "take a toilet break" but was actually trying to ease the pressure on his team.<ref name="nigerian">[http://nigerianfootballer.com/2020/07/shit-matters-the-bizarre-story-of-how-a-top-goalkeeper-stopped-league-game-for-a-toilet-break.html Shit Matters: The bizarre story of how a top goalkeeper stopped league game for a toilet break] {{Webarchive|url=https://web.archive.org/web/20210124162508/http://nigerianfootballer.com/2020/07/shit-matters-the-bizarre-story-of-how-a-top-goalkeeper-stopped-league-game-for-a-toilet-break.html |date=2021-01-24 }} nigerianfootballer.com</ref> Despite this, Sharks lost 1-0 due to an error from Amapakabo.<ref name="nigerian"/> Efu ọdọ [[2016 Nigeria Professional Football League|2016]], Amapakabo ch'abunẹ [[Rangers International F.C.|Rangers International]] kù ma dù yì Nigerian league iyaka chi alù kì cho onwu ch'ìmọtọ tule efu coaches yi league lẹ. ==Ẹtẹ nwu == {{reflist}} {{DEFAULTSORT:Amapakabo, Imama}} [[Category:1969 births]] [[Category:Nigerian men's footballers]] [[Category:Nigeria men's youth international footballers]] [[Category:Men's association football goalkeepers]] [[Category:Living people]] [[Category:Nigerian football managers]] [[Category:Sharks F.C. players]] [[Category:20th-century Nigerian sportsmen]] {{Nigeria-footy-goalkeeper-stub}} 9ozotcj35co95ia2976ltfonin6n1e5 43707 43706 2026-06-23T22:16:03Z MaziLazi 1556 /* Ukọlọ */ 43707 wikitext text/x-wiki {{short description|Nigerian football manager}} {{Infobox football biography |name= Imama Amapakabo |birth_date= {{birth date and age|1969|7|27|df=yes}} |birth_place= [[Nigeria]] |position= [[Goalkeeper (association football)|Goalkeeper]] |years1= |clubs1= [[Sharks F.C.]] |managerclubs1= [[Rangers International F.C.]] |manageryears2= |managerclubs2= [[El-Kanemi Warriors F.C.]] |manageryears3= 2020- |managerclubs3= [[Abia Warriors F.C.]] }} '''Imama Amapakabo''' (ma bi ọjọ ki ochu ebie nolu mi ogwu nyọwọ mi ebie ọdọ 1969) i chi ẹnẹ Nigeria ki chi manager ma'nyu ẹnẹ ki ya ri bọlu kwubi. ==Ukọlọ== Anubi ki chi ẹnẹ ka efu amibo Nigeria ku ma du yi [[1985 FIFA U-16 World Championship|FIFA U-16 World Championship]] efu ọdọ 1985, ami attah kpai iye nwu wa dọwọ tọ kì ribọlu.<ref>[https://www.completesports.com/amapakabo-how-w-cup-win-with-golden-eaglets-swayed-my-parents-to-support-my-football/ Amapakabo: How W/Cup Win With Golden Eaglets Swayed My Parents To Support My Football] completesports.com</ref> Adiko ichẹ aganyu Nigerdock ẹgba ki rọ Sharks, i dọwọ no ichẹ ka ku ma na rọ ki neke nyu ubioko ama igboji chi tolu kí nyu ubioko n i cha gunu lẹ n i che todu ki amibo ku ma neke mi pẹ.<ref name="nigerian">[http://nigerianfootballer.com/2020/07/shit-matters-the-bizarre-story-of-how-a-top-goalkeeper-stopped-league-game-for-a-toilet-break.html Shit Matters: The bizarre story of how a top goalkeeper stopped league game for a toilet break] {{Webarchive|url=https://web.archive.org/web/20210124162508/http://nigerianfootballer.com/2020/07/shit-matters-the-bizarre-story-of-how-a-top-goalkeeper-stopped-league-game-for-a-toilet-break.html |date=2021-01-24 }} nigerianfootballer.com</ref> aludu ki yaka chagunu lẹ, ma fu Sharks du 1-0 todu ẹnwu ugbodu kì kwi kwu gbo Amapakabo.<ref name="nigerian"/> Efu ọdọ [[2016 Nigeria Professional Football League|2016]], Amapakabo ch'abunẹ [[Rangers International F.C.|Rangers International]] kù ma dù yì Nigerian league iyaka chi alù kì cho onwu ch'ìmọtọ tule efu coaches yi league lẹ. ==Ẹtẹ nwu == {{reflist}} {{DEFAULTSORT:Amapakabo, Imama}} [[Category:1969 births]] [[Category:Nigerian men's footballers]] [[Category:Nigeria men's youth international footballers]] [[Category:Men's association football goalkeepers]] [[Category:Living people]] [[Category:Nigerian football managers]] [[Category:Sharks F.C. players]] [[Category:20th-century Nigerian sportsmen]] {{Nigeria-footy-goalkeeper-stub}} m5xpazj6zwu5hpdb3ykykyt7ous7q85 Segun Atere 0 2466 43679 2026-06-23T19:03:28Z Ojomasarah 861 Created by translating the page "[[:en:Special:Redirect/revision/1329215680|Segun Atere]]" 43679 wikitext text/x-wiki '''Oluwasegun Atere'''listenⓘ (ma fu bi 2 efu ochu egwaka odo 1985) is a Nigerian former professional footballer who plays as a midfielder. [[Gbúgbe:Abo ki deju]] 01td30ida2pe71vjudhg49gkqvmhvs9 43680 43679 2026-06-23T19:05:17Z Ojomasarah 861 Created by translating the page "[[:en:Special:Redirect/revision/1329215680|Segun Atere]]" 43680 wikitext text/x-wiki '''Oluwasegun Atere'''listenⓘ (ma fu bi 2 efu ochu egwaka odo 1985) I cha ri ballu ñwi Nigeria, uñwa midfielder I cha ro-i. [[Gbúgbe:Abo ki deju]] nnm39mhia8mcy9jk17nz0upa22hxgyf 43681 43680 2026-06-23T19:05:49Z Ojomasarah 861 Created by translating the page "[[:en:Special:Redirect/revision/1329215680|Segun Atere]]" 43681 wikitext text/x-wiki '''Oluwasegun Atere'''listenⓘ (ma fu bi 2 efu ochu egwaka odo 1985) I cha ri ballu ñwi Nigeria, uñwa midfielder I cha ro-i. == Ukolo == [[Gbúgbe:Abo ki deju]] bzj6po4u7rsfwuwn5pk2jnqwnqe6grg 43682 43681 2026-06-23T19:07:52Z Ojomasarah 861 Created by translating the page "[[:en:Special:Redirect/revision/1329215680|Segun Atere]]" 43682 wikitext text/x-wiki '''Oluwasegun Atere'''listenⓘ (ma fu bi 2 efu ochu egwaka odo 1985) I cha ri ballu ñwi Nigeria, uñwa midfielder I cha ro-i. == Ukolo == I cha-ne Ukolo ñwu kpai hometown Shooting Stars' feeder team in 2000 before joining the main team. In July 2003 he joined Jupiler League side K.A.A. Gent in a two-year deal. In January 2005, he moved to Belgian lower league team [[K.F.C. Evergem-Center]] on loan. He played 2 years and 6 months with the team before moving back to his home country and signing with Kwara United F.C. He signed with NPFL debutants Giwa FC in 2014. [[Gbúgbe:Abo ki deju]] 6eqj07jl9pci6lqug51orkqugn5968t 43683 43682 2026-06-23T19:09:07Z Ojomasarah 861 Created by translating the page "[[:en:Special:Redirect/revision/1329215680|Segun Atere]]" 43683 wikitext text/x-wiki '''Oluwasegun Atere'''listenⓘ (ma fu bi 2 efu ochu egwaka odo 1985) I cha ri ballu ñwi Nigeria, uñwa midfielder I cha ro-i. == Ukolo == I cha-ne Ukolo ñwu kpai hometown Shooting Stars' feeder team odo 2000 taki i chane chukolo kpai the main team. In July 2003 he joined Jupiler League side K.A.A. Gent in a two-year deal. In January 2005, he moved to Belgian lower league team [[K.F.C. Evergem-Center]] on loan. He played 2 years and 6 months with the team before moving back to his home country and signing with Kwara United F.C. He signed with NPFL debutants Giwa FC in 2014. [[Gbúgbe:Abo ki deju]] gb83drqb1yc1rc93i671vgm4v48z4jn 43684 43683 2026-06-23T19:10:25Z Ojomasarah 861 Created by translating the page "[[:en:Special:Redirect/revision/1329215680|Segun Atere]]" 43684 wikitext text/x-wiki '''Oluwasegun Atere'''listenⓘ (ma fu bi 2 efu ochu egwaka odo 1985) I cha ri ballu ñwi Nigeria, uñwa midfielder I cha ro-i. == Ukolo == I cha-ne Ukolo ñwu kpai hometown Shooting Stars' feeder team odo 2000 taki i chane chukolo kpai the main team. Efu ochu ekebie odo 2003 joined Jupiler League side K.A.A. Gent in a two-year deal. In January 2005, he moved to Belgian lower league team [[K.F.C. Evergem-Center]] on loan. He played 2 years and 6 months with the team before moving back to his home country and signing with Kwara United F.C. He signed with NPFL debutants Giwa FC in 2014. [[Gbúgbe:Abo ki deju]] 9jgexe1y60okgivr7pdve3mdi7oo1w1 43685 43684 2026-06-23T19:11:02Z Ojomasarah 861 Created by translating the page "[[:en:Special:Redirect/revision/1329215680|Segun Atere]]" 43685 wikitext text/x-wiki '''Oluwasegun Atere'''listenⓘ (ma fu bi 2 efu ochu egwaka odo 1985) I cha ri ballu ñwi Nigeria, uñwa midfielder I cha ro-i. == Ukolo == I cha-ne Ukolo ñwu kpai hometown Shooting Stars' feeder team odo 2000 taki i chane chukolo kpai the main team. Efu ochu ekebie odo 2003 i chane chukolo kpai Jupiler League side K.A.A. Gent in a two-year deal. In January 2005, he moved to Belgian lower league team [[K.F.C. Evergem-Center]] on loan. He played 2 years and 6 months with the team before moving back to his home country and signing with Kwara United F.C. He signed with NPFL debutants Giwa FC in 2014. [[Gbúgbe:Abo ki deju]] 2dct3lyx91otnyev1ayrdbbz5uljtkr 43686 43685 2026-06-23T19:11:54Z Ojomasarah 861 Created by translating the page "[[:en:Special:Redirect/revision/1329215680|Segun Atere]]" 43686 wikitext text/x-wiki '''Oluwasegun Atere'''listenⓘ (ma fu bi 2 efu ochu egwaka odo 1985) I cha ri ballu ñwi Nigeria, uñwa midfielder I cha ro-i. == Ukolo == I cha-ne Ukolo ñwu kpai hometown Shooting Stars' feeder team odo 2000 taki i chane chukolo kpai the main team. Efu ochu ekebie odo 2003 i chane chukolo kpai Jupiler League side K.A.A. Gent efi two-year deal. In January 2005, he moved to Belgian lower league team [[K.F.C. Evergem-Center]] on loan. He played 2 years and 6 months with the team before moving back to his home country and signing with Kwara United F.C. He signed with NPFL debutants Giwa FC in 2014. [[Gbúgbe:Abo ki deju]] oo93zz3zhqkxrutf00w1s5jizm1boff 43687 43686 2026-06-23T19:14:02Z Ojomasarah 861 Created by translating the page "[[:en:Special:Redirect/revision/1329215680|Segun Atere]]" 43687 wikitext text/x-wiki '''Oluwasegun Atere'''listenⓘ (ma fu bi 2 efu ochu egwaka odo 1985) I cha ri ballu ñwi Nigeria, uñwa midfielder I cha ro-i. == Ukolo == I cha-ne Ukolo ñwu kpai hometown Shooting Stars' feeder team odo 2000 taki i chane chukolo kpai the main team. Efu ochu ekebie odo 2003 i chane chukolo kpai Jupiler League side K.A.A. Gent efi two-year deal. In January 2005, he moved to Belgian lower league team [[K.F.C. Evergem-Center]] on loan. I che ri ballu odo meji manyi ochu mefa with the team before moving back to his home country and signing with Kwara United F.C. He signed with NPFL debutants Giwa FC in 2014. [[Gbúgbe:Abo ki deju]] 6lng2lc68jz40hzr41w7ttnvlyvzv7g 43688 43687 2026-06-23T19:14:31Z Ojomasarah 861 Created by translating the page "[[:en:Special:Redirect/revision/1329215680|Segun Atere]]" 43688 wikitext text/x-wiki '''Oluwasegun Atere'''listenⓘ (ma fu bi 2 efu ochu egwaka odo 1985) I cha ri ballu ñwi Nigeria, uñwa midfielder I cha ro-i. == Ukolo == I cha-ne Ukolo ñwu kpai hometown Shooting Stars' feeder team odo 2000 taki i chane chukolo kpai the main team. Efu ochu ekebie odo 2003 i chane chukolo kpai Jupiler League side K.A.A. Gent efi two-year deal. In January 2005, he moved to Belgian lower league team [[K.F.C. Evergem-Center]] on loan. I che ri ballu odo meji manyi ochu mefa kpai the team before moving back to his home country and signing with Kwara United F.C. He signed with NPFL debutants Giwa FC in 2014. [[Gbúgbe:Abo ki deju]] 1rwy9yzacyuwzebn9gqhss4g3j4l5eh 43689 43688 2026-06-23T19:16:31Z Ojomasarah 861 Created by translating the page "[[:en:Special:Redirect/revision/1329215680|Segun Atere]]" 43689 wikitext text/x-wiki '''Oluwasegun Atere'''listenⓘ (ma fu bi 2 efu ochu egwaka odo 1985) I cha ri ballu ñwi Nigeria, uñwa midfielder I cha ro-i. == Ukolo == I cha-ne Ukolo ñwu kpai hometown Shooting Stars' feeder team odo 2000 taki i chane chukolo kpai the main team. Efu ochu ekebie odo 2003 i chane chukolo kpai Jupiler League side K.A.A. Gent efi two-year deal. In January 2005, he moved to Belgian lower league team [[K.F.C. Evergem-Center]] on loan. I che ri ballu odo meji manyi ochu mefa kpai the team taki i dabi ti home country ñwu and signing with Kwara United F.C. He signed with NPFL debutants Giwa FC in 2014. [[Gbúgbe:Abo ki deju]] 3xcbdfw02hktesq3o9yap58ql9nbkk0 Module:Italic title 828 2467 43695 2026-06-23T21:20:39Z AgnesAbah 9 Imported from https://en.wikipedia.org/wiki/Module:Italic_title by StarterKit infobox tool (content under CC BY-SA) 43695 Scribunto text/plain -- This module implements {{italic title}}. require('strict') local libraryUtil = require('libraryUtil') local checkType = libraryUtil.checkType local checkTypeForNamedArg = libraryUtil.checkTypeForNamedArg local yesno = require('Module:Yesno') -------------------------------------------------------------------------------- -- ItalicTitle class -------------------------------------------------------------------------------- local ItalicTitle = {} do ---------------------------------------------------------------------------- -- Class attributes and functions -- Things that belong to the class are here. Things that belong to each -- object are in the constructor. ---------------------------------------------------------------------------- -- Keys of title parts that can be italicized. local italicizableKeys = { namespace = true, title = true, dab = true, } ---------------------------------------------------------------------------- -- ItalicTitle constructor -- This contains all the dynamic attributes and methods. ---------------------------------------------------------------------------- function ItalicTitle.new() local obj = {} -- Function for checking self variable in methods. local checkSelf = libraryUtil.makeCheckSelfFunction( 'ItalicTitle', 'obj', obj, 'ItalicTitle object' ) -- Checks a key is present in a lookup table. -- Param: name - the function name. -- Param: argId - integer position of the key in the argument list. -- Param: key - the key. -- Param: lookupTable - the table to look the key up in. local function checkKey(name, argId, key, lookupTable) if not lookupTable[key] then error(string.format( "bad argument #%d to '%s' ('%s' is not a valid key)", argId, name, key ), 3) end end -- Set up object structure. local parsed = false local categories = {} local italicizedKeys = {} local italicizedSubstrings = {} -- Parses a title object into its namespace text, title, and -- disambiguation text. -- Param: options - a table of options with the following keys: -- title - the title object to parse -- ignoreDab - ignore any disambiguation parentheses -- Returns the current object. function obj:parseTitle(options) checkSelf(self, 'parseTitle') checkType('parseTitle', 1, options, 'table') checkTypeForNamedArg('parseTitle', 'title', options.title, 'table') local title = options.title -- Title and dab text local prefix, parentheses if not options.ignoreDab then prefix, parentheses = mw.ustring.match( title.text, '^(.+) %(([^%(%)]+)%)$' ) end if prefix and parentheses then self.title = prefix self.dab = parentheses else self.title = title.text end -- Namespace local namespace = mw.site.namespaces[title.namespace].name if namespace and #namespace >= 1 then self.namespace = namespace end -- Register the object as having parsed a title. parsed = true return self end -- Italicizes part of the title. -- Param: key - the key of the title part to be italicized. Possible -- keys are contained in the italicizableKeys table. -- Returns the current object. function obj:italicize(key) checkSelf(self, 'italicize') checkType('italicize', 1, key, 'string') checkKey('italicize', 1, key, italicizableKeys) italicizedKeys[key] = true return self end -- Un-italicizes part of the title. -- Param: key - the key of the title part to be un-italicized. Possible -- keys are contained in the italicizableKeys table. -- Returns the current object. function obj:unitalicize(key) checkSelf(self, 'unitalicize') checkType('unitalicize', 1, key, 'string') checkKey('unitalicize', 1, key, italicizableKeys) italicizedKeys[key] = nil return self end -- Italicizes a substring in the title. This only affects the main part -- of the title, not the namespace or the disambiguation text. -- Param: s - the substring to be italicized. -- Returns the current object. function obj:italicizeSubstring(s) checkSelf(self, 'italicizeSubstring') checkType('italicizeSubstring', 1, s, 'string') italicizedSubstrings[s] = true return self end -- Un-italicizes a substring in the title. This only affects the main -- part of the title, not the namespace or the disambiguation text. -- Param: s - the substring to be un-italicized. -- Returns the current object. function obj:unitalicizeSubstring(s) checkSelf(self, 'unitalicizeSubstring') checkType('unitalicizeSubstring', 1, s, 'string') italicizedSubstrings[s] = nil return self end -- Renders the object into a page name. If no title has yet been parsed, -- the current title is used. -- Returns string function obj:renderTitle() checkSelf(self, 'renderTitle') -- Italicizes a string -- Param: s - the string to italicize -- Returns string. local function italicize(s) assert(type(s) == 'string', 's was not a string') assert(s ~= '', 's was the empty string') return string.format('<i>%s</i>', s) end -- Escape characters in a string that are magic in Lua patterns. -- Param: pattern - the pattern to escape -- Returns string. local function escapeMagicCharacters(s) assert(type(s) == 'string', 's was not a string') return s:gsub('%p', '%%%0') end -- If a title hasn't been parsed yet, parse the current title. if not parsed then self:parseTitle{title = mw.title.getCurrentTitle()} end -- Italicize the different parts of the title and store them in a -- titleParts table to be joined together later. local titleParts = {} -- Italicize the italicizable keys. for key in pairs(italicizableKeys) do if self[key] then if italicizedKeys[key] then titleParts[key] = italicize(self[key]) else titleParts[key] = self[key] end end end -- Italicize substrings. If there are any substrings to be -- italicized then start from the raw title, as this overrides any -- italicization of the main part of the title. if next(italicizedSubstrings) then titleParts.title = self.title for s in pairs(italicizedSubstrings) do local pattern = escapeMagicCharacters(s) local italicizedTitle, nReplacements = titleParts.title:gsub( pattern, italicize ) titleParts.title = italicizedTitle -- If we didn't make any replacements then it means that we -- have been passed a bad substring or that the page has -- been moved to a bad title, so add a tracking category. if nReplacements < 1 then categories['Pages using italic title with no matching string'] = true end end end -- Assemble the title together from the parts. local ret = '' if titleParts.namespace then ret = ret .. titleParts.namespace .. ':' end ret = ret .. titleParts.title if titleParts.dab then ret = ret .. ' (' .. titleParts.dab .. ')' end return ret end -- Returns an expanded DISPLAYTITLE parser function called with the -- result of obj:renderTitle, plus any other optional arguments. -- Returns string function obj:renderDisplayTitle(...) checkSelf(self, 'renderDisplayTitle') return mw.getCurrentFrame():callParserFunction( 'DISPLAYTITLE', self:renderTitle(), ... ) end -- Returns an expanded DISPLAYTITLE parser function called with the -- result of obj:renderTitle, plus any other optional arguments, plus -- any tracking categories. -- Returns string function obj:render(...) checkSelf(self, 'render') local ret = self:renderDisplayTitle(...) for cat in pairs(categories) do ret = ret .. string.format( '[[Category:%s]]', cat ) end return ret end return obj end end -------------------------------------------------------------------------------- -- Exports -------------------------------------------------------------------------------- local p = {} local function getArgs(frame, wrapper) assert(type(wrapper) == 'string', 'wrapper was not a string') return require('Module:Arguments').getArgs(frame, { wrappers = wrapper }) end -- Main function for {{italic title}} function p._main(args) checkType('_main', 1, args, 'table') local italicTitle = ItalicTitle.new() italicTitle:parseTitle{ title = mw.title.getCurrentTitle(), ignoreDab = yesno(args.all, false) } if args.string then italicTitle:italicizeSubstring(args.string) else italicTitle:italicize('title') end return italicTitle:render(args[1]) end function p.main(frame) return p._main(getArgs(frame, 'Template:Italic title')) end function p._dabonly(args) return ItalicTitle.new() :italicize('dab') :render(args[1]) end function p.dabonly(frame) return p._dabonly(getArgs(frame, 'Template:Italic dab')) end return p i5073gly55g6ltjgvutoqvgvumtx9fc Module:Navbar/configuration 828 2468 43699 2026-06-23T21:20:46Z AgnesAbah 9 Imported from https://en.wikipedia.org/wiki/Module:Navbar/configuration by StarterKit infobox tool (content under CC BY-SA) 43699 Scribunto text/plain return { ['templatestyles'] = 'Module:Navbar/styles.css', ['hlist_templatestyles'] = 'Hlist/styles.css', ['box_text'] = 'This box: ', -- default text box when not plain or mini ['title_namespace'] = 'Template', -- namespace to default to for title ['invalid_title'] = 'Invalid title ', ['classes'] = { -- set a line to nil if you don't want it ['navbar'] = 'navbar', ['plainlinks'] = 'plainlinks', -- plainlinks ['horizontal_list'] = 'hlist', -- horizontal list class ['mini'] = 'navbar-mini', -- class indicating small links in the navbar ['box_text'] = 'navbar-boxtext', ['brackets'] = 'navbar-brackets', -- 'collapsible' is the key for a class to indicate the navbar is -- setting up the collapsible element in addition to the normal -- navbar. ['collapsible'] = 'navbar-collapse', ['collapsible_title_mini'] = 'navbar-ct-mini', ['collapsible_title_full'] = 'navbar-ct-full' } } itag4bw69ebqpc0fw4hgkr4pkizazgr Module:Exponential search 828 2469 43701 2026-06-23T21:20:50Z AgnesAbah 9 Imported from https://en.wikipedia.org/wiki/Module:Exponential_search by StarterKit infobox tool (content under CC BY-SA) 43701 Scribunto text/plain -- This module provides a generic exponential search algorithm. require[[strict]] local checkType = require('libraryUtil').checkType local floor = math.floor local function midPoint(lower, upper) return floor(lower + (upper - lower) / 2) end local function search(testFunc, i, lower, upper) if testFunc(i) then if i + 1 == upper then return i end lower = i if upper then i = midPoint(lower, upper) else i = i * 2 end return search(testFunc, i, lower, upper) else upper = i i = midPoint(lower, upper) return search(testFunc, i, lower, upper) end end return function (testFunc, init) checkType('Exponential search', 1, testFunc, 'function') checkType('Exponential search', 2, init, 'number', true) if init and (init < 1 or init ~= floor(init) or init == math.huge) then error(string.format( "invalid init value '%s' detected in argument #2 to " .. "'Exponential search' (init value must be a positive integer)", tostring(init) ), 2) end init = init or 2 if not testFunc(1) then return nil end return search(testFunc, init, 1, nil) end jqqi8l27tb73lglksbukg2g3bzt3fmv Module:Navbar/styles.css 828 2470 43702 2026-06-23T21:20:52Z AgnesAbah 9 Imported from https://en.wikipedia.org/wiki/Module:Navbar/styles.css by StarterKit infobox tool (content under CC BY-SA) 43702 sanitized-css text/css /* {{pp|small=yes}} */ .navbar { display: inline; font-size: 88%; font-weight: normal; } .navbar-collapse { float: left; text-align: left; } .navbar-boxtext { word-spacing: 0; } .navbar ul { display: inline-block; white-space: nowrap; line-height: inherit; } .navbar-brackets::before { margin-right: -0.125em; content: '[ '; } .navbar-brackets::after { margin-left: -0.125em; content: ' ]'; } .navbar li { word-spacing: -0.125em; } .navbar a > span, .navbar a > abbr { text-decoration: inherit; } .navbar-mini abbr { font-variant: small-caps; border-bottom: none; text-decoration: none; cursor: inherit; } .navbar-ct-full { font-size: 114%; margin: 0 7em; } .navbar-ct-mini { font-size: 114%; margin: 0 4em; } /* not the usual @media screen, we simply remove navbar in @media print */ html.skin-theme-clientpref-night .navbar li a abbr { color: var(--color-base) !important; } @media (prefers-color-scheme: dark) { html.skin-theme-clientpref-os .navbar li a abbr { color: var(--color-base) !important; } } @media print { .navbar { display: none !important; } } a68rpqs0zynjjfzlunkhpdlpnoe6c82 Éwn malábó:Template other 10 2471 43703 2026-06-23T21:21:20Z AgnesAbah 9 Imported from https://en.wikipedia.org/wiki/Template:Template_other by StarterKit infobox tool (content under CC BY-SA) 43703 wikitext text/x-wiki {{#switch: <!--If no or empty "demospace" parameter then detect namespace--> {{#if:{{{demospace|}}} | {{lc: {{{demospace}}} }} <!--Use lower case "demospace"--> | {{#ifeq:{{NAMESPACE}}|{{ns:Template}} | template | other }} }} | template = {{{1|}}} | other | #default = {{{2|}}} }}<!--End switch--><noinclude> {{documentation}} <!-- Add categories and interwikis to the /doc subpage, not here! --> </noinclude> 0tcssjmltwl7y5v3f5wj2kqciaabqly Éwn malábó:Infobox Person 10 2472 43704 2026-06-23T21:22:15Z AgnesAbah 9 Imported from https://test.wikipedia.org/wiki/User:Iiirxs/Template:Infobox_person by StarterKit infobox tool (content under CC BY-SA) 43704 wikitext text/x-wiki {{Infobox | above = {{{name|{{PAGENAME}}}}} | image = {{{image|{{#if:{{#property:P18}}|[[File:{{#property:P18}}|frameless|upright=1|alt=]]}}}}} | label1 = Born | data1 = {{{birth_date|{{#property:P569}}}}} <br> {{{birth_place|{{#property:P19}}}}} | label3 = Occupation | data3 = {{{occupation|{{#property:P106}}}}} | label4 = Known for | data4 = {{{known_for|{{#property:P800}}}}} }} <noinclude> {{documentation}} </noinclude> 7c14ky9gat2hbg6q2393fb0we5me61g Éwn malábó:Infobox Person/doc 10 2473 43705 2026-06-23T21:22:16Z AgnesAbah 9 Imported from https://test.wikipedia.org/wiki/User:Iiirxs/Template:Infobox_person/doc by StarterKit infobox tool (content under CC BY-SA) 43705 wikitext text/x-wiki == Usage == Use this template on articles about people. All fields are optional — if omitted, values are pulled automatically from Wikidata. === Basic usage (Wikidata auto-fill) === <pre>{{Infobox person}}</pre> === With explicit values === <pre> {{Infobox person | name = Marie Curie | image = Marie Curie c1920.jpg | birth_date = 7 November 1867 | birth_place = Warsaw, Congress Poland | occupation = Physicist, chemist | known_for = Radioactivity research }} </pre> == Parameters == {| class="wikitable" ! Parameter !! Wikidata property !! Description |- | <code>name</code> || — || Person's name. Defaults to the page name. |- | <code>image</code> || P18 || Image filename (without <code>File:</code> prefix). Defaults to Wikidata P18. |- | <code>birth_date</code> || P569 || Date of birth. Defaults to Wikidata P569. |- | <code>birth_place</code> || P19 || Place of birth. Defaults to Wikidata P19. |- | <code>occupation</code> || P106 || Occupation. Defaults to Wikidata P106. |- | <code>known_for</code> || P800 || Notable work or reason for fame. Defaults to Wikidata P800. |} == Notes == * Requires the [[mw:Extension:Wikibase Client|WikibaseClient]] extension for Wikidata property lookup. * Requires the [[mw:Extension:Scribunto|Scribunto]] extension and [[Module:Infobox]] for rendering. <templatedata> { "description": "Infobox for people. All fields are optional and fall back to Wikidata properties automatically.", "params": { "name": { "label": "Name", "description": "Person's name. Defaults to the page name.", "type": "string", "suggested": true }, "image": { "label": "Image", "description": "Image filename without File: prefix. Defaults to Wikidata P18.", "type": "wiki-file-name", "suggested": true }, "birth_date": { "label": "Birth date", "description": "Date of birth. Defaults to Wikidata P569.", "type": "date" }, "birth_place": { "label": "Birth place", "description": "Place of birth. Defaults to Wikidata P19.", "type": "string" }, "occupation": { "label": "Occupation", "description": "Occupation or profession. Defaults to Wikidata P106.", "type": "string" }, "known_for": { "label": "Known for", "description": "Notable work or reason for fame. Defaults to Wikidata P800.", "type": "string" } } } </templatedata> gemmv7layngp1zf4dxpilteq8fi2ezm Éwn malábó:Infobox settlement/doc 10 2474 43709 2026-06-23T22:32:00Z AgnesAbah 9 Imported from https://test.wikipedia.org/wiki/User:Iiirxs/Template:Infobox_settlement/doc by StarterKit infobox tool (content under CC BY-SA) 43709 wikitext text/x-wiki == Usage == Use this template on articles about settlements (cities, towns, villages, etc.). All fields are optional — if omitted, values are pulled automatically from Wikidata. === Basic usage (Wikidata auto-fill) === <pre>{{Infobox settlement}}</pre> === With explicit values === <pre> {{Infobox settlement | name = Athens | image = Athens Montage.jpg | country = Greece | region = Attica | population = 3,153,000 | coordinates = 37°58′N 23°43′E }} </pre> == Parameters == {| class="wikitable" ! Parameter !! Wikidata property !! Description |- | <code>name</code> || — || Settlement name. Defaults to the page name. |- | <code>image</code> || P18 || Image filename (without <code>File:</code> prefix). Defaults to Wikidata P18. |- | <code>country</code> || P17 || Country the settlement is located in. Defaults to Wikidata P17. |- | <code>region</code> || P131 || Administrative territorial entity (region, prefecture, municipality, etc.). Defaults to Wikidata P131. |- | <code>population</code> || P1082 || Population figure. Defaults to Wikidata P1082. |- | <code>coordinates</code> || P625 || Geographic coordinates. Defaults to Wikidata P625. |} == Notes == * Requires the [[mw:Extension:Wikibase Client|WikibaseClient]] extension for Wikidata property lookup. * Requires the [[mw:Extension:Scribunto|Scribunto]] extension and [[Module:Infobox]] for rendering. <templatedata> { "description": "Infobox for settlements. All fields are optional and fall back to Wikidata properties automatically.", "params": { "name": { "label": "Name", "description": "Settlement name. Defaults to the page name.", "type": "string", "suggested": true }, "image": { "label": "Image", "description": "Image filename without File: prefix. Defaults to Wikidata P18.", "type": "wiki-file-name", "suggested": true }, "country": { "label": "Country", "description": "Country the settlement is in. Defaults to Wikidata P17.", "type": "string" }, "region": { "label": "Region", "description": "Administrative division (region, prefecture, etc.). Defaults to Wikidata P131.", "type": "string" }, "population": { "label": "Population", "description": "Population figure. Defaults to Wikidata P1082.", "type": "number" }, "coordinates": { "label": "Coordinates", "description": "Geographic coordinates. Defaults to Wikidata P625.", "type": "string" } } } </templatedata> d1hdr68wr32f6i5rcican2ykkovk7if Éwn malábó:Infobox organization 10 2475 43710 2026-06-23T22:32:04Z AgnesAbah 9 Imported from https://test.wikipedia.org/wiki/User:Iiirxs/Template:Infobox_organization by StarterKit infobox tool (content under CC BY-SA) 43710 wikitext text/x-wiki {{Infobox | above = {{{name|{{PAGENAME}}}}} | image = {{{image|{{#if:{{#property:P18}}|[[File:{{#property:P18}}|frameless|upright=1|alt=]]}}}}} | label1 = Type | data1 = {{{type|{{#property:P31}}}}} | label2 = Founded | data2 = {{{founded|{{#property:P571}}}}} | label3 = Headquarters | data3 = {{{headquarters|{{#property:P159}}}}} | label4 = Website | data4 = {{{website|{{#property:P856}}}}} }} <noinclude> {{documentation}} </noinclude> 6eylbd0ej8pq0ybhtcrdyhou2ig4oyx Éwn malábó:Infobox organization/doc 10 2476 43711 2026-06-23T22:32:04Z AgnesAbah 9 Imported from https://test.wikipedia.org/wiki/User:Iiirxs/Template:Infobox_organization/doc by StarterKit infobox tool (content under CC BY-SA) 43711 wikitext text/x-wiki == Usage == Use this template on articles about organizations (companies, institutions, NGOs, etc.). All fields are optional — if omitted, values are pulled automatically from Wikidata where available. === Basic usage (Wikidata auto-fill) === <pre>{{Infobox organization}}</pre> === With explicit values === <pre> {{Infobox organization | name = Wikimedia Foundation | image = Wikimedia Foundation RGB logo with text.svg | type = Non-profit organization | founded = 2003 | headquarters = San Francisco, California | website = https://wikimediafoundation.org }} </pre> == Parameters == {| class="wikitable" ! Parameter !! Wikidata property !! Description |- | <code>name</code> || — || Organization name. Defaults to the page name. |- | <code>image</code> || P18 || Logo or image filename (without <code>File:</code> prefix). Defaults to Wikidata P18. |- | <code>type</code> || P31 || Type or instance of (e.g. non-profit, public company). Defaults to Wikidata P31. |- | <code>founded</code> || P571 || Date of inception/founding. Defaults to Wikidata P571. |- | <code>headquarters</code> || P159 || Headquarters location. Defaults to Wikidata P159. |- | <code>website</code> || P856 || Official website URL. Defaults to Wikidata P856. |} == Notes == * Requires the [[mw:Extension:Wikibase Client|WikibaseClient]] extension for Wikidata property lookup. * Requires the [[mw:Extension:Scribunto|Scribunto]] extension and [[Module:Infobox]] for rendering. <templatedata> { "description": "Infobox for organizations. All fields are optional and fall back to Wikidata properties automatically.", "params": { "name": { "label": "Name", "description": "Organization name. Defaults to the page name.", "type": "string", "suggested": true }, "image": { "label": "Image", "description": "Logo or image filename without File: prefix. Defaults to Wikidata P18.", "type": "wiki-file-name", "suggested": true }, "type": { "label": "Type", "description": "Type of organization (e.g. non-profit, public company). Defaults to Wikidata P31.", "type": "string" }, "founded": { "label": "Founded", "description": "Date of inception or founding. Defaults to Wikidata P571.", "type": "date" }, "headquarters": { "label": "Headquarters", "description": "Headquarters location. Defaults to Wikidata P159.", "type": "string" }, "website": { "label": "Website", "description": "Official website URL. Defaults to Wikidata P856.", "type": "url" } } } </templatedata> gtbw0cvxs21rw516ivfuhmsxjoe9ije Éwn malábó:Infobox event 10 2477 43712 2026-06-23T22:32:07Z AgnesAbah 9 Imported from https://test.wikipedia.org/wiki/User:Iiirxs/Template:Infobox_event by StarterKit infobox tool (content under CC BY-SA) 43712 wikitext text/x-wiki {{Infobox | above = {{{name|{{PAGENAME}}}}} | image = {{{image|{{#if:{{#property:P18}}|[[File:{{#property:P18}}|frameless|upright=1|alt=]]}}}}} | label1 = Date | data1 = {{{date|{{#property:P585}}}}} | label2 = Location | data2 = {{{location|{{#property:P276}}}}} | label3 = Organizer | data3 = {{{organizer|{{#property:P664}}}}} | label4 = Description | data4 = {{{description|}}} }} <noinclude> {{documentation}} </noinclude> 2omw5gjpigegklbaqaxyr4uvzc0oxz7 Éwn malábó:Infobox event/doc 10 2478 43713 2026-06-23T22:32:07Z AgnesAbah 9 Imported from https://test.wikipedia.org/wiki/User:Iiirxs/Template:Infobox_event/doc by StarterKit infobox tool (content under CC BY-SA) 43713 wikitext text/x-wiki == Usage == Use this template on articles about events (conferences, competitions, ceremonies, etc.). All fields are optional — if omitted, values are pulled automatically from Wikidata where available. === Basic usage (Wikidata auto-fill) === <pre>{{Infobox event}}</pre> === With explicit values === <pre> {{Infobox event | name = Olympic Games Athens 2004 | image = 2004 Olympics opening ceremony.jpg | date = 13–29 August 2004 | location = Athens, Greece | organizer = International Olympic Committee | description = Summer Olympic Games held in Athens. }} </pre> == Parameters == {| class="wikitable" ! Parameter !! Wikidata property !! Description |- | <code>name</code> || — || Event name. Defaults to the page name. |- | <code>image</code> || P18 || Image filename (without <code>File:</code> prefix). Defaults to Wikidata P18. |- | <code>date</code> || P585 || Date or date range of the event. Defaults to Wikidata P585 (point in time). |- | <code>location</code> || P276 || Location where the event takes place. Defaults to Wikidata P276. |- | <code>organizer</code> || P664 || Organizer of the event. Defaults to Wikidata P664. |- | <code>description</code> || — || Short description of the event. No Wikidata fallback — always explicit. |} == Notes == * The <code>description</code> field has no Wikidata fallback. * Requires the [[mw:Extension:Wikibase Client|WikibaseClient]] extension for Wikidata property lookup. * Requires the [[mw:Extension:Scribunto|Scribunto]] extension and [[Module:Infobox]] for rendering. <templatedata> { "description": "Infobox for events. Most fields fall back to Wikidata properties automatically.", "params": { "name": { "label": "Name", "description": "Event name. Defaults to the page name.", "type": "string", "suggested": true }, "image": { "label": "Image", "description": "Image filename without File: prefix. Defaults to Wikidata P18.", "type": "wiki-file-name", "suggested": true }, "date": { "label": "Date", "description": "Date or date range of the event. Defaults to Wikidata P585.", "type": "date" }, "location": { "label": "Location", "description": "Location of the event. Defaults to Wikidata P276.", "type": "string" }, "organizer": { "label": "Organizer", "description": "Organizer of the event. Defaults to Wikidata P664.", "type": "string" }, "description": { "label": "Description", "description": "Short description of the event. Always explicit, no Wikidata fallback.", "type": "string" } } } </templatedata> 6c3arlkeqbuou3cqtir8hk7foqav0bq Éwn malábó:Taxobox 10 2479 43714 2026-06-23T22:32:09Z AgnesAbah 9 Imported from https://test.wikipedia.org/wiki/User:Iiirxs/Template:Taxobox by StarterKit infobox tool (content under CC BY-SA) 43714 wikitext text/x-wiki {{Infobox | above = {{{name|{{PAGENAME}}}}} | image = {{{image|{{#if:{{#property:P18}}|[[File:{{#property:P18}}|frameless|upright=1|alt=]]}}}}} | label1 = Kingdom | data1 = {{{kingdom|}}} | label2 = Family | data2 = {{{family|}}} | label3 = Genus | data3 = {{{genus|{{#property:P171}}}}} | label4 = Species | data4 = {{{species|{{#property:P225}}}}} | label5 = Conservation status | data5 = {{{conservation_status|{{#property:P141}}}}} }} <noinclude> {{documentation}} </noinclude> tusd1q5j28w4b8v1vcppf82oabzt96l Éwn malábó:Taxobox/doc 10 2480 43715 2026-06-23T22:32:10Z AgnesAbah 9 Imported from https://test.wikipedia.org/wiki/User:Iiirxs/Template:Taxobox/doc by StarterKit infobox tool (content under CC BY-SA) 43715 wikitext text/x-wiki == Usage == Use this template on articles about taxa (species, genera, families, etc.). Fields with a Wikidata fallback are filled automatically when the article is connected to a Wikidata item. === Basic usage (Wikidata auto-fill where available) === <pre>{{Taxobox}}</pre> === With explicit values === <pre> {{Taxobox | name = Panthera leo | image = Lion waiting in Namibia.jpg | kingdom = Animalia | family = Felidae | genus = Panthera | species = Panthera leo | conservation_status = Vulnerable }} </pre> == Parameters == {| class="wikitable" ! Parameter !! Wikidata property !! Description |- | <code>name</code> || — || Taxon name. Defaults to the page name. |- | <code>image</code> || P18 || Image filename (without <code>File:</code> prefix). Defaults to Wikidata P18. |- | <code>kingdom</code> || — || Biological kingdom (e.g. Animalia, Plantae). Always explicit — Wikidata encodes the full hierarchy via P171 chains with no direct kingdom property. |- | <code>family</code> || — || Biological family. Always explicit — same reason as kingdom. |- | <code>genus</code> || P171 || Immediate parent taxon (genus for a species item). Defaults to Wikidata P171. |- | <code>species</code> || P225 || Scientific taxon name. Defaults to Wikidata P225. |- | <code>conservation_status</code> || P141 || IUCN conservation status. Defaults to Wikidata P141. |} == Notes == * <code>kingdom</code> and <code>family</code> have no Wikidata fallback because Wikidata represents the taxonomic hierarchy as a chain of P171 (parent taxon) links, not as flat properties. These must always be provided explicitly. * Requires the [[mw:Extension:Wikibase Client|WikibaseClient]] extension for Wikidata property lookup. * Requires the [[mw:Extension:Scribunto|Scribunto]] extension and [[Module:Infobox]] for rendering. <templatedata> { "description": "Infobox for taxa (species, genera, etc.). Some fields fall back to Wikidata properties automatically.", "params": { "name": { "label": "Name", "description": "Taxon name. Defaults to the page name.", "type": "string", "suggested": true }, "image": { "label": "Image", "description": "Image filename without File: prefix. Defaults to Wikidata P18.", "type": "wiki-file-name", "suggested": true }, "kingdom": { "label": "Kingdom", "description": "Biological kingdom (e.g. Animalia, Plantae). Always explicit.", "type": "string" }, "family": { "label": "Family", "description": "Biological family. Always explicit.", "type": "string" }, "genus": { "label": "Genus", "description": "Biological genus (immediate parent taxon). Defaults to Wikidata P171.", "type": "string" }, "species": { "label": "Species", "description": "Scientific taxon name. Defaults to Wikidata P225.", "type": "string" }, "conservation_status": { "label": "Conservation status", "description": "IUCN conservation status. Defaults to Wikidata P141.", "type": "string" } } } </templatedata> hooe79f0cot8cla2gy4p6kkexnb9ag7 Chibuzor Nwogbo 0 2481 43716 2026-06-24T11:20:04Z MaziLazi 1556 Created page with "{{Short description|Nigerian footballer (born 1990)}} {{Use dmy dates|date=October 2023}} {{Infobox football biography |name= Chibuzor Nwogbo |birth_date= 31 October 1990 |birth_place= [[Jos]], [[Nigeria]] |position= [[Forward (association football)|Striker]] |years1= 2008/2009 |clubs1= {{ill|Cihangir GSK|tr}} |years2= 2011–2012 |clubs2= [[University of Pretoria F.C.]] |goals2= 6 |years3= 2012–2013 |clubs3= [[Adanaspor]] |caps3= 29 |goals3= 4 |years4= 2013–2015 |cl..." 43716 wikitext text/x-wiki {{Short description|Nigerian footballer (born 1990)}} {{Use dmy dates|date=October 2023}} {{Infobox football biography |name= Chibuzor Nwogbo |birth_date= 31 October 1990 |birth_place= [[Jos]], [[Nigeria]] |position= [[Forward (association football)|Striker]] |years1= 2008/2009 |clubs1= {{ill|Cihangir GSK|tr}} |years2= 2011–2012 |clubs2= [[University of Pretoria F.C.]] |goals2= 6 |years3= 2012–2013 |clubs3= [[Adanaspor]] |caps3= 29 |goals3= 4 |years4= 2013–2015 |clubs4= {{ill|Cihangir GSK|tr}} |caps4= 36 |goals4= 17 |years6= 2015–2016 |clubs6= {{ill|Nevşehir Belediyespor|tr}} |caps6= 18 |goals6= 17 |years7= 2016–2017 |clubs7= Utaş Uşakspor |caps7= 23 |goals7= 6 |years8= 2017–2018 |clubs8= {{ill|Nevşehir Belediyespor|tr}} |caps8= 26 |goals8= 17 |years9= 2018–2019 |clubs9= {{ill|1954 Kelkit Belediyespor|tr}} |caps9= 26 |goals9= 18 }} '''Chibuzor Aloysius Nwogbo'''{{Audio|LL-Q33578_(ibo)-Goodymeraj-Chibuzor_Aloysius_Nwogbo.wav|Listen|help=no}} (born 31 October 1990 in [[Nigeria]]) is a [[Nigeria]]n former footballer. ==Career== After playing for Northern Cypriot club Cihangir GSK as well as University of Pretoria in the South African second division, Nwogbo signed for Turkish fifth division side Nevşehir Belediyespor, where he scored 12 goals in his first 9 league appearances, with at least 1 every game.<ref>[https://www.aksam.com.tr/futbol/turkiye-liglerinin-en-golcu-oyuncusu-chibuzor-nwogbo/haber-467351 Türkiye liglerinin en golcü oyuncusu Chibuzor Nwogbo] aksam.com.tr</ref> From there, he played for Utaş Uşakspor and 1954 Kelkit Belediyespor in the Turkish fifth division.{{citation needed|date=October 2023}} ==References== {{reflist}} ==External links== * [https://www.tff.org/Default.aspx?pageId=526&kisiId=1510006 Chibuzor Nwogbo] at TFF {{DEFAULTSORT:Nwogbo, Chibuzor}} [[Category:1990 births]] [[Category:Living people]] [[Category:Footballers from Jos]] [[Category:Nigerian men's footballers]] [[Category:Men's association football forwards]] [[Category:Adanaspor footballers]] [[Category:University of Pretoria F.C. players]] [[Category:Nigerian expatriate men's footballers]] [[Category:Expatriate men's soccer players in South Africa]] [[Category:Nigerian expatriate sportspeople in South Africa]] [[Category:Expatriate men's footballers in Turkey]] [[Category:Nigerian expatriate sportspeople in Turkey]] [[Category:Expatriate men's footballers in Northern Cyprus]] [[Category:Nigerian expatriate sportspeople in Northern Cyprus]] [[Category:21st-century Nigerian sportsmen]] {{Nigeria-footy-forward-stub}} 0642qvhhdrz2xwjt0opx10ici2l4wma 43717 43716 2026-06-24T11:28:57Z MaziLazi 1556 43717 wikitext text/x-wiki {{Short description|Nigerian footballer (born 1990)}} {{Use dmy dates|date=October 2023}} {{Infobox football biography |name= Chibuzor Nwogbo |birth_date= 31 October 1990 |birth_place= [[Jos]], [[Nigeria]] |position= [[Forward (association football)|Striker]] |years1= 2008/2009 |clubs1= {{ill|Cihangir GSK|tr}} |years2= 2011–2012 |clubs2= [[University of Pretoria F.C.]] |goals2= 6 |years3= 2012–2013 |clubs3= [[Adanaspor]] |caps3= 29 |goals3= 4 |years4= 2013–2015 |clubs4= {{ill|Cihangir GSK|tr}} |caps4= 36 |goals4= 17 |years6= 2015–2016 |clubs6= {{ill|Nevşehir Belediyespor|tr}} |caps6= 18 |goals6= 17 |years7= 2016–2017 |clubs7= Utaş Uşakspor |caps7= 23 |goals7= 6 |years8= 2017–2018 |clubs8= {{ill|Nevşehir Belediyespor|tr}} |caps8= 26 |goals8= 17 |years9= 2018–2019 |clubs9= {{ill|1954 Kelkit Belediyespor|tr}} |caps9= 26 |goals9= 18 }} '''Chibuzor Aloysius Nwogbo'''{{Audio|LL-Q33578_(ibo)-Goodymeraj-Chibuzor_Aloysius_Nwogbo.wav|Listen|help=no}} (chẹnẹ ku ma bi ọjọ ki ochu ẹgwa nolu mi ogwu ẹgwa nyọwọka efu ọdọ 1990 yi [[Nigeria]]) i chi ẹnẹ [[Nigeria]]n ki ya ri bọlu kwubi. ==Ukọlọ== Anubi kì rọ nwu Cihangir GSK ma'nyu University eyi Pretoria ki doji anẹ South African, Nwogbo dọwọ ti ọtakada ki rọ nwi Nevşehir Belediyespor, ugbo ki ni golu mi 12 yi efu ichẹ mì 9 ki dufu, kpai i nya gbẹ golu oka yi ichẹ du ki rọ.<ref>[https://www.aksam.com.tr/futbol/turkiye-liglerinin-en-golcu-oyuncusu-chibuzor-nwogbo/haber-467351 Türkiye liglerinin en golcü oyuncusu Chibuzor Nwogbo] aksam.com.tr</ref> kwi ọmọ, i rọ nwu Utaş Uşakspor ma'nyu 1954 Kelkit Belediyespor yi Turkey.{{citation needed|date=October 2023}} ==Ẹtẹ nwu == {{reflist}} ==Ale tọ'dọda == * [https://www.tff.org/Default.aspx?pageId=526&kisiId=1510006 Chibuzor Nwogbo] at TFF {{DEFAULTSORT:Nwogbo, Chibuzor}} [[Category:1990 births]] [[Category:Living people]] [[Category:Footballers from Jos]] [[Category:Nigerian men's footballers]] [[Category:Men's association football forwards]] [[Category:Adanaspor footballers]] [[Category:University of Pretoria F.C. players]] [[Category:Nigerian expatriate men's footballers]] [[Category:Expatriate men's soccer players in South Africa]] [[Category:Nigerian expatriate sportspeople in South Africa]] [[Category:Expatriate men's footballers in Turkey]] [[Category:Nigerian expatriate sportspeople in Turkey]] [[Category:Expatriate men's footballers in Northern Cyprus]] [[Category:Nigerian expatriate sportspeople in Northern Cyprus]] [[Category:21st-century Nigerian sportsmen]] {{Nigeria-footy-forward-stub}} 2qfke5ljb5p8jvjxj9we3x2o8cgcoqs Michael Ochei 0 2482 43718 2026-06-24T11:31:07Z MaziLazi 1556 Created page with "{{short description|Nigerian footballer}} {{Infobox football biography |name= Michael Ochei |fullname= Michael Emeka Ochei |birth_date= |birth_place= [[Nigeria]] |death_date= 17 September 2014 |death_place= [[Ballygunge]], [[India]] |position= [[Forward (association football)|Striker]] |years1= |clubs1= [[Enyimba F.C.]]<ref>[https://www.rsssf.org/tablesa/afcup03.html African Club Competitions 2003] RSSSF</ref><ref name="interview"/> |years2= 2004 |clubs2= Heartland..." 43718 wikitext text/x-wiki {{short description|Nigerian footballer}} {{Infobox football biography |name= Michael Ochei |fullname= Michael Emeka Ochei |birth_date= |birth_place= [[Nigeria]] |death_date= 17 September 2014 |death_place= [[Ballygunge]], [[India]] |position= [[Forward (association football)|Striker]] |years1= |clubs1= [[Enyimba F.C.]]<ref>[https://www.rsssf.org/tablesa/afcup03.html African Club Competitions 2003] RSSSF</ref><ref name="interview"/> |years2= 2004 |clubs2= [[Heartland F.C.|Nationale]]<ref>[https://allafrica.com/stories/200403260973.html Nationale Swap Ochei for Osim] Vanguard (Nigeria - Allafrica.com)</ref> |years3= 2005 |clubs3= [[Marsaxlokk F.C.]] |goals3= 1 |years4= 2007 |clubs4= [[Akwa United F.C.]]<ref>[https://allafrica.com/stories/200702040237.html Kano Rumbles for Pillars, Ocean Boys] Vanguard (Nigeria - Allafrica.com)</ref> |years5= |clubs5= [[Niger Tornadoes F.C.]]<ref name="interview"/> |clubs6= [[Aryan F.C.|Techno Aryan]] |years7= 20xx-2011 |clubs7= [[Shillong Lajong F.C.]] |years8= }} '''Michael Ochei''' (birthdate unknown; died 17 September 2014 in [[Ballygunge]], [[India]]<ref name="Facebook">[https://www.facebook.com/fmgotelsports/posts/ex-enyimba-fcs-michael-ochei-isdeadnigeria-was-jinxed-in-the-defunct-sekou-toure/892822424080967/ Ex-Enyimba FC's Michael Ochei Is Dead] F.M GOTEL Sports (Facebook.com)</ref>) was a Nigerian footballer. ==Career== ===Nigeria=== Ochei started his career with Nigerian top flight side Enyimba, winning the 2003 CAF Champions League with the club. ===Malta=== Replacing [[Etienne Barbara]] at [[Marsaxlokk F.C.|Marsaxlokk]] over the 2004/05 winter transfer window,<ref>[http://www.independent.com.mt/articles/2005-01-02/sports-others/Marsaxlokk-Bring-over-three-new-foreigners-70512 Marsaxlokk Bring over three new foreigners] The Malta Independent</ref> Ochei was injured on debut,<ref>[https://allafrica.com/stories/200501120090.html Injury Stops Ochei] Daily Champion (Allafrica.com)</ref> but was well enough within two months. However, he picked up a red card and a three-month ban for striking [[Hibernians F.C.|Hibernians]]' defender [[Ryan Mintoff]],<ref>[https://app.timesofmalta.com/articles/view/20050310/football/marsaxlokks-ochei-gets-three-match-ban.96754 Marsaxlokk's Ochei gets three-match ban] Times of Malta</ref> despite apologizing within a few days.<ref>[http://www.independent.com.mt/articles/2005-03-08/sports-others/An-Apology-from-Michael-Ochei-72928 An Apology from Michael Ocher] The Malta Independent</ref> At the end of March, the ''Southseasiders'' decided he was not part of their plans so parted company.<ref>[https://www.timesofmalta.com/articles/view/20050330/football/marsaxlokk-send-ochei-home.94921 Marsaxlokk send Ochei home] Times of Malta</ref> ===India=== Starting out at [[Aryan F.C.|Techno Aryan]], the [[CAF Champions League]] winner stated that the Indian league had money but was still developing.<ref name="interview">[https://web.archive.org/web/20120226004913/http://punchng.com/sports/how-dubious-pastors-almost-ruined-my-career-ochei/ How dubious pastors almost ruined my career — Ochei] Punch Newspapers (Archived)</ref> Staying with [[Shillong Lajong F.C.|Shillong Lajong]] until 2011, the Nigerian spent the next season with [[George Telegraph S.C.|George Telegraph]],<ref>[https://www.sportskeeda.com/sports/indian-football-i-league-transfers-2011-updated-list Indian Football: I-League Transfers 2011, updated list] Sportskeeda</ref> earning promotion to the [[2013 I-League 2nd Division]] and intending secure a place in the [[I-League]].<ref name="interview"/> ==Personal life== He died on 17 September 2014. His death was announced by F.C. Hotel Sports, who gave their commiserations.<ref name="Facebook"/> == References == <!--- See [[Wikipedia:Footnotes]] on how to create references using<ref></ref> tags which will then appear here automatically --> {{Reflist}} [[Category:2014 deaths]] [[Category:Nigerian men's footballers]] [[Category:Men's association football forwards]] [[Category:Marsaxlokk F.C. players]] {{Nigeria-footy-forward-stub}} t3vz82ik4y548w12298k9jallt5w8qg 43719 43718 2026-06-24T11:53:43Z MaziLazi 1556 43719 wikitext text/x-wiki {{short description|Nigerian footballer}} {{Infobox football biography |name= Michael Ochei |fullname= Michael Emeka Ochei |birth_date= |birth_place= [[Nigeria]] |death_date= 17 September 2014 |death_place= [[Ballygunge]], [[India]] |position= [[Forward (association football)|Striker]] |years1= |clubs1= [[Enyimba F.C.]]<ref>[https://www.rsssf.org/tablesa/afcup03.html African Club Competitions 2003] RSSSF</ref><ref name="interview"/> |years2= 2004 |clubs2= [[Heartland F.C.|Nationale]]<ref>[https://allafrica.com/stories/200403260973.html Nationale Swap Ochei for Osim] Vanguard (Nigeria - Allafrica.com)</ref> |years3= 2005 |clubs3= [[Marsaxlokk F.C.]] |goals3= 1 |years4= 2007 |clubs4= [[Akwa United F.C.]]<ref>[https://allafrica.com/stories/200702040237.html Kano Rumbles for Pillars, Ocean Boys] Vanguard (Nigeria - Allafrica.com)</ref> |years5= |clubs5= [[Niger Tornadoes F.C.]]<ref name="interview"/> |clubs6= [[Aryan F.C.|Techno Aryan]] |years7= 20xx-2011 |clubs7= [[Shillong Lajong F.C.]] |years8= }} '''Michael Ochei''' ( ama ẹgba ku ma bi'n; ikwu ọjọ ki ochu ẹla nolu mi ẹgwebie efu ọdọ 2014 yi [[Ballygunge]], [[India]]<ref name="Facebook">[https://www.facebook.com/fmgotelsports/posts/ex-enyimba-fcs-michael-ochei-isdeadnigeria-was-jinxed-in-the-defunct-sekou-toure/892822424080967/ Ex-Enyimba FC's Michael Ochei Is Dead] F.M GOTEL Sports (Facebook.com)</ref>) i chi ẹnẹ Nigeria ki ya ri bọlu kwobi. ==Ukọlọ== ===Nigeria=== Ochei chanẹ ùkọlọ nwu kpaì Enyimba, ọmọ lẹ i ni edu kpama yi 2003 CAF Champions. ===Malta=== I wa koji [[Etienne Barbara]] yi [[Marsaxlokk F.C.|Marsaxlokk]] oji 2004/05 ẹgba kuma bi ope e'la kpai e'ta amibo ku má ribọ,<ref>[http://www.independent.com.mt/articles/2005-01-02/sports-others/Marsaxlokk-Bring-over-three-new-foreigners-70512 Marsaxlokk Bring over three new foreigners] The Malta Independent</ref> ma fu Ochei chagbe ọjọ ejeodudu ki dufu ki r'ichẹ nwu ma ọmama,<ref>[https://allafrica.com/stories/200501120090.html Injury Stops Ochei] Daily Champion (Allafrica.com)</ref> ama ifu ọla nwu nẹ anubi ochu mi eji. Iyaka chi alulẹ, i wa ọtakada eyi ekpìkpa ku ma du nwu ẹnẹ ki ya ri bọlu ki ya kpo tanẹ lẹ mu du nwu ma'nyu ma fu nwu naba kiki ribọlu gbi ochu mi ẹta'n todu ki kobọ [[Ryan Mintoff]],<ref>[https://app.timesofmalta.com/articles/view/20050310/football/marsaxlokks-ochei-gets-three-match-ban.96754 Marsaxlokk's Ochei gets three-match ban] Times of Malta</ref> aludu ki ya gbalu ẹnwu ki che lubi ọjọ gwẹ ki le gwudu.<ref>[http://www.independent.com.mt/articles/2005-03-08/sports-others/An-Apology-from-Michael-Ochei-72928 An Apology from Michael Ocher] The Malta Independent</ref> Aluki ki wu ukpoji ochu ẹta, amìbo ugbo ki ya rọ nwu ma kakìnì ì nwọ d'efù ọna ku ma kp'ibe ma le gẹ'n alu ki dabẹ lẹ i kw'ugbo ma.<ref>[https://www.timesofmalta.com/articles/view/20050330/football/marsaxlokk-send-ochei-home.94921 Marsaxlokk send Ochei home] Times of Malta</ref> ===India=== Chanẹ kwefu wu yi [[Aryan F.C.|Techno Aryan]], amibo ku ma ni edu ago [[CAF Champions League]] amibo uña bọlu yi Indian che nọkọ ama dọmọ na gba dufu ta.<ref name="interview">[https://web.archive.org/web/20120226004913/http://punchng.com/sports/how-dubious-pastors-almost-ruined-my-career-ochei/ How dubious pastors almost ruined my career — Ochei] Punch Newspapers (Archived)</ref> i gwu kpaì [[Shillong Lajong F.C.|Shillong Lajong]] gbo ọdọ 2011, ẹnẹ Nigerian yi che nwọ na dẹ kpaì [[George Telegraph S.C.|George Telegraph]],<ref>[https://www.sportskeeda.com/sports/indian-football-i-league-transfers-2011-updated-list Indian Football: I-League Transfers 2011, updated list] Sportskeeda</ref> wa le nyọgba lo ti to [[2013 I-League 2nd Division]] ma'nyu ad'ibe eneke nu uña yi [[I-League]].<ref name="interview"/> ==Ọlayi nwu == I wa kwu ọjọ ki ochu ẹla nolu mi ẹgwebie efu ọdọ 2014. Alu ki ukwu nwu tejugede chi F.C. Hotel Sports, alu ku ma di ẹdọ dudu ma ka dufu.<ref name="Facebook"/> == Ẹrẹ nwu == <!--- See [[Wikipedia:Footnotes]] on how to create references using<ref></ref> tags which will then appear here automatically --> {{Reflist}} [[Category:2014 deaths]] [[Category:Nigerian men's footballers]] [[Category:Men's association football forwards]] [[Category:Marsaxlokk F.C. players]] {{Nigeria-footy-forward-stub}} 3g5rg4kv0i9xmgfpnox46mx0tbqllfs