Jump to content

Search results

View (previous 20 | ) (20 | 50 | 100 | 250 | 500)
  • passed to Lua function. -- -- Example: -- {{#invoke:LuaCall|call|mw.log|a|1|2|3}} will return results of mw.log('a', 1, 2, 3) -- {{#invoke:LuaCall|call|mw...
    7 KB (892 words) - 06:59, 12 February 2025
  • If there is a problem debugging a module, it can be helpful to use a sandbox copy of the module to display the contents of a table to confirm that it...
    8 KB (1,027 words) - 21:10, 29 August 2024
  • error -- Raises a Lua error, effectively stopping the script unless handled with pcall. Should be used for debugging only. Example: sb:setMode('ignore'):append('My...
    3 KB (364 words) - 11:01, 20 October 2019
  • details below.) Arguments can be passed in directly from another Lua module or from the debug console. Most features can be customized. First, you need to...
    20 KB (1,915 words) - 22:01, 9 May 2025
  • https://github.com/stravant/LuaMinify. This module can be required and used from the Debug console, like the following: require("Module:Sandbox/Aidan9382/CodeAnalysis")...
    1 KB (168 words) - 07:37, 30 October 2023
  • you may notice when editing Val/units that it consists of two Lua string assignments, and Lua comments. Be careful. Questions or requests related to Val...
    24 KB (3,635 words) - 16:59, 5 May 2025
  • clearly seen in these examples! The wrapper function can de defined in the debugger, that is added in the text area for debugging. Add a separate function...
    11 KB (1,727 words) - 22:15, 2 May 2023
  • (defaults to ", ") -- @example concatWithKeys({a = 1, b = 2, c = 3}, ' => ', ', ') => "a => 1, b => 2, c => 3" -- function DebugHelper.concatWithKeys(table...
    20 KB (2,157 words) - 10:07, 21 October 2022
  • is 'foobar' (example needed) Whitespace is trimmed, The module is aimed at template code usage. (The editor does not have to apply Lua patterns like...
    13 KB (591 words) - 10:20, 7 August 2023
  • --[==[ This module is a Lua implementation of the old {{Portal}} template. As of February 2019 it is used on nearly 7,900,000 articles. -- Please take...
    17 KB (2,416 words) - 18:30, 24 May 2025
  • Otherwise -- assume args are being passed directly in from the debug console -- or from another Lua module. local origArgs if type( frame.getParent ) == 'function'...
    3 KB (408 words) - 21:03, 23 October 2022
  • Example/sandbox', 'Template talk:Example', 'sandboxTitle') self:assertEnvTitleEquals('Template:Example/sandbox', 'Template:Example/sandbox', 'sandboxTitle')...
    31 KB (3,052 words) - 07:31, 28 February 2024
  • Lua source. -- The main purpose is to allow easy inspection of Wikidata items. -- Preview the following in a sandbox to see entity Q833639 as a Lua table:...
    14 KB (2,091 words) - 07:35, 7 June 2021
  • --> |_alias-map=1:title, 2:author, 3:language This example uses positional parameters and sets |_debug=yes to show that the {{citation}} template is correctly...
    15 KB (1,341 words) - 06:45, 4 February 2025
  • test {\{ test, \test, \{,test\ \ \ {\ Note: The '%' char is a special in Lua, so use '%%' if that is the desired replacement. Otherwise, just a single...
    10 KB (758 words) - 08:11, 22 April 2025
  • --[==[ This module is a Lua implementation of the old {{Portal}} template. As of February 2019 it is used on nearly 7,900,000 articles. -- Please take...
    17 KB (2,416 words) - 18:07, 24 May 2025
  • Category:Articles using an unknown Template:Engvar option ISO 3166-1 alpha-2 -- The 2-letter country code {{#invoke:Engvar|explain|...}} - debugging...
    728 bytes (332 words) - 21:14, 29 August 2024
  • Otherwise assume args are being -- passed directly in from the debug console or from another Lua module. local origArgs if type( frame.getParent ) == 'function'...
    7 KB (980 words) - 21:08, 23 October 2022
  • year/month/day. Alternatively, a full date can be entered in a variety of formats. For example: {{age in years and months|year1=2001|month1=1|day1=10|year2=2...
    14 KB (961 words) - 22:51, 22 March 2025
  • -- Convert a value from one unit of measurement to another. -- Example: {{convert|123|lb|kg}} --> 123 pounds (56 kg) -- See [[:en:Template:Convert/Transwiki...
    134 KB (21,116 words) - 03:31, 23 October 2024
View (previous 20 | ) (20 | 50 | 100 | 250 | 500)