User contributions for Simon

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

24 June 2023

  • 23:2323:23, 24 June 2023 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
  • 23:2223:22, 24 June 2023 diff hist +5,992 N Module:Namespace detectCreated page with "--[[ -------------------------------------------------------------------------------- -- -- -- NAMESPACE DETECT -- -- -- -- This module implements the {{namespace detect}} template in Lua, with a -- -- few improvements: all namespaces and all namespace aliases are..." current
  • 23:2223:22, 24 June 2023 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
  • 23:2223:22, 24 June 2023 diff hist +6,765 N Module:PagetypeCreated page with "-------------------------------------------------------------------------------- -- -- -- PAGETYPE -- -- -- -- This is a meta-module intended to replace {{pagetype}} and similar -- -- templates. It automatically detects namespaces, and allows for..." current
  • 23:2123:21, 24 June 2023 diff hist +179 N Template:PagetypeCreated page with "{{<includeonly>safesubst:</includeonly>#invoke:pagetype|main}}<noinclude> {{documentation}} <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> </noinclude>" current
  • 23:2123:21, 24 June 2023 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
  • 23:2123:21, 24 June 2023 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
  • 23:2123:21, 24 June 2023 diff hist +1,987 N Module:Plain textCreated page with "--converts text with wikilinks to plain text, e.g "gah is bar" to "gah is bar" --removes anything enclosed in tags that isn't nested, mediawiki strip markers (references etc), files, italic and bold markup requirestrict local p = {} function p.main(frame) local text = frame.args[1] local encode = require('Module:yesno')(frame.args.encode) return p._main(text, encode) end function p._main(text, encode) if not text then return end text = mw.text.kill..." current
  • 23:2023:20, 24 June 2023 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
  • 23:1823:18, 24 June 2023 diff hist +150 N Template:Has short descriptionCreated page with "{{#invoke:string2 |findpagetext |text={%{ *[Ss]hort description |plain=false |title={{{title|{{{1|}}} }}} }}<noinclude> {{documentation}} </noinclude>" current
  • 23:1823:18, 24 June 2023 diff hist +993 N Module:Is infobox in leadCreated page with "local p = {} function p.main (frame) return p._main (frame.args[1]) end function p._main (searchString) local content = mw.title.getCurrentTitle():getContent() local offset = string.find(content, "==", 1 , true) if offset then local lead = string.sub(content, 1, offset-1) if (string.find(lead, searchString)) then lead = lead :gsub( "{{%s-[Ii]nfobox%s-mapframe", "") --don't check for infobox mapframe :gsub( "{{%s-[Ii]nfobo[^}]-%|%s-embed%s-=%s-yes", "..." current
  • 23:1723:17, 24 June 2023 diff hist +5,189 N Module:Unsubst-infoboxCreated page with "local p = {} local specialParams = { ['$params'] = 'all parameters', ['$extra'] = 'extra parameters', ['$set1'] = 'parameter set 1', ['$set2'] = 'parameter set 2', ['$set3'] = 'parameter set 3', ['$aliases'] = 'parameter aliases', ['$indent'] = 'indent', ['$flags'] = 'flags', ['$B'] = 'template content', ['$template-name'] = 'template invocation name override' } p[''] = function ( frame ) if not frame:getParent() then error( '{{#invoke:Unsubst-infobox|}} m..." current
  • 23:1223:12, 24 June 2023 diff hist +6,735 N Template:Infobox albumCreated page with "{{<includeonly>safesubst:</includeonly>#invoke:Unsubst-infobox||$params=italic_title,name,type,longtype,artist,cover,border,alt,caption,released,recorded,venue,studio,genre,length,language,label,director,producer,compiler,chronology,prev_title,prev_year,year,next_title,next_year,misc|$extra=italic_title,longtype,border,caption,language,director,compiler,chronology,year,misc|$aliases=italic title>italic_title,Italic title>italic_title,Name>name,Type>type,image>cover,Cover..."
  • 22:4122:41, 24 June 2023 diff hist +83 N awk:AboutCreated page with "W.K.pedia is a wiki for Andrew W.K., hosted by [https://www.awkshare.com AWKSHARE]." current
  • 10:5510:55, 24 June 2023 diff hist 0 m Main PageClean up Tag: Visual edit
  • 10:5110:51, 24 June 2023 diff hist −57 Main PageNo edit summary Tag: Visual edit
  • 10:4010:40, 24 June 2023 diff hist +3 m Main PageNo edit summary Tag: Visual edit
  • 10:3610:36, 24 June 2023 diff hist −4 m Main PageTitle tweak. Tag: Visual edit
  • 08:4108:41, 24 June 2023 diff hist +1,304 Main PageUndo revision 596096 by DoyleQff7547 (talk) Tag: Undo

27 June 2022

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