User contributions for Mackan

Jump to navigation Jump to search
Search for contributionsExpandCollapse
⧼contribs-top⧽
⧼contribs-date⧽

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

31 March 2022

  • 15:0015:00, 31 March 2022 diff hist −88 Module:Infobox ItemNo edit summary
  • 14:5914:59, 31 March 2022 diff hist +1 User:MackanNo edit summary
  • 14:5914:59, 31 March 2022 diff hist +676 Module:Infobox ItemNo edit summary
  • 14:5814:58, 31 March 2022 diff hist +5 User:MackanNo edit summary Tag: Visual edit
  • 14:5714:57, 31 March 2022 diff hist +60 Module:InfoboxNo edit summary Tag: Reverted
  • 14:5514:55, 31 March 2022 diff hist −6,290 Module:Infobox ItemNo edit summary
  • 14:5314:53, 31 March 2022 diff hist −297 Module:Infobox ItemNo edit summary
  • 14:5214:52, 31 March 2022 diff hist −180 Module:Infobox ItemNo edit summary
  • 14:5014:50, 31 March 2022 diff hist +17 User:MackanNo edit summary Tag: Visual edit
  • 14:5014:50, 31 March 2022 diff hist −108 Module:Infobox ItemNo edit summary
  • 14:4114:41, 31 March 2022 diff hist +1,124 N Module:AddcommasCreated page with "--[[ {{Helper module|name=Addcommas |fname1=_add(arg) |ftype1=Number |fuse1=Formats the number arg with commas |fname2=_strip(arg) |ftype2=Number |fuse2=Removes all commas from arg }} --]] -- <nowiki> -- -- Implements {{Addcommas}} -- local p = {} -- -- main function -- keep public so it can be used in other modules -- function p._add( arg ) local lang = mw.language.getContentLanguage() local z = tostring( arg ) local y = mw.text.split( z, '[%-–]' ) l..." current
  • 14:4014:40, 31 March 2022 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
  • 14:3914:39, 31 March 2022 diff hist +60 N Template:Infobox ItemCreated page with "{{#invoke:Infobox Item|main}}<noinclude>{{/doc}}</noinclude>" current
  • 14:3814:38, 31 March 2022 diff hist +8,304 N Module:Infobox ItemCreated page with "-------------------------- -- Module for Template:Infobox Item ------------------------ local p = {} local infobox = require('Module:Infobox') local onmain = require('Module:Mainonly').on_main local commas = require('Module:Addcommas')._add VariablesLua = mw.ext.VariablesLua function p.main(frame) local args = frame:getParent().args local ret = infobox.new(args) ret:defineParams{ --- General { name = 'name', func = 'name' }, { name = 'version', func = 'h..."
  • 14:2414:24, 31 March 2022 diff hist −1,075 Template:ItemboxBlanked the page Tags: Blanking Reverted
  • 14:0714:07, 31 March 2022 diff hist +431 N Template:Extension DPL/docCreated page with "{{Documentation}} This page was automatically created. It serves as an anchor page for all '''invocations''' of [http://mediawiki.org/wiki/Extension:DynamicPageList Extension:DynamicPageList (DPL)]. ==Usage== This template should not be linked to, as it does nothing. <includeonly>{{PAGENAME}}{{PAGENAME}}</includeonly>" current
  • 14:0714:07, 31 March 2022 diff hist +31 N Template:Extension DPLCreated page with "<noinclude>{{/doc}}</noinclude>" current
  • 14:0114:01, 31 March 2022 diff hist +512 N DD Wiki:Lua/Helper modulesCreated page with "This is a table of modules and functions that were created specifically for facilitating the creation of other modules. Documentation for modules here is done in the source code with Template:Helper module. <dpl> namespace = Module uses = Template:Helper module titlematch = %/doc nottitlematch = Helper module/doc include = {Helper module} format = <table class="wikitable"><tr><th>Module</th><th>Function</th><th>Type</th><th>Use</th></tr>,,,</table> ordermethod=title..." current
  • 14:0114:01, 31 March 2022 diff hist −2 Module:Helper module/docNo edit summary current
  • 14:0114:01, 31 March 2022 diff hist +229 N Module:Helper module/docCreated page with "{{Documentation}} {{Invokes|Helper module}} Generates helper module information for use in documentation, which is automatically used by RuneScape:Lua/Helper modules. <includeonly> </includeonly>"
  • 13:5713:57, 31 March 2022 diff hist +2,285 N Module:Helper moduleCreated page with "-- <nowiki> -- Helps DD_Wiki:Lua/Helper modules format its table with dynamic documentation -- See Template:Helper module for documentation and usage local p = {} function p.main(frame) local args = frame:getParent().args local function_list = {} -- Let there be no limit to number of parameters local i = 1 while args['fname'..i] do local funcname = args['fname'..i] or '' local functype = args['ftype'..i] or '' local funcuse = args['fuse'..i] or '' f..." current
  • 13:5513:55, 31 March 2022 diff hist −2 Template:Helper module/docNo edit summary current
  • 13:5413:54, 31 March 2022 diff hist +886 N Template:Helper module/docCreated 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..."
  • 13:5413:54, 31 March 2022 diff hist +88 N Template:Helper moduleCreated page with "<includeonly>{{#invoke:Helper module|main}}</includeonly><noinclude>{{/doc}}</noinclude>" current
  • 13:5413:54, 31 March 2022 diff hist +209 N Module:Edit button/docCreated page with "{{Documentation}} {{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" }}" current
  • 13:5313:53, 31 March 2022 diff hist +473 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) local page_title = mw.title.getCurrentTitle().fullText local url = tostring(mw.uri.fullUrl(page_title,'action=edit')) return '['..url..' '..(text or 'edit')..']' end" current
  • 13:5113:51, 31 March 2022 diff hist +1,608 N Template:Invokes/docCreated page with "{{Documentation}} This template should be put near the beginning of a template or module's documentation page to link to a module that the template invokes, or a template that invokes the module (respectively). <pre> {{Invokes|ModuleName}} or {{Invokes|TemplateName}} </pre> ==Parameters== ===(1)=== On a template documentation page, this parameter should be supplied with the page title for a module that the template invokes (without the "Module:" namespace prefix).<br>..." current
  • 13:5113:51, 31 March 2022 diff hist +536 N Template:InvokesCreated page with "<includeonly>{{#ifeq:{{NAMESPACE}}|Module|<div class="seealso">'''''{{#replace:{{FULLPAGENAME}}|/doc}}''' is invoked by [[{{{page|Template:{{{1}}}}}}]].{{#ifeq:{{lc:{{{category}}}}}|no||{{#ifeq:{{SUBPAGENAME}}|doc||Category:Template invoked modules}}}}''</div>|<div class="seealso">'''''{{#replace:{{FULLPAGENAME}}|/doc}}''' invokes [[Module:{{{1}}}]] using Lua.{{#ifeq:{{lc:{{{category}}}}}|no||{{#ifeq:{{SUBPAGENAME}}|doc||Category:Lua-based templates..." current
  • 13:5013:50, 31 March 2022 diff hist +836 N Template:Main/docCreated page with "{{Documentation}} {{Invokes|Main article}} This template can be used to link to another relevant article or set of articles when there is no way to fluently link the article in prose. ;Good example <pre> ==Strategies== {{Main|/Items Map}} A map of items </pre> ;Bad example Below, it makes more sense to simply link Health Potion in the paragraph: <pre> ==Health Potion== {{Main|Health Potion}} The health potion heals 5 hp. </pre> {{TemplateData|<templatedata> { "..." current
  • 13:4913:49, 31 March 2022 diff hist +109 N Template:MainCreated page with "{{#invoke:Main article|main}}<noinclude> {{/doc}}{{PAGENAME}}</noinclude>" current
  • 13:4813:48, 31 March 2022 diff hist +1,319 N Module:Main articleCreated page with "-- <pre> local p = {} function p.main(frame) local args = frame:getParent().args local ret = mw.html.create('div') :addClass('seealso') -- list of all articles local params = {} -- total arguments counted counted local ttl = 0 for _, v in ipairs(args) do ttl = ttl + 1 table.insert(params,v) end -- main return string ret:wikitext('Main article'..(#params > 1 and 's' or '')..': ') -- helper function local function link(article) article = string.gs..." current
  • 13:4413:44, 31 March 2022 diff hist +828 N Template:ToC/docCreated page with "{{documentation}} The '''ToC''' template aligns the "Table of Contents" in a page. The table may now be able to float at the left or right of a page and the text should wrap around it. This template can improve page layouts in certain cases. It can also force-insert a table of contents in pages where there are not enough sections for an automatic insertion of a "Table of Contents". ==Usage== * {{t|ToC|align}} * {{t|ToC|align|clear|width|limit}} ===Optional parameters=..." current
  • 13:4413:44, 31 March 2022 diff hist +555 N Template:ToCCreated page with "{| id="toctemplate" align="{{#switch:{{{align|{{{1|left}}}}}}|right=right|center=center|left|#default=left}}" cellspacing=0 cellpadding=0 style="clear:{{{clear|left}}}; margin-bottom:0.5em; margin-right:1em; float:{{#switch:{{{align|{{{1|left}}}}}}|right=right|center=center|left|#default=left}}; padding:{{#switch:{{{align|{{{1|left}}}}}}|right=0.5em 0 0.8em 1.4em|#default=0.5em 1.4em 0.8em 0}}; background:none; width:{{{width|auto}}};" class="nomobile {{#if:{{{limit|}}}|..." current
  • 13:4313:43, 31 March 2022 diff hist +22,268 N Module:Infobox/docCreated page with "{{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> ===Map your argume..." current
  • 13:4313:43, 31 March 2022 diff hist +36,392 Module:InfoboxChange to a new version of infobox Tag: Reverted
  • 10:5810:58, 31 March 2022 diff hist +77 MediaWiki:Mobile.cssNo edit summary
  • 10:5510:55, 31 March 2022 diff hist 0 MediaWiki:Common.cssNo edit summary
  • 10:5410:54, 31 March 2022 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
  • 10:5310:53, 31 March 2022 diff hist +9,679 N Module:DPLluaCreated page with "-- <nowiki> local dpl = {} local libraryUtil = require( 'libraryUtil' ) 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 continue = true local startIndex = 1 while continue do loca..." current
  • 10:5210:52, 31 March 2022 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
  • 10:5110:51, 31 March 2022 diff hist +10,599 N Module:EnumCreated page with "-- <nowiki> awawa local libraryUtil = require('libraryUtil') local checkType = libraryUtil.checkType local checkTypeMulti = libraryUtil.checkTypeMulti local p = {} function p.all(enum, fn, clone) checkType('Module:Enum.all', 1, enum, 'table') checkType('Module:Enum.all', 2, fn, 'function', true) checkType('Module:Enum.all', 3, clone, 'boolean', true) if clone then enum = mw.clone(enum) end fn = fn or function(item) return item end for _, item in ipairs(enum) do..." current
  • 10:5110:51, 31 March 2022 diff hist +89 N Module:DependencyList/docCreated page with "<includeonly>{{#invoke:DependencyList|main}}</includeonly><noinclude>{{/doc}}</noinclude>" current
  • 10:5010:50, 31 March 2022 diff hist 0 m Module:DependencyListProtected "Module:DependencyList" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) current
  • 10:5010:50, 31 March 2022 diff hist +22,891 N Module:DependencyListCreated page with "-- <nowiki> local p = {} local libraryUtil = require( 'libraryUtil' ) local enum = require( 'Module:Enum' ) 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 = {} --- Used in case 'require( varName )' is found. Att..."
  • 10:5010:50, 31 March 2022 diff hist +985 N Template:Documentation/docCreated page with "{{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 the main template page,..." current
  • 10:4910:49, 31 March 2022 diff hist −32,944 Module:DocumentationNo edit summary current
  • 10:4810:48, 31 March 2022 diff hist −78 Template:DocumentationNo edit summary current
  • 10:4110:41, 31 March 2022 diff hist +11 MediaWiki:Common.cssFix template doc colors
  • 10:4010:40, 31 March 2022 diff hist +63 MediaWiki:Common.cssFix documentation colors
  • 10:3810:38, 31 March 2022 diff hist +3 MediaWiki:Common.cssNo edit summary

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