User contributions for Alex
Jump to navigation
Jump to search
11 October 2024
- 22:0722:07, 11 October 2024 diff hist +103 N Module:T/doc Created 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:T Created 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/doc Created 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:T Created 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/doc Created 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 button Created 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 text Created 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/doc Created 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:Tooltip Created page with "<includeonly>{{#invoke:Tooltip|span}}</includeonly><noinclude>{{/doc}}</noinclude>" current
- 22:0122:01, 11 October 2024 diff hist +1,592 N Module:Tooltip Created 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/doc Created 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:DPLlua Created 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/doc Created 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:Paramtest Created 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/doc Created 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:Yesno Created 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/doc Created 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:Array Created 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 image2 Created 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:DependencyList Created 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/doc Created 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:Documentation Created 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/doc Created 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:Documentation Created 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/doc Created page with "{{Documentation}}" current
- 21:5321:53, 11 October 2024 diff hist +12,755 N Module:Infobox Bonuses Created 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 stat Created 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 module Created 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/doc Created 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:Mainonly Created 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/doc Created 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:Infobox Created 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 Diary No edit summary Tag: Visual edit
- 15:3215:32, 11 October 2024 diff hist +2 Achievement Diary No edit summary
- 15:3215:32, 11 October 2024 diff hist +1 Achievement Diary No edit summary Tag: Visual edit
- 15:3115:31, 11 October 2024 diff hist 0 Achievement Diary No edit summary
- 15:3015:30, 11 October 2024 diff hist +45 Achievement Diary No edit summary
- 15:2715:27, 11 October 2024 diff hist +33 N File:Achievement Diaries.webp Achievement Diaries current
- 13:0913:09, 11 October 2024 diff hist +34,164 N MediaWiki:Minerva.css Created 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.png Nex Solo Encounter current
- 09:3909:39, 11 October 2024 diff hist −92 MediaWiki:Common.css No edit summary
10 October 2024
- 17:2717:27, 10 October 2024 diff hist +32,867 N MediaWiki:Vector.css Created page with "→<pre>: :root { --ul-list-style-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='13'%3E%3Ccircle cx='2.5' cy='9' r='2.5' fill='%23000'/%3E%3C/svg%3E"); } html { -webkit-text-size-adjust: 100%; } body { background: var(--body-background-image) var(--body-background-color) top left / 1500px 375px no-repeat; font-family: 'IBM Plex Sans', 'Helvetica Neue', 'Arial', s..."
- 14:3114:31, 10 October 2024 diff hist +1,360 MediaWiki:Common.css No edit summary
- 11:4711:47, 10 October 2024 diff hist +142,723 MediaWiki:Common.css No edit summary Tag: Manual revert
- 11:4711:47, 10 October 2024 diff hist −142,723 MediaWiki:Common.css Replaced content with "→ACCORDION: .toccolours { overflow: auto; background-color: #D8CCB4; border: 1px solid #94866d; margin: 0 0 30px 32px; padding: 0px; max-width: 1080px; } .mw-inner { margin: 0 0 14px 32px; } .mw-inner:last-child { margin: 0 0 20px 32px; } .mw-inner .mw-collapsible-toggle { padding: 5px 10px 2px 0px; } .mw-inner .mw-collapsible-headers { background: #d3b58a; } .mw-collapsible-toggle { padding: 2px 10px 2px 0px; } .mw-collap..." Tags: Replaced Reverted
- 11:4411:44, 10 October 2024 diff hist +28 MediaWiki:Common.css No edit summary Tag: Reverted
- 11:4211:42, 10 October 2024 diff hist −1 MediaWiki:Common.css No edit summary Tag: Reverted
- 11:4211:42, 10 October 2024 diff hist −1 MediaWiki:Common.css No edit summary Tag: Reverted
- 11:4011:40, 10 October 2024 diff hist −26 MediaWiki:Common.css No edit summary Tag: Reverted
- 11:2511:25, 10 October 2024 diff hist +154,754 N MediaWiki:Common.css Created page with "→<pre>: :root { --body-main: #e2dbc8; --body-light: #d8ccb4; --body-mid: #d0bd97; --body-dark: #b8a282; --body-border: #94866d; --body-background-color: #c0a886; --button-background: #605443; --button-color: #fff; --button-border: #3c352a; --button-dark: #18140c; --button-light: #3a301d; --sidebar: #cfc08d; --background-text-color: #444; --background-link-color: #52351e; --search-box: #efeee6; --link-col..."