User contributions for Alex

A user with 47,327 edits. Account created on 10 October 2024.
Jump to navigation Jump to search
Search for contributionsshowhide
⧼contribs-top⧽
⧼contribs-date⧽
(newest | oldest) View ( | older 50) (20 | 50 | 100 | 250 | 500)

11 October 2024

  • 22:0722:07, 11 October 2024 diff hist +103 N Module:T/docCreated page with "{{Documentation}} This template should be used when there is no documentation for a Module or Template."
  • 22:0722:07, 11 October 2024 diff hist +1,499 N Module:TCreated page with "-- <nowiki> -- Template:T -- local p = {} function p.main(frame) local args = frame:getParent().args return p._main(args) end function p._main(args) local link = args[1] local uri local targs = {} local ns local i = 1 -- strip transclusion modifiers (mw:Help:Magic words#Transclusion modifiers) link = link :gsub('safesubst:', '') :gsub('subst:', '') :gsub('int:', '') :gsub('msg:', '')..." current
  • 22:0722:07, 11 October 2024 diff hist +648 N Template:T/docCreated page with "{{Documentation}} A template link with a variable number of parameters. ===Use=== To use this for templates, use :{{T|T|<nowiki>parameter 1|parameter 2|parameter 3|...|parameter 20</nowiki>}}<!-- self-referential examples! --> To use other namespaces, use the namespace as prefix, for example :{{T|T|User:Example}} And to show transclusions of mainspace pages, use :{{T|T|:Bucket}} ===Example=== <code><nowiki>{{T|Stub}}</nowiki></code> :{{T|Stub}} <code><nowiki>{{T|Stub..." current
  • 22:0622:06, 11 October 2024 diff hist +108 N Template:TCreated page with "<includeonly><span class="plainlinks">{{#invoke:T|main}}</span></includeonly><noinclude>{{/doc}}</noinclude>" current
  • 22:0422:04, 11 October 2024 diff hist +272 N Module:Edit button/docCreated page with "{{Documentation}} {{Helper module |name=Edit button |fname1=(text, page) |ftype1=string, string |fuse1=Creates an edit button for <code>page</code>. <code>page</code> defaults to the current page that the module is invoked on<br><br><code>text</code> defaults to "edit" }}" current
  • 22:0322:03, 11 October 2024 diff hist +487 N Module:Edit buttonCreated page with "-- {{Helper module|name=Edit button|fname1=(text)|ftype1=string|fuse1=Creates an edit button for the current page that the module is invoked on<br><br><code>text</code> defaults to "edit"}} -- Creates a link that opens the editor screen for whatever page this module is invoked on return function(text, page) local page_title = page or mw.title.getCurrentTitle().fullText local url = tostring(mw.uri.fullUrl(page_title,'action=edit')) return '['..url..' '..(text or 'edi..." current
  • 22:0322:03, 11 October 2024 diff hist +88 N Template:Tooltip textCreated page with "<includeonly>{{#invoke:Tooltip|div}}</includeonly><noinclude>{{Tooltip/doc}}</noinclude>" current
  • 22:0222:02, 11 October 2024 diff hist +8,151 N Template:Tooltip/docCreated page with "{{Documentation|Template:Tooltip}} Template:Tooltip and Template:Tooltip text are templates is for generating clickable tooltips to show additional information. They are to be used together. These tooltips '''require JavaScript''', so should only be used for non-essential additional information only. They will not show at all in the mobile skin or if the user has JavaScript disabled. The script powering these tooltips is located at MediaWiki:Gadget-tooltips.js..." current
  • 22:0222:02, 11 October 2024 diff hist +82 N Template:TooltipCreated page with "<includeonly>{{#invoke:Tooltip|span}}</includeonly><noinclude>{{/doc}}</noinclude>" current
  • 22:0122:01, 11 October 2024 diff hist +1,592 N Module:TooltipCreated page with "local p = {} local yn = require('Module:Yesno') local hc = require('Module:Paramtest').has_content -- module access point for div p._div = function(args) local name = args.name if not hc(name) then error('Name is required!') end local content = args.content local hasarrow = yn(args.arrow or 'yes', true) local arrowsize = tonumber(args.arrowsize) or 10 local limitwidthbool = yn(args.limitwidth or 'yes', true) local style = args.style local div = mw.ht..." current
  • 22:0022:00, 11 October 2024 diff hist +4,464 N Module:DPLlua/docCreated page with "{{Documentation}} Uses Template:DPLlua helper to make it possible to include all parameters of a template while maintaining good performance. {{Helper module|name=DPLlua |fname1 = ask( ... ) |ftype1 = tables |fuse1 = <code>ask</code> takes a series of tables each containing the settings for a DPL query; it will return the same number of result tables as input tables. All formatting settings are stripped from the config. If the config does not contains <co..." current
  • 22:0022:00, 11 October 2024 diff hist +16,313 N Module:DPLluaCreated page with "-- <nowiki> local dpl = {} local libraryUtil = require( 'libraryUtil' ) local hasContent = require( 'Module:Paramtest' ).has_content local checkType = libraryUtil.checkType local checkTypeForNamedArg = libraryUtil.checkTypeForNamedArg dpl.pipe = '¦' local dataContentMarker = '`#@@#`' local allIncludedParamNames = {} -- Custom function for splitting a string because mw.text.split() is waaay too slow local function split( str, pattern, plain ) local res = {} local con..."
  • 22:0022:00, 11 October 2024 diff hist +686 N Module:Paramtest/docCreated page with "{{documentation}} {{Helper module |name=Paramtest |fname1 = is_empty(arg) |ftype1 = String |fuse1 = Returns true if arg is not defined or contains only whitespace |fname2 = has_content(arg) |ftype2 = String |fuse2 = Returns true if arg exists and does not only contain whitespace |fname3 = default_to(arg1,arg2) |ftype3 = String, Any value |fuse3 = If arg1 exists and does not only contain whitespace, the function returns arg1, otherwise returns arg2 |fname4 = defaults{ {ar..." current
  • 22:0022:00, 11 October 2024 diff hist +2,055 N Module:ParamtestCreated page with "--[[ {{Helper module |name=Paramtest |fname1 = is_empty(arg) |ftype1 = String |fuse1 = Returns true if arg is not defined or contains only whitespace |fname2 = has_content(arg) |ftype2 = String |fuse2 = Returns true if arg exists and does not only contain whitespace |fname3 = default_to(arg1,arg2) |ftype3 = String, Any value |fuse3 = If arg1 exists and does not only contain whitespace, the function returns arg1, otherwise returns arg2 |fname4 = defaults{ {arg1,arg2},...}..." current
  • 21:5921:59, 11 October 2024 diff hist +314 N Module:Yesno/docCreated page with "{{documentation}} {{Helper module|name=Yesno |fname1=(arg) |ftype1=Any value |fuse1=Reads arg for yes/no and returns the appropriate boolean or nil |fname2=(arg1,arg2) |ftype2=Any value, Any value |fuse2=Reads arg1 for yes/no and returns the appropriate boolean; returns arg2 if arg1 was not an applicable value }}" current
  • 21:5921:59, 11 October 2024 diff hist +871 N Module:YesnoCreated page with "--[[ {{Helper module|name=Yesno |fname1=(arg) |ftype1=Any value |fuse1=Reads arg for yes/no and returns the appropriate boolean or nil |fname2=(arg1,arg2) |ftype2=Any value, Any value |fuse2=Reads arg1 for yes/no and returns the appropriate boolean; returns arg2 if arg1 was not an applicable value }} --]] -- <pre> -- Used to evaluate args to booleans where applicable -- -- Based on <https://en.wikipedia.org/wiki/Module:Yesno> -- see page history there for contributors --..." current
  • 21:5921:59, 11 October 2024 diff hist +17,696 N Module:Array/docCreated page with "{{Documentation}} {{Helper module |name = Array |fname1 = <nowiki>all( arr, [fn] )</nowiki> |ftype1 = <samp>arr: any[]</samp><br><samp>fn?: any</samp><br><samp>-> boolean</samp> |fuse1 = Behaviour depends on the value of <code>fn</code>: * <code>nil</code> - Checks that the array doesn't contain any '''false''' elements. * <code>fun(elem: any, i?: integer): boolean</code> - Returns '''true''' if <code>fn</code> returns '''true''' for every element. * <code>nu..." current
  • 21:5821:58, 11 October 2024 diff hist +30,679 N Module:ArrayCreated page with "local libraryUtil = require('libraryUtil') local checkType = libraryUtil.checkType local checkTypeMulti = libraryUtil.checkTypeMulti ---Returns the length of the array but it also works on proxy arrays ---@param arr any[] ---@return integer local function len(arr) local l = #arr if l == 0 then if arr[1] ~= nil then -- Exponential search to find length of proxy table local low = 1 local high = 1 local ceil = math.ceil while arr[high] ~= nil do high..." current
  • 21:5621:56, 11 October 2024 diff hist +1,967 N Module:Clean image2Created page with "-- Removes 'File:' prefix, just in case -- Replace {{!}} with | instead of preprocessing -- Turn into a nice wiki file link local p = {} local defaultMaxSize = { h = 300, w = 300 } p.main = function(frame) return p.clean(frame:getParent().args) end p.clean = function(args) local file = args.file if not file or (file and (file:lower() == 'no' or file == '')) then return nil end if not file:find('%[%[File:.-%]%]') then return nil end local fileRaw = file fil..." current
  • 21:5621:56, 11 October 2024 diff hist +24,436 N Module:DependencyListCreated page with "local p = {} local libraryUtil = require( 'libraryUtil' ) local arr = require( 'Module:Array' ) local yn = require( 'Module:Yesno' ) local param = require( 'Module:Paramtest' ) local dpl = require( 'Module:DPLlua' ) local tooltip = require( 'Module:Tooltip' ) local moduleIsUsed = false local COLLAPSE_LIST_LENGTH_THRESHOLD = 5 local MAX_DYNAMIC_REQUIRE_LIST_LENGTH = 30 local dynamicRequireListQueryCache = {} local builtins = { ["libraryUtil"] = { link = "mw:S..."
  • 21:5521:55, 11 October 2024 diff hist +107 N Module:Documentation/docCreated page with "{{External|meta|rs|rsc}} {{Documentation}} Implements Template:Documentation for templates and modules." current
  • 21:5521:55, 11 October 2024 diff hist +3,741 N Module:DocumentationCreated page with "-- <nowiki> local dependencyList = require( 'Module:DependencyList' ) local yn = require( 'Module:Yesno' ) local p = {} function p.doc( frame ) local title = mw.title.getCurrentTitle() local args = frame:getParent().args local page = args[1] or mw.ustring.gsub( title.fullText, '/doc$', '' ) local addDependencyList = yn( args.DependencyList or true ) local ret, cats, ret1, ret2, ret3 local onModule = title.namespace == 828 -- subpage head..." current
  • 21:5521:55, 11 October 2024 diff hist +1,010 N Template:Documentation/docCreated page with "{{External|meta|rs|rsc}} {{Documentation}} {{Invokes|Documentation}} <code><nowiki>{{Documentation}}</nowiki></code> is transcluded in template/module documentation pages. This template should only be used on subpages titled "doc". This is '''not''' the template of the same name from Wikipedia and it is not used in the same way. ==Usage== Place {{t|documentation}} at the top of the documentation page, then transclude <code><nowiki>{{/doc}}</nowiki></code> directly from..."
  • 21:5421:54, 11 October 2024 diff hist +104 N Template:DocumentationCreated page with "<includeonly>{{#invoke:Documentation|doc}}__NOEDITSECTION__</includeonly><noinclude>{{/doc}}</noinclude>" current
  • 21:5421:54, 11 October 2024 diff hist +17 N Module:Infobox Bonuses/docCreated page with "{{Documentation}}" current
  • 21:5321:53, 11 October 2024 diff hist +12,755 N Module:Infobox BonusesCreated page with "-------------------------- -- Module for Template:Infobox Bonuses ------------------------ local p = {} local onmain = require('Module:Mainonly').on_main local infobox = require('Module:Infobox') local signed = require('Module:Format eq stat').signed local clean = require('Module:Clean image2').clean local slots = { head = 'Head slot items', weapon = 'Weapon slot items', body = 'Body slot items', legs = 'Legs slot items', shield = 'Shield slot items', cape =..." current
  • 21:5321:53, 11 October 2024 diff hist +298 N Module:Format eq statCreated page with "local p = {} function p.signed(arg) local first_char = string.sub(arg, 1, 1) if first_char == '+' or first_char == '-' then return arg else return '+'..arg end end function p.main(frame) local args = frame:getParent().args local arg = args[1] or '' return p.signed(arg) end return p" current
  • 21:5221:52, 11 October 2024 diff hist +886 N Template:Helper moduleCreated page with "{{Documentation}} {{Invokes|Helper module}} Provides documentation for functions of modules that contain functions useful for other modules. This template should be part of a comment, and should be at the top of the source code, '''before''' any <nowiki><pre> or <nowiki></nowiki> tags. There is no limit to the number of functions this template can list. This template is called by RuneScape:Lua/Helper modules to help produce a dynamic table. <pre> {{Helper module |n..."
  • 21:5121:51, 11 October 2024 diff hist +310 N Module:Mainonly/docCreated page with "{{documentation}} {{Helper module|name=Mainonly |fname1=_main(arg) |ftype1=Any value |fuse1=If the module is invoked in the content namespace, it will return arg, otherwise, it will return an empty string |fname2=on_main() |ftype2=N/A |fuse2=Returns true if invoked in the content namespace, otherwise false }}" current
  • 21:5121:51, 11 October 2024 diff hist +869 N Module:MainonlyCreated page with "--[[ {{Helper module|name=Mainonly |fname1=_main(arg) |ftype1=Any value |fuse1=If the module is invoked in the content namespace, it will return arg, otherwise, it will return an empty string |fname2=on_main() |ftype2=N/A |fuse2=Returns true if invoked in the content namespace, otherwise false }} --]] -- -- Module to return text only when invoked in the content namespace -- local p = {} function p.main(frame) local ret = frame:getParent().args[1] or '' return p._main..." current
  • 21:5021:50, 11 October 2024 diff hist +22,925 N Module:Infobox/docCreated page with "{{documentation}} {{ToC|right}} ==Creating a template step-by-step== ===Import Module:Infobox=== <syntaxhighlight lang="lua"> local infobox = require('Module:Infobox') </syntaxhighlight> ===Unpack the frame arguments=== <syntaxhighlight lang="lua"> function p.main(frame) local args = frame:getParent().args ... </syntaxhighlight> ===Define an Infobox object=== {{Main|Module:Infobox#new}} <syntaxhighlight lang="lua"> local ret = infobox.new(args) </syntaxhighlight>..." current
  • 21:4921:49, 11 October 2024 diff hist +53,866 N Module:InfoboxCreated page with "--[=[ -- For documentation, see Module:Infobox/doc --]=] -- <nowiki> local Infobox = {} Infobox.__index = Infobox Infobox.__tostring = Infobox.tostring -- Edit button for unknown params local editbutton = require('Module:Edit button') local var = mw.ext.VariablesLua local edit = editbutton("'''?''' (edit)") -- Page title local pagename = mw.title.getCurrentTitle().fullText -- map of flags to html tags used by Infobox.addRow() -- let's only define it once, since :..."
  • 15:3415:34, 11 October 2024 diff hist +7 m Achievement DiaryNo edit summary Tag: Visual edit
  • 15:3215:32, 11 October 2024 diff hist +2 Achievement DiaryNo edit summary
  • 15:3215:32, 11 October 2024 diff hist +1 Achievement DiaryNo edit summary Tag: Visual edit
  • 15:3115:31, 11 October 2024 diff hist 0 Achievement DiaryNo edit summary
  • 15:3015:30, 11 October 2024 diff hist +45 Achievement DiaryNo edit summary
  • 15:2715:27, 11 October 2024 diff hist +33 N File:Achievement Diaries.webpAchievement Diaries current
  • 13:0913:09, 11 October 2024 diff hist +34,164 N MediaWiki:Minerva.cssCreated page with "→‎<pre>: body { font-family: system-ui, -apple-system, Roboto, Helvetica, sans-serif; } @media all and (max-width: 320px) { body { font-size: 0.9em; } } .content { line-height: 1.7; } .pre-content h1, .content h1, .content h2 { font-weight: bold; } body { background: var(--body-background-color); color: var(--text-color); } select { color: var(--text-color); background: var(--body-light); border: 1px solid var(--..." current
  • 10:0010:00, 11 October 2024 diff hist +32 N File:Nex.pngNex Solo Encounter current
  • 09:3909:39, 11 October 2024 diff hist −92 MediaWiki:Common.cssNo edit summary

10 October 2024

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