User contributions for Simon

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

24 June 2023

  • 23:3423:34, 24 June 2023 diff hist +631 N Module:Category handler/dataCreated page with "-- This module assembles data to be passed to Module:Category handler using -- mw.loadData. This includes the configuration data and whether the current -- page matches the title blacklist. local data = require('Module:Category handler/config') local mShared = require('Module:Category handler/shared') local blacklist = require('Module:Category handler/blacklist') local title = mw.title.getCurrentTitle() data.currentTitleMatchesBlacklist = mShared.matchesBlacklist(..." current
  • 23:3423:34, 24 June 2023 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
  • 23:3323:33, 24 June 2023 diff hist +148 N Template:Category handlerCreated page with "{{#invoke:Category handler|main}}<noinclude> {{documentation}} <!-- Add categories to the /doc subpage, and interwikis to Wikidata. --> </noinclude>" current
  • 23:3323:33, 24 June 2023 diff hist +184 N Template:Str leftCreated page with "<includeonly>{{safesubst:padleft:|{{{2|1}}}|{{{1}}}}}</includeonly><noinclude> {{documentation}} <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> </noinclude>" current
  • 23:3323:33, 24 June 2023 diff hist +178 N Template:Remove first wordCreated page with "{{<includeonly>safesubst:</includeonly>#invoke:String|replace|source={{{1}}}|pattern=^[^{{{sep|%s}}}]*{{{sep|%s}}}*|replace=|plain=false}}<noinclude>{{Documentation}}</noinclude>" current
  • 23:3223:32, 24 June 2023 diff hist +17,433 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
  • 23:3223:32, 24 June 2023 diff hist +34,736 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
  • 23:3223:32, 24 June 2023 diff hist +151 N Template:DocumentationCreated page with "{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}<noinclude> <!-- Add categories to the /doc subpage --> </noinclude>" current
  • 23:3123:31, 24 June 2023 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
  • 23:3123:31, 24 June 2023 diff hist +1,072 N Template:Extra album coverCreated page with "{{Infobox | child = <includeonly>yes</includeonly> | headerstyle = background: {{Infobox album/color|{{{type|}}}}} | header1 = {{#switch:{{{header|}}}|no|none=|=Alternative cover|#default={{{header|}}}}} | data2 = {{Infobox | child = yes | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{cover|{{{image|}}}}}}|size={{{cover_size|}}}|sizedefault=frameless|alt={{{alt|}}}|border={{{border|}}}|title={{{alt|{{{caption|}}}}}}}} | caption = {{{caption|}}}..." current
  • 23:3023:30, 24 June 2023 diff hist +15,281 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
  • 23:3023:30, 24 June 2023 diff hist +5,689 N Module:Music ratingsCreated page with "-- This module implements Template:Album ratings. local mTableTools = require('Module:TableTools') local yesno = require('Module:Yesno') local p = {} local function makeCell(html, s) html :tag('td') :css('text-align', 'center') :css('vertical-align', 'middle') :wikitext(s) end local function makeRow(review, score) local row = mw.html.create('tr') makeCell(row, review) makeCell(row, score) return row end local function makeHeaderRow(header, backgro..."
  • 23:3023:30, 24 June 2023 diff hist +508 N Template:Music ratingsCreated page with "{{#invoke:Music ratings|main}}{{#invoke:Check for unknown parameters|check|unknown={{main other|_VALUE_{{PAGENAME}}}}|preview=Page using Template:Music ratings with unknown parameter "_VALUE_"|ignoreblank=y | ADM | MC | aggregate1 | aggregate1score | aggregate2 | aggregate2score | align | noprose | regexp1 = [Rr]ev[%d][%d]* | regexp2 = [Rr]ev[%d][%d]*[sS]core | state | subtitle | title | width }}<noinclud..." current
  • 23:3023:30, 24 June 2023 diff hist +83 N Template:Album ratingsRedirected page to Template:Music ratings current Tag: New redirect
  • 23:2923:29, 24 June 2023 diff hist +86 N Template:CategoryRedirected page to Template:Category link current Tag: New redirect
  • 23:2823:28, 24 June 2023 diff hist +1,479 N Template:Infobox album/linkCreated page with "{{#switch: {{lc:{{delink|{{{1|}}}}}}}<!-- -->|studio album|studio|album |tribute|tribute album |cover album|cover |double album = Studio album |demo = Demo album<!-- -->|extended play|ep = EP |single album = Single album<!-- -->|live album|live..."
  • 23:2823:28, 24 June 2023 diff hist +10,244 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
  • 23:2723:27, 24 June 2023 diff hist +97 N Template:TrimCreated page with "<includeonly>{{safesubst:#if:1|{{{1|}}}}}</includeonly><noinclude> {{Documentation}} </noinclude>" current
  • 23:2723:27, 24 June 2023 diff hist +3,124 N Module:DurationCreated page with "local p = {} function p._error( error_str ) return 'Category:Duration with input error<strong class="error">Error in Module:Duration: ' .. error_str .. '</strong>' end function p.main(frame) local args = require('Module:Arguments').getArgs(frame, {wrappers = {'Template:Duration', 'Template:Duration/sandbox'}}) local tmp = args.duration or args[1] or '' local duration = {} if tonumber(args[1]) or args[2] or args[3] then if args[4] then return p._error('Par..." current
  • 23:2723:27, 24 June 2023 diff hist +33 N Module:HmsCreated page with "return require('Module:Duration')" current
  • 23:2623:26, 24 June 2023 diff hist +8,913 N Module:Italic titleCreated 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
  • 23:2623:26, 24 June 2023 diff hist +20,533 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 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'..."
  • 23:2623:26, 24 June 2023 diff hist +340 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> {{documentation}} <!-- Categories go in the /doc subpage, and interwikis go in Wikidata. --> </noinclude>"
  • 23:2523:25, 24 June 2023 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
  • 23:2523:25, 24 June 2023 diff hist +130 N Template:First wordCreated page with "{{<includeonly>safesubst:</includeonly>#invoke:String|match|s={{{1}}}|^[^{{{sep|%s}}}]*}}<noinclude> {{documentation}}</noinclude>" current
  • 23:2523:25, 24 June 2023 diff hist +238 N Template:MainCreated page with "<includeonly>{{#invoke:Labelled list hatnote|labelledList|Main article|Main articles|Main page|Main pages}}</includeonly><noinclude> {{documentation}} <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> </noinclude>" current
  • 23:2523:25, 24 June 2023 diff hist +827 N Template:Short description/lowercasecheckCreated page with "{{#ifeq:<!--test first character for lower-case letter-->{{#invoke:string|find|1={{{1|}}}|2=^%l|plain=false}}|1 |<!-- first character is a lower case letter; test against whitelist -->{{#switch: {{First word|{{{1|}}}}}<!--begin whitelist--> |c. <!--for circa--> |gTLD |iMac |iOS |iOS, |iPad |iPhone |iTunes |macOS |none |pH |pH-dependent=<!-- end whitelist; short description starts with an allowed lower-case string; whitelist matched; do nothing --> |#default=<!-- apply c..." current
  • 23:2423:24, 24 June 2023 diff hist +3,545 N Module:Namespace detect/configCreated page with "-------------------------------------------------------------------------------- -- Namespace detect configuration data -- -- -- -- This module stores configuration data for Module:Namespace detect. Here -- -- you can localise the module to your wiki's language. -- --..." current
  • 23:2323:23, 24 June 2023 diff hist +3,847 N Module:Pagetype/configCreated page with "-------------------------------------------------------------------------------- -- Module:Pagetype configuration data -- -- This page holds localisation and configuration data for Module:Pagetype. -- -------------------------------------------------------------------------------- local cfg = {} -- Don't edit this line. -------------------------------------------------------------------------------- -- St..." current
  • 23:2323:23, 24 June 2023 diff hist +3,545 N Module:Namespace config/dataCreated page with "-------------------------------------------------------------------------------- -- Namespace detect configuration data -- -- -- -- This module stores configuration data for Module:Namespace detect. Here -- -- you can localise the module to your wiki's language. -- --..." current
  • 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 50) (20 | 50 | 100 | 250 | 500)