User contributions for BriLila

Jump to navigation Jump to search
Search for contributionsExpandCollapse
⧼contribs-top⧽
⧼contribs-date⧽
(newest | oldest) View ( | older 50) (20 | 50 | 100 | 250 | 500)

12 December 2021

  • 00:1800:18, 12 December 2021 diff hist +18,033 N Module:StringCreated page with "--[[ This module is intended to provide access to basic string functions. Most of the functions provided here can be invoked with named parameters, unnamed parameters, or a mixture. If named parameters are used, Mediawiki will automatically remove any leading or trailing whitespace from the parameter. Depending on the intended use, it may be advantageous to either preserve or remove such whitespace. Global options ignore_errors: If set to 'true' or 1, any error c..." current
  • 00:1800:18, 12 December 2021 diff hist +3,295 N Module:RedirectCreated page with "-- This module provides functions for getting the target of a redirect page. local p = {} -- Gets a mw.title object, using pcall to avoid generating script errors if we -- are over the expensive function count limit (among other possible causes). local function getTitle(...) local success, titleObj = pcall(mw.title.new, ...) if success then return titleObj else return nil end end -- Gets the name of a page that a redirect leads to, or nil if it isn't a -- redi..." current
  • 00:1700:17, 12 December 2021 diff hist +3,830 N Module:Submit an edit requestCreated 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
  • 00:1700:17, 12 December 2021 diff hist +1,494 N Module:Effective protection expiryCreated 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
  • 00:1700:17, 12 December 2021 diff hist +3,438 N Module:Effective protection levelCreated 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
  • 00:1600:16, 12 December 2021 diff hist +2,544 N Module:File linkCreated 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
  • 00:1600:16, 12 December 2021 diff hist +46,131 N Module:Protection banner/configCreated 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
  • 00:1600:16, 12 December 2021 diff hist +26,029 N Module:Protection bannerCreated page with "-- This module implements {{pp-meta}} and its daughter templates such as -- {{pp-dispute}}, {{pp-vandalism}} and {{pp-sock}}. -- Initialise necessary modules. require('Module:No globals') 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 m..." current
  • 00:1500:15, 12 December 2021 diff hist +253 N Module:Module wikitextCreated page with "local p = {} p.text = '' function p.main() return p.text end function p._addText(text, preprocessFrame) if preprocessFrame ~= false then text = (preprocessFrame or mw.getCurrentFrame()):preprocess(text) end p.text = p.text .. text end return p" current
  • 00:1500:15, 12 December 2021 diff hist +7,871 N Module:Category handlerCreated page with "-------------------------------------------------------------------------------- -- -- -- CATEGORY HANDLER -- -- -- -- This module implements the {{category handler}} template in Lua, -- -- with a few improvements: all namespaces and all namespace alia..." current
  • 00:1400:14, 12 December 2021 diff hist +6,141 N Module:Message box/configurationCreated page with "-------------------------------------------------------------------------------- -- Message box configuration -- -- -- -- This module contains configuration data for Module:Message box. -- -------------------------------------------------------------------------------- return { ambox = { types = { speedy = { class = 'ambox-spee..." current
  • 00:1400:14, 12 December 2021 diff hist +18,348 N Module:Message boxCreated page with "-- This is a meta-module for producing message box templates, including -- {{mbox}}, {{ambox}}, {{imbox}}, {{tmbox}}, {{ombox}}, {{cmbox}} and {{fmbox}}. -- Load necessary modules. require('Module:No globals') local getArgs local yesno = require('Module:Yesno') -- Get a language object for formatDate and ucfirst. local lang = mw.language.getContentLanguage() -- Define constants local CONFIG_MODULE = 'Module:Message box/configuration' local DEMOSPACES = {talk = 'tmbox'..." current
  • 00:1300:13, 12 December 2021 diff hist +17,605 N Module:Documentation/configCreated 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
  • 00:1300:13, 12 December 2021 diff hist +34,969 N Module:DocumentationCreated 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 ---------------------------------------------------------------------------- -- Helper functions -- -- These are defined as local functions, but are made available in the p -- table for testing purpos..." current
  • 00:1300:13, 12 December 2021 diff hist +182 N Template:DocumentationCreated page with "{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}<noinclude> <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> </noinclude>" current
  • 00:1200:12, 12 December 2021 diff hist +422 N Template:Main otherCreated page with "{{#switch: <!--If no or empty "demospace" parameter then detect namespace--> {{#if:{{{demospace|}}} | {{lc: {{{demospace}}} }} <!--Use lower case "demospace"--> | {{#ifeq:{{NAMESPACE}}|{{ns:0}} | main | other }} }} | main = {{{1|}}} | other | #default = {{{2|}}} }}<noinclude> {{documentation}} <!-- Add categories to the /doc subpage; interwikis go to Wikidata, thank you! --> </noinclude>" current
  • 00:1200:12, 12 December 2021 diff hist +435 N Template:Template otherCreated 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
  • 00:1000:10, 12 December 2021 diff hist −64 Module:Infobox mapframeNo edit summary current
  • 00:0900:09, 12 December 2021 diff hist −184 Module:Infobox mapframeNo edit summary
  • 00:0400:04, 12 December 2021 diff hist +1,018 N Module:If emptyCreated page with "local p = {} function p.main(frame) local args = require('Module:Arguments').getArgs(frame, {wrappers = 'Template:If empty', removeBlanks = false}) -- For backwards compatibility reasons, the first 8 parameters can be unset instead of being blank, -- even though there's really no legitimate use case for this. At some point, this will be removed. local lowestNil = math.huge for i = 8,1,-1 do if args[i] == nil then args[i] = '' lowestNil = i end end for..." current
  • 00:0300:03, 12 December 2021 diff hist +102 N Template:If emptyCreated page with "{{<includeonly>safesubst:</includeonly>#invoke:If empty|main}}<noinclude>{{Documentation}}</noinclude>" current
  • 00:0300:03, 12 December 2021 diff hist +745 N Module:YesnoCreated 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
  • 00:0100:01, 12 December 2021 diff hist +329 N Module:If preview/styles.cssCreated page with "→‎{{pp|small=yes}}: .preview-warning { font-style: italic; →‎@noflip: padding-left: 1.6em; margin-bottom: 0.5em; color: red; } →‎The templatestyles element inserts a link element before hatnotes. * TODO: Remove link if/when WMF resolves T200206: .preview-warning + link + .preview-warning { margin-top: -0.5em; }" current
  • 00:0000:00, 12 December 2021 diff hist +842 N Module:If preview/configurationCreated 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
  • 00:0000:00, 12 December 2021 diff hist +1,453 N Module:If previewCreated page with "local p = {} 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) if cfg.preview then return frame.args[1] or '' else return frame.args[2] or '' end end --[[ pmain This function returns either the first argument or second argument passed to this module's parent (i.e. template usi..." current
  • 00:0000:00, 12 December 2021 diff hist +3,312 N Module:Check for unknown parametersCreated 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 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 the original wikitext..." current

11 December 2021

  • 23:5923:59, 11 December 2021 diff hist +305 N Module:Coordinates/styles.cssCreated page with "→‎{{pp-template}}: →‎Geographical coordinates defaults. The classes "geo", "longitude", and "latitude" are used by the [[Geo microformat]].: .geo-default, .geo-dms, .geo-dec { display: inline; } .geo-nondefault, .geo-multi-punct { display: none; } .longitude, .latitude { white-space: nowrap; }" current
  • 23:5823:58, 11 December 2021 diff hist +14,646 N Module:MathCreated page with "--This module provides a number of basic mathematical operations. local yesno, getArgs -- lazily initialized local p = {} -- Holds functions to be returned from #invoke, and functions to make available to other Lua modules. local wrap = {} -- Holds wrapper functions that process arguments from #invoke. These act as intemediary between functions meant for #invoke and functions meant for Lua. --Helper functions used to avoid redundant code. local function..." current
  • 23:5823:58, 11 December 2021 diff hist +23,774 N Module:CoordinatesCreated page with "--[[ This module is intended to replace the functionality of {{Coord}} and related templates. It provides several methods, including {{#invoke:Coordinates | coord }} : General function formatting and displaying coordinate values. {{#invoke:Coordinates | dec2dms }} : Simple function for converting decimal degree values to DMS format. {{#invoke:Coordinates | dms2dec }} : Simple function for converting DMS format to decimal degree format. {{#invoke:Coordinates | link }..." current
  • 23:5723:57, 11 December 2021 diff hist +720 N Module:Location map/styles.cssCreated page with "→‎{{pp|small=yes}}: .locmap .od { position: absolute; } .locmap .id { position: absolute; line-height: 0; } .locmap .l0 { font-size: 0; position: absolute; } .locmap .pv { line-height: 110%; position: absolute; text-align: center; } .locmap .pl { line-height: 110%; position: absolute; top: -0.75em; text-align: right; } .locmap .pr { line-height: 110%; position: absolute; top: -0.75em; text-align: left; } .locmap .pv > div { display: inline; pad..." current
  • 23:5723:57, 11 December 2021 diff hist +307 N Module:No globalsCreated page with "local mt = getmetatable(_G) or {} function mt.__index (t, k) if k ~= 'arg' then error('Tried to read nil global ' .. tostring(k), 2) end return nil end function mt.__newindex(t, k, v) if k ~= 'arg' then error('Tried to write global ' .. tostring(k), 2) end rawset(t, k, v) end setmetatable(_G, mt)" current
  • 23:5723:57, 11 December 2021 diff hist +21,590 N Module:Location mapCreated page with "require('Module:No globals') local p = {} local getArgs = require('Module:Arguments').getArgs local function round(n, decimals) local pow = 10^(decimals or 0) return math.floor(n * pow + 0.5) / pow end function p.getMapParams(map, frame) if not map then error('The name of the location map definition to use must be specified', 2) end local moduletitle = mw.title.new('Module:Location map/data/' .. map) if not moduletitle then error(string.format('%q is not a..." current
  • 23:5523:55, 11 December 2021 diff hist +1,174 N Module:Navbar/styles.cssCreated 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
  • 23:5423:54, 11 December 2021 diff hist +867 N Module:Navbar/configurationCreated page with "return { ['templatestyles'] = 'Module:Navbar/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 ind..." current
  • 23:0223:02, 11 December 2021 diff hist +106 Template:InfoboxNo edit summary current
  • 23:0123:01, 11 December 2021 diff hist +29,420 N Module:TranscluderCreated page with "local p = {} -- Helper function to test for truthy and falsy values -- @todo Somehow internationalize it local function truthy(value) if not value or value == '' or value == 0 or value == '0' or value == 'false' or value == 'no' or value == 'non' then return false end return true end -- Helper function to match from a list of regular expressions -- Like so: match pre..list[1]..post or pre..list[2]..post or ... local function matchAny(text, pre, list, post, init)..." current
  • 23:0023:00, 11 December 2021 diff hist +41,682 N Module:MapframeCreated page with "-- Note: Originally written on English Wikipedia at https://en.wikipedia.org/wiki/Module:Mapframe ------------------------------------------------------------------------------ ##### Localisation (L10n) settings ##### Replace values in quotes ("") with localised values ------------------------------------------------------------------------------ local L10n = {} -- Modue dependencies local transcluder -- local copy of https://www.mediawiki.org/wiki/Module:Transcl..." current
  • 22:5822:58, 11 December 2021 diff hist +13,635 N Module:Infobox mapframeCreated page with "local mf = require('Module:Mapframe') local getArgs = require('Module:Arguments').getArgs local yesno = require('Module:Yesno') local infoboxImage = require('Module:InfoboxImage').InfoboxImage -- Defaults local DEFAULT_FRAME_WIDTH = "270" local DEFAULT_FRAME_HEIGHT = "200" local DEFAULT_ZOOM = 10 local DEFAULT_GEOMASK_STROKE_WIDTH = "1" local DEFAULT_GEOMASK_STROKE_COLOR = "#777777" local DEFAULT_GEOMASK_FILL = "#888888" local DEFAULT_GEOMASK_FILL_OPACITY = "0.5" local..."
  • 22:5722:57, 11 December 2021 diff hist +130 N Template:Infobox mapframeCreated page with "<includeonly>{{#invoke:Infobox mapframe|main}}</includeonly><noinclude>{{Infobox mapframe|id=Q100}} {{Documentation}} </noinclude>" current
  • 22:5622:56, 11 December 2021 diff hist +10,045 N Module:InfoboxImageCreated page with "-- Inputs: -- image - Can either be a bare filename (with or without the File:/Image: prefix) or a fully formatted image link -- page - page to display for multipage images (DjVu) -- size - size to display the image -- maxsize - maximum size for image -- sizedefault - default size to display the image if size param is blank -- alt - alt text for image -- title - title text for image -- border - set to yes if border -- center - set to yes, if th..." current
  • 22:5222:52, 11 December 2021 diff hist +16,863 N Template:Infobox buildingCreated page with "{{Infobox | child = {{#ifeq:{{{embed|}}}|yes|yes}} | bodyclass = vcard | aboveclass = fn org | headerstyle = {{#ifeq:{{{embed|}}}|yes||background-color:#ededed}} | title = {{#ifeq:{{{embed|}}}|yes|<div style="font-weight:bold; text-align:center;">Building details</div>}} | above = {{{building_name|{{{hotel_name|{{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}}}}}}} | subheader = {{#if:{{{native_building_name|{{{native_name|}}}}}}|<div class="nickna..." current
  • 22:4922:49, 11 December 2021 diff hist +651 N Module:Infobox/styles.cssCreated 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
  • 22:4922:49, 11 December 2021 diff hist +234 N Template:InfoboxCreated page with "{{#invoke:Infobox|infobox}}<includeonly>{{template other|{{#ifeq:{{PAGENAME}}|Infobox||{{#ifeq:{{str left|{{SUBPAGENAME}}|7}}|Infobox|{{remove first word|{{SUBPAGENAME}}}}}}}}|}}</includeonly><noinclude>"
  • 22:4422:44, 11 December 2021 diff hist +18,846 N Module:InfoboxCreated 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 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..." current
  • 22:4422:44, 11 December 2021 diff hist +5,088 N Module:NavbarCreated 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
  • 22:4322:43, 11 December 2021 diff hist +14,953 N Module:TableToolsCreated 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
  • 22:4222:42, 11 December 2021 diff hist +10,054 N Module:ArgumentsCreated 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

10 December 2021

(newest | oldest) View ( | older 50) (20 | 50 | 100 | 250 | 500)