User:Est. 2021/modules/new

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

17 October 2022

  • 00:1000:10, 17 October 2022 diff hist +337 N Module:Icon/data/sandbox/docCreated page with '{{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> == Usage == <code><nowiki>{{</nowiki>#invoke:{{subst:BASEPAGENAME}}|''function_name''<nowiki>}}</nowiki></code> <includeonly>{{Sandbox other|| <!-- Categories below this line; interwikis at Wikidata --> }}</includeonly>' current
  • 00:0300:03, 17 October 2022 diff hist +2,067 N Module:Icon/sandboxCreated page with '-- This module implements Template:Icon. require("Module:No globals") local yesNo = require("Module:Yesno") local getArgs = require("Module:Arguments").getArgs local getPlain = nil local p = {} -- Determine whether we're being called from a sandbox local sandbox = mw.getCurrentFrame():getTitle():find('sandbox', 1, true) and '/sandbox' or '' -- Implements Template:Icon -- Returns the icon image corresponding to a string (like...'
  • 00:0000:00, 17 October 2022 diff hist +10,797 N Module:Icon/data/sandboxCreated page with '-- This module stores icon data for Module:Icon. -------------------------------------------------------------------------------- -- Icon data -------------------------------------------------------------------------------- local data = { fa = { image = "Featured article star.svg", tooltip = "Featured article", link = true, }, far = { image = "Cscr-star piece.png", tooltip = "Featured article review", link = true, }...' current

16 October 2022

  • 23:5923:59, 16 October 2022 diff hist +409 N Module:Icon/table/docCreated page with 'This module creates a test case template using data aggregated from Module:Icon/data and Module:Icon/data/sandbox. It is intended to be displayed at Template:Icon/testcases. == Usage == <code><nowiki>{{#invoke:icon/table|main}}</nowiki></code> == Output == {{#invoke:icon/table|main}} <includeonly>{{Sandbox other|| <!-- Categories below this line; interwikis at Wikidata --> }}</includeonly>' current
  • 23:5823:58, 16 October 2022 diff hist +2,950 N Module:Icon/tableCreated page with '-- Create a table of icons to display on the template test case page require("Module:No globals") local p = {} local m_iconData = mw.loadData("Module:Icon/data") local m_iconSandboxData = mw.loadData("Module:Icon/data/sandbox") local function mergeTables(...) local ret = {} for _, t in ipairs{...} do for k, v in pairs(t) do ret[k] = v end end return ret end local function reconstituteAliases(iconDataCollection) local ret...'
  • 23:5523:55, 16 October 2022 diff hist +2,152 N Module:Icon/data/docCreated page with 'This module stores icon data for Module:Icon. == Adding icons == To add a new icon, add a table in the following format: <syntaxhighlight lang="lua"> code = { image = "My image name.xyz", tooltip = "My tooltip text", link = true, }, </syntaxhighlight> The code should be in lower case. === Fields === * <code>image</code>: the image to be displayed. This should be without the <code>File:</code> prefix. So, if you wanted to...' current
  • 23:5423:54, 16 October 2022 diff hist +10,809 N Module:Icon/dataCreated page with '-- This module stores icon data for Module:Icon. -------------------------------------------------------------------------------- -- Icon data -------------------------------------------------------------------------------- local data = { fa = { image = "Featured article star.svg", tooltip = "Featured article", link = true, }, far = { image = "Cscr-star piece.png", tooltip = "Featured article review", link = true, }...'
  • 23:5323:53, 16 October 2022 diff hist +961 N Module:Icon/docCreated page with 'This module displays an icon depending on the code it is given. It implements Template:Icon. == Usage == === From wikitext === From wikitext this module should be used via Template:Icon. Please see the template page for documentation. === From Lua === To use this module from another Lua module, first load it: <syntaxhighlight lang="lua"> local mIcon = require('Module:Icon') </syntaxhighlight> Then you can make icons with the...' current
  • 23:5123:51, 16 October 2022 diff hist +2,067 N Module:IconCreated page with '-- This module implements Template:Icon. require("Module:No globals") local yesNo = require("Module:Yesno") local getArgs = require("Module:Arguments").getArgs local getPlain = nil local p = {} -- Determine whether we're being called from a sandbox local sandbox = mw.getCurrentFrame():getTitle():find('sandbox', 1, true) and '/sandbox' or '' -- Implements Template:Icon -- Returns the icon image corresponding to a string (like...'
  • 23:4423:44, 16 October 2022 diff hist +324 N Module:Time/docCreated page with '{{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> == Usage == <code><nowiki>{{</nowiki>#invoke:{{subst:BASEPAGENAME}}|''function_name''<nowiki>}}</nowiki></code> <includeonly>{{Sandbox other|| <!-- Categories below this line; interwikis at Wikidata --> }}</includeonly>' current
  • 23:3023:30, 16 October 2022 diff hist +124 N Module:Time/data/docCreated page with 'This module stores data relating to timezone that is used by Module:Time or any other module and templates that need it.' current
  • 23:2923:29, 16 October 2022 diff hist +20,233 N Module:Time/dataCreated page with ' --[[--------------------------< C O N F I G U R A T I O N D A T A >------------------------------------------ for internationalization, this section to hold constant text, parameter names and values, other items subject to language translation ]] local cfg = { ['default_df'] = 'mdy', -- default date format when |<df> and |df= omitted or empty ['df_vals'] = { ['dmy']=true, ['dmy12']=true, -- also 'y'...' current
  • 23:2723:27, 16 October 2022 diff hist +21,646 N Module:TimeCreated page with 'require ('Module:No globals') local yesno = require('Module:Yesno') local getArgs = require ('Module:Arguments').getArgs local tz = {}; -- holds local copy of the specified timezone table from tz_data{} local cfg = {}; -- for internationalization --[[--------------------------< I S _ S E T >------------------------------------------------------------------ Whether variable is set or not. A variable i...'