User contributions for SnpoSuwan

A user with 3,601 edits. Account created on 26 August 2023.
Search for contributionsExpandCollapse
⧼contribs-top⧽
⧼contribs-date⧽
(newest | oldest) View ( | ) (20 | 50 | 100 | 250 | 500)

6 June 2024

5 June 2024

4 June 2024

  • 22:0722:07, 4 June 2024 diff hist −119 ComplexityNo edit summary current
  • 21:4421:44, 4 June 2024 diff hist +20 kuleNo edit summary current
  • 21:4121:41, 4 June 2024 diff hist +415 N Module:Hatnote/styles.cssCreated page with "→‎{{pp|small=y}}: .hatnote { font-style: italic; } →‎Limit structure CSS to divs because of [[Module:Hatnote inline]]: div.hatnote { →‎@noflip: padding-left: 1.6em; margin-bottom: 0.5em; } .hatnote i { font-style: normal; } →‎The templatestyles element inserts a link element before hatnotes. * TODO: Remove link if/when WMF resolves T200206: .hatnote + link + .hatnote { margin-top: -0.5em; }" current
  • 20:2420:24, 4 June 2024 diff hist +105 Template:MainNo edit summary current
  • 20:2420:24, 4 June 2024 diff hist +1,129 N Module:ErrorCreated 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
  • 20:0720:07, 4 June 2024 diff hist +6,484 N Module:Format linkCreated page with "-------------------------------------------------------------------------------- -- Format link -- -- Makes a wikilink from the given link and display values. Links are escaped -- with colons if necessary, and links to sections are detected and displayed -- with " § " as a separator rather than the standard MediaWiki "#". Used in -- the {{format link}} template. -------------------------------------------------------------------------------- local libraryUtil = require(..." current
  • 20:0420:04, 4 June 2024 diff hist +7,325 N Module:Hatnote listCreated page with "-------------------------------------------------------------------------------- -- Module:Hatnote list -- -- -- -- This module produces and formats lists for use in hatnotes. In particular, -- -- it implements the for-see list, i.e. lists of "For X, see Y" statements, -- -- as used in {{about}}, {{redirect}}, and their variants. Also introd..." current
  • 20:0220:02, 4 June 2024 diff hist +6,037 N Module:HatnoteCreated page with "-------------------------------------------------------------------------------- -- Module:Hatnote -- -- -- -- This module produces hatnote links and links to related articles. It -- -- implements the {{hatnote}} and {{format link}} meta-templates and includes -- -- helper functions for other Lua hatnote modules...." current
  • 20:0020:00, 4 June 2024 diff hist +4,641 N Module:Labelled list hatnoteCreated page with "-------------------------------------------------------------------------------- -- Labelled list -- -- -- -- This module does the core work of creating a hatnote composed of a list -- -- prefixed by a colon-terminated label, i.e. "LABEL: [andList of pages]", -- -- for {{see also}} and similar templates...." current

30 May 2024

  • 16:5316:53, 30 May 2024 diff hist +908 kiwenNo edit summary current
  • 15:4415:44, 30 May 2024 diff hist +881 N Template:Documentation/docCreated page with "This module displays a blue box containing documentation for {{w|Help:Template|templates}}, {{w|Wikipedia:Lua|Lua modules}}, or other pages. The {{tl|documentation}} template invokes it. == Normal usage == For most uses, you should use the {{tl|documentation}} template; please see that template's page for its usage instructions and parameters. == Use in other modules == To use this module from another Lua module, first load it with <code>require</code>: <syntaxhighl..." current
  • 15:4415:44, 30 May 2024 diff hist +29 N Template:nowrapRedirected page to Template:Nowrap current Tag: New redirect
  • 15:4315:43, 30 May 2024 diff hist +36 N Template:documentationRedirected page to Template:Documentation current Tag: New redirect
  • 15:4315:43, 30 May 2024 diff hist +145 N Template:NowrapCreated page with "<span class="nowrap">{{{1}}}</span><noinclude> {{documentation}} <!-- Categories go on the /doc page; interwikis go to Wikidata. --> </noinclude>" current
  • 15:4215:42, 30 May 2024 diff hist +36 N Template:tlRedirected page to Template:Template link current Tag: New redirect
  • 15:4115:41, 30 May 2024 diff hist +190 N Template:Template linkCreated page with "{{nowrap|{{}}[[Template:{{{1}}}|{{{1}}}]]{{nowrap|}}}}<noinclude> {{documentation}} <!-- Categories go on the /doc subpage and interwikis go on Wikidata. --> </noinclude>" current
  • 15:3615:36, 30 May 2024 diff hist +2,569 N Module:Namespace detect/dataCreated page with "-------------------------------------------------------------------------------- -- Namespace detect data -- -- This module holds data for Module:Namespace detect to be loaded per -- -- page, rather than per #invoke, for performance reasons. -- -------------------------------------------------------------------------------- local cfg = require('Module:Namespace detect/config') local function..." current
  • 15:3415:34, 30 May 2024 diff hist −1,879 Module:Namespace detectWrong one, sorry current
  • 15:3415:34, 30 May 2024 diff hist +7,871 N Module:Namespace detectCreated page with "-------------------------------------------------------------------------------- -- -- -- CATEGORY HANDLER -- -- -- -- This module implements the {{category handler}} template in Lua, -- -- with a few improvements: all namespaces and all namespace alia..."
  • 15:3315:33, 30 May 2024 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
  • 15:3015:30, 30 May 2024 diff hist +2,230 N Module:Message box/ambox.cssCreated 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
  • 15:2715:27, 30 May 2024 diff hist +6,546 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
  • 15:2515:25, 30 May 2024 diff hist +18,677 N Module:Message boxCreated 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
  • 11:5511:55, 30 May 2024 diff hist −67 Module:Documentation/styles.cssNo edit summary current
  • 11:5111:51, 30 May 2024 diff hist +1,117 N Module:Documentation/styles.cssCreated 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..."
  • 11:4211:42, 30 May 2024 diff hist 0 Template:DocumentationNo edit summary current
  • 11:4211:42, 30 May 2024 diff hist +151 N Template:DocumentationCreated page with "{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}<noinclude> <!-- Add categories to the /doc subpage --> </noinclude>"
  • 11:4011:40, 30 May 2024 diff hist +17,747 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
  • 11:4011:40, 30 May 2024 diff hist +35,058 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 local format = mw.ustring.format ---------------------------------------------------------------------------- -- Helper functions -- -- These are defined as local functions, but are made available in..." current
  • 11:3911:39, 30 May 2024 diff hist +3,950 N Module:Exponential search/docCreated page with "This module provides a generic {{w|exponential search}} algorithm. This kind of search can be useful when you want to find a key in some kind of sorted array, and you want to do it by checking as few array elements as possible. This could include situations like: * Finding the highest archive number in a set of archives without checking whether they all exist. * Finding the number of positional arguments in frame.args without having to expand the wikitext for each of the..." current
  • 11:3711:37, 30 May 2024 diff hist +1,092 N Module:Exponential searchCreated 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
  • 11:3611:36, 30 May 2024 diff hist +6,971 N Module:Color contrastCreated page with "-- -- This module implements -- {{Color contrast ratio}} -- {{Greater color contrast ratio}} -- {{ColorToLum}} -- {{RGBColorToLum}} -- local p = {} local HTMLcolor = mw.loadData( 'Module:Color contrast/colors' ) local function sRGB (v) if (v <= 0.03928) then v = v / 12.92 else v = math.pow((v+0.055)/1.055, 2.4) end return v end local function rgbdec2lum(R, G, B) if ( 0 <= R and R < 256 and 0 <= G and G < 256 and 0 <= B and B < 256 ) then return 0.2126 *..." current
  • 11:3611:36, 30 May 2024 diff hist +16,126 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
  • 11:3111:31, 30 May 2024 diff hist +3,713 N Module:Navbox/configurationCreated page with "return { aria_label = 'Navbox', nowrap_item = '%s<span class="nowrap">%s</span>', templatestyles = mw.getCurrentFrame():extensionTag{ name = 'templatestyles', args = { src = 'Module:Navbox/styles.css' } }, hlist_templatestyles = 'Hlist/styles.css', plainlist_templatestyles = 'Plainlist/styles.css', -- do not localize marker table marker = { oddeven = '\127_ODDEVEN_\127', restart = '\127_ODDEVEN0_\127', regex = '\127_ODDEVEN(%d?)_\127' }, category = {..." current
  • 11:3111:31, 30 May 2024 diff hist +5,296 N Module:NavbarImported from English Wikipedia current
  • 11:3011:30, 30 May 2024 diff hist +17,869 N Module:NavboxCreated page with "require('strict') local p = {} local navbar = require('Module:Navbar')._navbar local cfg = mw.loadData('Module:Navbox/configuration') local getArgs -- lazily initialized local args local format = string.format local function striped(wikitext, border) -- Return wikitext with markers replaced for odd/even striping. -- Child (subgroup) navboxes are flagged with a category that is removed -- by parent navboxes. The result is that the category shows all pages -- where a..." current
  • 11:2911:29, 30 May 2024 diff hist +745 N Module:YesnoImported from English Wikipedia current
  • 11:2811:28, 30 May 2024 diff hist +10,054 N Module:ArgumentsImported from English Wikipedia current
  • 11:1911:19, 30 May 2024 diff hist −21 Template:MediaNo edit summary current

29 May 2024

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