User contributions for Nico
4 August 2025
- 18:1218:12, 4 August 2025 diff hist +604 N Template:Main other Created page with "{{safesubst:<noinclude/>#switch: <noinclude><!-- If no or empty "demospace" parameter then detect namespace --></noinclude> {{safesubst:<noinclude/>#if:{{{demospace|}}} | {{safesubst:<noinclude/>lc: {{{demospace}}} }} <noinclude><!-- Use lower case "demospace" --></noinclude> | {{safesubst:<noinclude/>#ifeq:{{safesubst:<noinclude/>NAMESPACE}}|{{safesubst:<noinclude/>ns:0}} | main | other }} }} | main = {{{1|}}} | other | #default = {{{2|}}}..." current
- 18:1118:11, 4 August 2025 diff hist +25,457 N Template:United States presidential election imagemap Created page with "<onlyinclude><includeonly> {{#tag:imagemap|File:{{{image|File:ElectoralCollege2020.svg}}}{{!}}348px{{!}}center{{!}} poly 28 148 51 155 71 161 92 166 76 231 148 338 147 341 150 347 151 351 153 354 152 356 149 358 146 360 145 363 144 366 144 368 139 373 139 381 142 384 140 386 123 386 92 381 93 367 82 351 76 351 74 357 76 359 76 360 74 360 73 359 71 367 72 370 73 371 71 371 70 370 70 366 71 367 73 359 71 356 72 355 74 357 76 351 77 349 76 344 73 343 70 343 69 342 66 341 6..." current
- 18:1018:10, 4 August 2025 diff hist +198 N Template:2024 United States presidential election imagemap Created page with "{{United States presidential election imagemap|image=ElectoralCollege2024.svg|year=2024}} <noinclude>{{documentation|Template:United States presidential election imagemap/transcludedoc}}</noinclude>"
- 18:0918:09, 4 August 2025 diff hist +1,520 N Module:Ordinal Created page with "--This template will add the appropriate ordinal suffix to a given integer. Please do not modify this code without applying the changes first at Module:Ordinal/sandbox and testing. local p = {} local yesno = require('Module:Yesno') -- boolean value interpretation --[[ This function converts an integer value into a numeral followed by ordinal indicator. The output string might contain HTML tags. Usage: {{#invoke:Ordinal|ordinal|1=|2=|sup=}} {{#invok..." current
- 18:0818:08, 4 August 2025 diff hist +92 N Template:Ordinal Created page with "{{SAFESUBST:<noinclude />#invoke:Ordinal|ordinal}}<noinclude> {{documentation}} </noinclude>" current
- 18:0618:06, 4 August 2025 diff hist +6,546 N Module:Message box/configuration Created page with "-------------------------------------------------------------------------------- -- Message box configuration -- -- -- -- This module contains configuration data for Module:Message box. -- -------------------------------------------------------------------------------- return { ambox = { types = { speedy = { class = 'ambox-spee..." current
- 18:0618:06, 4 August 2025 diff hist +18,961 N Module:Message box Created page with "require('strict') local getArgs local yesno = require('Module:Yesno') local lang = mw.language.getContentLanguage() local CONFIG_MODULE = 'Module:Message box/configuration' local DEMOSPACES = {talk = 'tmbox', image = 'imbox', file = 'imbox', category = 'cmbox', article = 'ambox', main = 'ambox'} -------------------------------------------------------------------------------- -- Helper functions ---------------------------------------------------------------------------..." current
- 18:0518:05, 4 August 2025 diff hist +153 N Template:Mbox Created page with "{{#invoke:Message box|mbox}}<noinclude> {{documentation}} <!-- Add categories to the /doc subpage; interwikis go to Wikidata, thank you! --> </noinclude>" current
- 18:0418:04, 4 August 2025 diff hist +1,697 N Template:Documentation subpage Created page with "<includeonly><!-- -->{{#ifeq:{{lc:{{SUBPAGENAME}}}} |{{{override|doc}}} | <!--(this template has been transcluded on a /doc or /{{{override}}} page)--> </includeonly><!-- -->{{#ifeq:{{{doc-notice|show}}} |show | {{Mbox | type = notice | style = margin-bottom:1.0em; | image = 40px|alt=|link= | text = {{strong|This is a documentation..." current
- 18:0318:03, 4 August 2025 diff hist +2,465 N Template:US state abbreviation to name/doc Created page with "{{Documentation subpage}} {{High-use}} {{tsh|US State Abbrev }} Input a state abbreviation, output is the full state name. If you put in a state name, it will output the same name back as the default! ==Examples== * <code><nowiki>{{US State Abbrev | NY }}</nowiki></code> returns <code>{{US State Abbrev|NY}}</code> * <code><nowiki>{{US State Abbrev | CA }}</nowiki></code> returns <code>{{US State Abbrev|CA}}</code> *..." current
- 18:0218:02, 4 August 2025 diff hist +1,356 N Template:US state abbreviation to name Created page with "{{SAFESUBST:<noinclude/>#switch: {{SAFESUBST:<noinclude/>uc:{{{1}}}}} | AL = Alabama | AK = Alaska | AZ = Arizona | AR = Arkansas | CA = California | CO = Colorado | CT = Connecticut | DE = Delaware | DC = District of Columbia | FL = Florida | GA = Georgia | HI = Hawaii | ID = Idaho | IL = Illinois | IN = Indiana | IA = Iowa | KS = Kansas | KY = Kentucky | LA = Louisiana | ME = Maine | MD = Maryland | MA = Massachusetts | MI = Michigan | MN = Minn..." current
- 18:0218:02, 4 August 2025 diff hist +99 N Template:US State Abbrev Redirected page to Template:US state abbreviation to name current Tag: New redirect
- 17:5917:59, 4 August 2025 diff hist +1,786 N Module:Sort Created page with "local getArgs = require('Module:Arguments').getArgs local p = {} local demo = function(s) return '<' .. string.sub(s,2,-8) .. '</span>' end -- Protect against sortkey nesting. -- Example: {{sort|{{dts|2013|07|07}}|{{dts|1990|12|01}}}} local encode = function(s) return (string.find(s, "sortkey") or string.find(s, "data-sort-value")) and "" or mw.text.encode(s) end function p._name(args) local sortkey = encode( ((args[4] or args.sort or '') ~= '') and (args[..." current
- 17:5917:59, 4 August 2025 diff hist +95 N Template:Sort Created page with "{{#invoke:sort|sort<noinclude>|demo=yes</noinclude>}}<noinclude> {{documentation}} </noinclude>" current
- 17:5917:59, 4 August 2025 diff hist +27 N Template:Sortkey Redirected page to Template:Sort current Tag: New redirect
- 17:5817:58, 4 August 2025 diff hist +1,516 N Module:Sortkey Created page with "local getArgs = require('Module:Arguments').getArgs local p = {} function p._encode(sortkey) -- Protect against sortkey nesting. -- Example: {{sort|{{dts|2013|07|07}}|{{dts|1990|12|01}}}} if string.find(sortkey, "sortkey") or string.find(sortkey, "data-sort-value") then return ""; end return mw.text.encode(sortkey) end function p.encode(frame) local args = getArgs(frame); return p._encode(args[1] or "") end local function valid_number(num) -- Return true..." current
- 17:5717:57, 4 August 2025 diff hist +2,620 N Template:U.S. House of Representatives abbreviation Created page with "<span data-sort-value="{{#invoke:sortkey|encode|{{US State Abbrev|{{{1}}}}}{{padleft:{{{2}}}|2}} !}}">{{US State Abbrev|{{{1}}}}}{{#switch: {{US State Abbrev|{{{1}}}}} | Northern Mariana Islands | United States Virgin Islands | U.S. Virgin Islands = ' | 's}} {{#ifeq:{{{2}}}|AL|at-large congressional {{#switch: {{US State Abbrev|{{{1}}}}} | Maryland | Massachusetts | New York | North Carolina | Oklahoma | South Caroli..." current
- 17:5717:57, 4 August 2025 diff hist +112 N Template:Ushr Redirected page to Template:U.S. House of Representatives abbreviation current Tag: New redirect
- 17:5617:56, 4 August 2025 diff hist +46 N Template:!) Created page with "|}<noinclude> {{Documentation}} </noinclude>" current
- 17:5517:55, 4 August 2025 diff hist +89 N Template:(! Created page with "<includeonly>{|</includeonly><noinclude><nowiki>{|</nowiki>{{Documentation}} </noinclude>" current
- 17:5417:54, 4 August 2025 diff hist +1,789 N Template:Arguments Created page with "{{ sidebar | name = Arguments | title = Wikipedia discussions | class = hlist | heading1 = Arguments to avoid in | content1 = * Deletion discussions * Deletion reviews * Adminship discussions * Wikipedia:Arguments to avoid in source reliability discussions|Source reliability..." current
- 17:5317:53, 4 August 2025 diff hist +234 N Module:If empty Created page with "local p = {} function p.main(frame) local args = require('Module:Arguments').getArgs(frame, {wrappers = 'Template:If empty', removeBlanks = false}) for k,v in ipairs(args) do if v ~= '' then return v end end end return p" current
- 17:5217:52, 4 August 2025 diff hist +79 N Template:Infobox election/shortname Created page with "{{#invoke:Infobox election|shortname}}<noinclude> {{documentation}}</noinclude>" current
- 17:5117:51, 4 August 2025 diff hist +125 N Template:Infobox election/row Created page with "<noinclude>{| </noinclude>{{#invoke:Infobox election|row}}<noinclude> |}</noinclude><noinclude> {{Documentation}}</noinclude>" current
- 17:4717:47, 4 August 2025 diff hist +26,590 N Module:Protection banner Created page with "-- This module implements {{pp-meta}} and its daughter templates such as -- {{pp-dispute}}, {{pp-vandalism}} and {{pp-sock}}. -- Initialise necessary modules. require('strict') local makeFileLink = require('Module:File link')._main local effectiveProtectionLevel = require('Module:Effective protection level')._main local effectiveProtectionExpiry = require('Module:Effective protection expiry')._main local yesno = require('Module:Yesno') -- Lazily initialise modules and..." current
- 17:4617:46, 4 August 2025 diff hist +178 N Template:Pp-template Created page with "<includeonly>{{#invoke:Protection banner|main}}</includeonly><noinclude> {{documentation}} <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> </noinclude>" current
- 17:4317:43, 4 August 2025 diff hist +1,129 N Module:Error Created page with "-- This module implements {{error}}. local p = {} local function _error(args) local tag = mw.ustring.lower(tostring(args.tag)) -- Work out what html tag we should use. if not (tag == 'p' or tag == 'span' or tag == 'div') then tag = 'strong' end -- Generate the html. return tostring(mw.html.create(tag) :addClass('error') :wikitext(tostring(args.message or args[1] or error('no message specified', 2))) ) end function..." current
- 17:4317:43, 4 August 2025 diff hist +1,446 N Module:MultiReplace Created page with "local p = {} local function MultiReplace(args) local input = args[1] or "{{{1}}}" local plain = args.plain == "yes" local i = 1 local changeList = {} while args[i * 2] do local change = {pattern = args[i * 2], repl = args[i * 2 + 1]} if not change.repl then return require('Module:Error').error{ 'MultiReplace: Unpaired argument: <code>' .. (i * 2) .. ' = ' .. mw.text.nowiki(change.pattern) .. '</code>' } end changeList[i] = change i = i + 1 end..." current
- 17:4217:42, 4 August 2025 diff hist +171 N Template:Delink question hyphen-minus Created page with "{{{{{|safesubst:}}}#invoke:MultiReplace|main|{{{1|}}}|%[%[ *([%?-]) *%]%]|%1|%[%[ *[%?-] *{{{{{|safesubst:}}}!}} *(.-) *%]%]|%1}}<noinclude> {{documentation}} </noinclude>" current
- 17:4017:40, 4 August 2025 diff hist +435 N Template:Template other Created page with "{{#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>" current
- 17:3617:36, 4 August 2025 diff hist +21,192 N Module:Infobox3cols Created page with "local check_for_unknown_parameters = require("Module:Check for unknown parameters")._check local p = {} local args = {} local origArgs = {} local root 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'..." current
- 17:3417:34, 4 August 2025 diff hist +340 N Template:Infobox Created page with "{{#invoke:Infobox|infobox}}<includeonly>{{template other|{{#ifeq:{{PAGENAME}}|Infobox||{{#ifeq:{{str left|{{SUBPAGENAME}}|7}}|Infobox|{{remove first word|{{SUBPAGENAME}}}}}}}}|}}</includeonly><noinclude> {{documentation}} <!-- Categories go in the /doc subpage, and interwikis go in Wikidata. --> </noinclude>" current
- 17:3317:33, 4 August 2025 diff hist +124 N Template:Decrease Created page with "{{{size|11px}}}|alt={{{1|Decrease}}}|link=|{{{1|Decrease}}}<noinclude> {{Documentation}} </noinclude>" current
- 17:3217:32, 4 August 2025 diff hist +124 N Template:Increase Created page with "{{{size|11px}}}|alt={{{1|Increase}}}|link=|{{{1|Increase}}}<noinclude> {{documentation}} </noinclude>" current
- 17:3117:31, 4 August 2025 diff hist +1,538 N Template:Succession links Created page with "{{#if:{{{above|}}} |<div class="{{{aboveclass|}}}" style="width:100%; text-align:center; {{{abovestyle|}}}">{{{above}}}</div> }}{{#if:{{{center|}}} |<!-- then --><table style="width:100%; margin:1px; display:inline-table;"><tr> <td style="text-align:left; vertical-align:{{{vertical-align|middle}}}; padding:0 0.5em 0 0;{{#if:{{{wide|}}}|width:45%;}}{{{leftstyle|}}}" class="noprint">{{#if:{{{left|}}}|{{#if:{{{noarrows|}}}||← }}{{Delink question hyphen-minus|..." current
- 17:3017:30, 4 August 2025 diff hist +73,970 N Module:Political party/D Created page with "-- Constant data used by Module:Political party local alternate = { ["Direct Democracy New Zealand"] = "Direct Democracy Party of New Zealand", ["DAB"] = "Democratic Alliance for the Betterment and Progress of Hong Kong", ["DABHK"] = "Democratic Alliance for the Betterment and Progress of Hong Kong", ["Delaware Democratic Party"] = "Democratic Party (United States)", ["Demócrata Party"] = "Democrata Party", ["Democratic Agrarian Party of Moldova"] = "Agrarian..."
- 17:3017:30, 4 August 2025 diff hist +77,104 N Module:Political party/R Created page with "-- Constant data used by Module:Political party local alternate = { ["Radical and Radical-Socialist Party"] = "Radical Party (France)", ["Radical Democracy Party (Chile)"] = "Radical Democracy (Chile)", ["Radical List"] = "Liberal League (Luxembourg)", ["Radical Party (Italy, 1877)"] = "Italian Radical Party", ["Radical Party (UK)"] = "Radicals (UK)", ["Radical Party (Ukraine)"] = "Radical Party of Oleh Liashko", ["Radical Party (Chile)"] = "Radical Party of..." current
- 17:2517:25, 4 August 2025 diff hist +1,092 N Module:Exponential search Created page with "-- This module provides a generic exponential search algorithm. requirestrict 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, low..." current
- 17:2517:25, 4 August 2025 diff hist +16,577 N Module:TableTools Created page with "------------------------------------------------------------------------------------ -- 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...." current
- 17:2417:24, 4 August 2025 diff hist +915 N Module:Navbar/configuration Created page with "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 lis..." current
- 17:2417:24, 4 August 2025 diff hist +1,105 N Module:Navbar/styles.css Created page with "→{{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, .nav..." current
- 17:2317:23, 4 August 2025 diff hist +5,296 N Module:Navbar Created page with "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..." current
- 17:2317:23, 4 August 2025 diff hist +218 N Template:Plainlist/styles.css Created page with "→{{pp-template|small=yes}}: .plainlist ol, .plainlist ul { line-height: inherit; list-style: none; margin: 0; padding: 0; →Reset Minerva default: } .plainlist ol li, .plainlist ul li { margin-bottom: 0; }" current
- 17:2217:22, 4 August 2025 diff hist +2,922 N Template:Hlist/styles.css Created page with "→{{pp-protected|reason=match parent|small=yes}}: →* hlist styles are defined in core and Minerva and differ in Minerva. The * current definitions here (2023-01-01) are sufficient to override Minerva * without use of the hlist-separated class. The most problematic styles were * related to margin, padding, and the bullet. Check files listed at * [[MediaWiki talk:Common.css/to do#hlist-separated]]: /* * TODO: When the majority of readership supports it (or s..." current
- 17:2117:21, 4 August 2025 diff hist +8,913 N Module:Italic title Created page with "-- 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 ----------------..." current
- 17:2017:20, 4 August 2025 diff hist +2,112 N Module:Infobox/styles.css Created page with "→{{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: →* 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; borde..." current
- 17:1917:19, 4 August 2025 diff hist +745 N Module:Yesno Created page with "-- 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 =..." current
- 17:1817:18, 4 August 2025 diff hist +842 N Module:If preview/configuration Created page with "--We perform the actual check for whether this is a preview here since preprocessing is relatively expensive. local frame = mw.getCurrentFrame() local function is_preview() local revision_id = frame:preprocess('{{REVISIONID}}') -- {{REVISIONID}} is usually the empty string when previewed. -- I don't know why we're checking for nil but hey, maybe someday things -- would have broken return revision_id == nil or revision_id == '' end local function templatestyl..." current
- 17:1817:18, 4 August 2025 diff hist +1,973 N Module:If preview Created page with "local p = {} local getArgs = require("Module:Arguments").getArgs local yn = require("Module:Yesno") local cfg = mw.loadData('Module:If preview/configuration') --main This function returns either the first argument or second argument passed to this module, depending on whether the page is being previewed. function p.main(frame) local args = getArgs(frame) if cfg.preview then return args[1] or '' else return args[2] or '' end end --[[ pmain This function..." current
- 17:1817:18, 4 August 2025 diff hist +3,339 N Module:Check for unknown parameters Created page with "-- This module may be used to compare the arguments passed to the parent -- with a list of arguments, returning a specified result if an argument is -- not on the list require ('strict'); local p = {} local function trim(s) return s:match('^%s*(.-)%s*$') end local function isnotempty(s) return s and s:match('%S') end local function clean(text) -- Return text cleaned for display and truncated if too long. -- Strip markers are replaced with dummy text representing..." current