User contributions for Mwa
23 January 2025
- 17:4917:49, 23 January 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:4817:48, 23 January 2025 diff hist +1,089 N Module:Documentation/styles.css Created page with "→{{pp|small=yes}}: .documentation, .documentation-metadata { border: 1px solid #a2a9b1; background-color: #ecfcf4; clear: both; } .documentation { margin: 1em 0 0 0; padding: 1em; } .documentation-metadata { margin: 0.2em 0; →same margin left-right as .documentation: font-style: italic; padding: 0.4em 1em; →same padding left-right as .documentation: } .documentation-startbox { padding-bottom: 3px; border-bottom: 1px solid #aaa; margin-bott..." current
- 17:4617:46, 23 January 2025 diff hist +17,747 N Module:Documentation/config Created page with "---------------------------------------------------------------------------------------------------- -- -- Configuration for Module:Documentation -- -- Here you can set the values of the parameters and messages used in Module:Documentation to -- localise it to your wiki and your language. Unless specified otherwise, values given here -- should be string values. ---------------------------------------------------------------------------------..." current
- 17:4517:45, 23 January 2025 diff hist +151 N Template:Documentation Created page with "{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}<noinclude> <!-- Add categories to the /doc subpage --> </noinclude>" current
- 17:4517:45, 23 January 2025 diff hist +35,082 N Module:Documentation Created page with "-- This module implements {{documentation}}. -- Get required modules. local getArgs = require('Module:Arguments').getArgs -- Get the config table. local cfg = mw.loadData('Module:Documentation/config') local p = {} -- Often-used functions. local ugsub = mw.ustring.gsub local format = mw.ustring.format ---------------------------------------------------------------------------- -- Helper functions -- -- These are defined as local functions, but are made available in..." current
- 17:4117:41, 23 January 2025 diff hist +46,537 N Module:Protection banner/config Created page with "-- This module provides configuration data for Module:Protection banner. return { -------------------------------------------------------------------------------- -- -- BANNER DATA -- -------------------------------------------------------------------------------- --[[ -- Banner data consists of six fields: -- * text - the main protection text that appears at the top of protection -- banners. -- * explanation - the text that appear..." current
- 17:4117:41, 23 January 2025 diff hist +2,544 N Module:File link Created page with "-- This module provides a library for formatting file wikilinks. local yesno = require('Module:Yesno') local checkType = require('libraryUtil').checkType local p = {} function p._main(args) checkType('_main', 1, args, 'table') -- This is basically libraryUtil.checkTypeForNamedArg, but we are rolling our -- own function to get the right error level. local function checkArg(key, val, level) if type(val) ~= 'string' then error(string.format( "type error in..." current
- 17:4117:41, 23 January 2025 diff hist +3,581 N Module:Effective protection level Created page with "local p = {} -- Returns the permission required to perform a given action on a given title. -- If no title is specified, the title of the page being displayed is used. function p._main(action, pagename) local title if type(pagename) == 'table' and pagename.prefixedText then title = pagename elseif pagename then title = mw.title.new(pagename) else title = mw.title.getCurrentTitle() end pagename = title.prefixedText if action == 'autoreview' then local leve..." current
- 17:4017:40, 23 January 2025 diff hist +1,494 N Module:Effective protection expiry Created page with "local p = {} -- Returns the expiry of a restriction of an action on a given title, or unknown if it cannot be known. -- If no title is specified, the title of the page being displayed is used. function p._main(action, pagename) local title if type(pagename) == 'table' and pagename.prefixedText then title = pagename elseif pagename then title = mw.title.new(pagename) else title = mw.title.getCurrentTitle() end pagename = title.prefixedText if action == 'auto..." current
- 17:4017:40, 23 January 2025 diff hist +2,163 N Module:Message box/ambox.css Created page with "→{{pp|small=y}}: .ambox { border: 1px solid #a2a9b1; →@noflip: border-left: 10px solid #36c; →Default "notice" blue: background-color: #fbfbfb; box-sizing: border-box; } →Single border between stacked boxes. Take into account base templatestyles, * user styles, and Template:Dated maintenance category. * remove link selector when T200206 is fixed: .ambox + link + .ambox, .ambox + link + style + .ambox, .ambox + link + link + .ambox, /* TODO: rais..." current
- 17:3917:39, 23 January 2025 diff hist +2,692 N Module:Message box/cmbox.css Created page with "→{{pp|small=y}}: .cmbox { margin: 3px 0; border-collapse: collapse; border: 1px solid #a2a9b1; background-color: #dfe8ff; →Default "notice" blue: box-sizing: border-box; →necessary when embedded in other templates like [[:Category:Pending_AfC_submissions]]: color: var( --color-base ); } .cmbox-speedy { border: 4px solid #b32424; →Red: background-color: #ffdbdb; →Pink: } .cmbox-delete { background-color: #ffdbdb; →Pink: ..." current
- 17:3917:39, 23 January 2025 diff hist +1,084 N Module:Message box/fmbox.css Created page with "→{{pp|small=y}}: .fmbox { clear: both; margin: 0.2em 0; width: 100%; border: 1px solid #a2a9b1; background-color: var(--background-color-interactive-subtle, #f8f9fa); box-sizing: border-box; color: var(--color-base, #202122); } .fmbox-warning { border: 1px solid #bb7070; →Dark pink: background-color: #ffdbdb; →Pink: } .fmbox-editnotice { background-color: transparent; } .fmbox .mbox-text { border: none; →@noflip: padding: 0.25em..." current
- 17:3917:39, 23 January 2025 diff hist +1,842 N Module:Message box/imbox.css Created page with "→{{pp|small=y}}: .imbox { margin: 4px 0; border-collapse: collapse; border: 3px solid #36c; →Default "notice" blue: background-color: var(--background-color-interactive-subtle, #f8f9fa); box-sizing: border-box; } →For imboxes inside imbox-text cells.: .imbox .mbox-text .imbox { margin: 0 -0.5em; →0.9 - 0.5 = 0.4em left/right.: →TODO: Still needed?: display: block; →Fix for webkit to force 100% width.: } .imbox-speedy { border: 3px..." current
- 17:3817:38, 23 January 2025 diff hist +1,852 N Module:Message box/ombox.css Created page with "→{{pp|small=y}}: .ombox { margin: 4px 0; border-collapse: collapse; border: 1px solid #a2a9b1; →Default "notice" gray: background-color: var(--background-color-neutral-subtle, #f8f9fa); box-sizing: border-box; color: var(--color-base, #202122); } →For the "small=yes" option.: .ombox.mbox-small { font-size: 88%; line-height: 1.25em; } .ombox-speedy { border: 2px solid #b32424; →Red: background-color: #fee7e6; →Pink: } .ombox-de..." current
- 17:3817:38, 23 January 2025 diff hist +1,974 N Module:Message box/tmbox.css Created page with "→{{pp|small=y}}: .tmbox { margin: 4px 0; border-collapse: collapse; border: 1px solid #c0c090; →Default "notice" gray-brown: background-color: #f8eaba; box-sizing: border-box; } →For the "small=yes" option.: .tmbox.mbox-small { font-size: 88%; line-height: 1.25em; } .tmbox-speedy { border: 2px solid #b32424; →Red: background-color: #fee7e6; →Pink: } .tmbox-delete { border: 2px solid #b32424; →Red: } .tmbox-content { bord..." current
- 17:3817:38, 23 January 2025 diff hist +18,901 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
- 17:3717:37, 23 January 2025 diff hist +3,825 N Module:Submit an edit request Created page with "-- This module implements {{Submit an edit request}}. local CONFIG_MODULE = 'Module:Submit an edit request/config' -- Load necessary modules local mRedirect = require('Module:Redirect') local cfg = mw.loadData(CONFIG_MODULE) local effectiveProtectionLevel = require('Module:Effective protection level')._main local escape = require("Module:String")._escapePattern local lang = mw.language.getContentLanguage() local p = {} local validLevels = { semi = 'semi', extended..." current
- 17:3717:37, 23 January 2025 diff hist +26,581 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:3617:36, 23 January 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:3617:36, 23 January 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:3517:35, 23 January 2025 diff hist +280 N Template:Plainlist Created page with "<templatestyles src="Plainlist/styles.css"/><div class="plainlist {{{class|}}}" {{#if:{{{style|}}}{{{indent|}}}|style="{{#if:{{{indent|}}}|margin-left: {{#expr:{{{indent}}}*1.6}}em;}} {{{style|}}}"}}>{{#if:{{{1|}}}| {{{1}}} </div>}}<noinclude></div> {{documentation}} </noinclude>" current
- 17:3017:30, 23 January 2025 diff hist +5,643 N Module:List Created page with "local libUtil = require('libraryUtil') local checkType = libUtil.checkType local mTableTools = require('Module:TableTools') local p = {} local listTypes = { ['bulleted'] = true, ['unbulleted'] = true, ['horizontal'] = true, ['ordered'] = true, ['horizontal_ordered'] = true } function p.makeListData(listType, args) -- Constructs a data table to be passed to p.renderList. local data = {} -- Classes and TemplateStyles data.classes = {} data.templatestyles = ''..." current
- 17:3017:30, 23 January 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:2917:29, 23 January 2025 diff hist +181 N Template:Hlist Created page with "{{<includeonly>safesubst:</includeonly>#invoke:list|horizontal}}<noinclude> {{documentation}} <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> </noinclude>" current
- 17:2617:26, 23 January 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:2617:26, 23 January 2025 diff hist +10,054 N Module:Arguments Created page with "-- 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'..." current
- 17:2617:26, 23 January 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, 23 January 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:2517:25, 23 January 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:2417:24, 23 January 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:2417:24, 23 January 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:2117:21, 23 January 2025 diff hist +1,758 N Module:Infobox/styles.css Created page with ".infobox-subbox { padding: 0; border: none; margin: -3px; width: auto; min-width: 100%; font-size: 100%; clear: none; float: none; background-color: transparent; } .infobox-3cols-child { margin: auto; } .infobox .navbar { font-size: 100%; } →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; /* swi..." current
- 17:1517:15, 23 January 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:1317:13, 23 January 2025 diff hist +20,533 N Module:Infobox Created page with "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 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'..." current
- 17:0617:06, 23 January 2025 diff hist 0 m Template:Infobox 218 revisions imported current