• text.unstripNoWiki(code) code = code:gsub('&lt;', '<'):gsub('&gt;', '>') for i, value in ipairs(args) do if i > offset then argstosub["i"] = i -...
    1 KB (194 words) - 18:02, 1 September 2024
  • be used from wikitext. It exports two functions: main - Implements {{For nowiki}}, which can be used with explicitly provided parameters. Should not be...
    2 KB (176 words) - 16:31, 9 March 2025
  • main(frame) local args = getArgs(frame) return p._main(args[1]) end function p._main(text) return '<nowiki>' .. text .. '</nowiki>' end return p...
    226 bytes (33 words) - 12:23, 19 October 2020
  • Module:Template test case (category Modules that check for strip markers)
    function p._exportClasses() -- For testing return { Template = Template, TestCase = TestCase, NowikiInvocation = NowikiInvocation, TableInvocation...
    25 KB (3,235 words) - 18:51, 4 July 2024
  • == 'nowiki' then ret[#ret + 1] = mw.text.nowiki(self.options.before or "") .. mw.text.nowiki(self:getTemplateOutput(obj)) .. mw.text.nowiki(self...
    25 KB (3,231 words) - 12:29, 13 July 2024
  • Tried to read index "' .. mw.text.nowiki(v) .. '" of mw.loadData("' .. mw.text.nowiki(k) .. '").' .. mw.text.nowiki(table.concat(args, '.')) .. ', which...
    819 bytes (124 words) - 19:03, 16 January 2021
  • getCurrentFrame():preprocess('<nowiki>[</nowiki>') or nc == ']' and mw.getCurrentFrame():preprocess('<nowiki>]</nowiki>') or nc == '{' and mw...
    6 KB (826 words) - 19:23, 28 August 2024
  • Module:UnitTests (category Modules for test tools)
    -- Tick/Cross (2 rows) ' \n| rowspan=2|', mw.text.nowiki(text), ' \n| ', -- Text used for the test (2 rows) expected, ' \n| ', actual, ...
    12 KB (1,674 words) - 11:39, 3 March 2025
  • value. Useful for comparing scripts to existing templates. self:preprocess_equals_preprocess('{{#invoke:Example | hello}}', '{{Hello}}', {nowiki=1})...
    6 KB (695 words) - 12:20, 20 January 2025
  • Tried to read index "' .. mw.text.nowiki(v) .. '" of mw.loadData("' .. mw.text.nowiki(k) .. '").' .. mw.text.nowiki(table.concat(args, '.')) .. ', which...
    1 KB (161 words) - 11:57, 5 October 2023
  • -- The magic word used in place of the template name when making nowiki -- invocations. templateNameMagicWord = '__TEMPLATENAME__', -- The subpage...
    3 KB (283 words) - 16:42, 17 October 2023
  • Module:Demo (category Modules for general use)
    getCurrentFrame():preprocess('<nowiki>}-</nowiki>')) -- outputting `&#125;-` instead of `}-`, while it's ok with `<nowiki>} -</nowiki>` :gsub('&#125;%-'...
    5 KB (672 words) - 02:31, 14 August 2024
  • Module:Page (category Modules for general use)
    == "expand" then text = frame:preprocess(text) elseif how == "nowiki" then text = mw.text.nowiki(text) end end return text end return p...
    2 KB (301 words) - 16:31, 22 March 2025
  • 'Universe{{#invoke:EditAtWikidata|showMessage|qid=Q1}}' ) end function p:test1_nowiki() self:preprocess_equals_preprocess( 'Universe{{#invoke:Edi...
    2 KB (279 words) - 10:39, 19 August 2018
  • {'title=[[Title]] |url=https://example.com'}, -- safe_for_url() }, {nowiki=false, templatestyles=true} ) end --[[--------------------------<...
    46 KB (5,610 words) - 20:06, 29 July 2023
  • local nowiki_open = (options and options.nowiki) and '<nowiki>' or '' local nowiki_close = (options and options.nowiki) and '</nowiki>' or '' ...
    7 KB (940 words) - 14:39, 4 April 2014
  • lines that should match for name, case in pairs(t_match) do self:equals('<b>'..name..'</b><br/><kbd><nowiki>'..case[1]..'</nowiki></kbd>',m._testline(case[1])...
    4 KB (498 words) - 18:42, 7 March 2022
  • category-inline |Lorem ipsum|Lorem ipsum}}' ) end function p:test01_columns_nowiki() self:preprocess_equals_preprocess( '{{#invoke:Template test...
    12 KB (1,480 words) - 05:07, 21 May 2022
  • handler\n\nCategories: <nowiki>[[Category:Agents of S.H.I.E.L.D. episodes|*]][[Category:Episode redirects to lists]]</nowiki>"}, {'test=Doctor Who character...
    8 KB (1,038 words) - 07:20, 6 May 2024
  • [=[{{#invoke:LuaCall|main|a=test&nbsp;|b=7|string.rep(a,b)}}]=], "<code>"..mw.text.nowiki([=[{{#invoke:LuaCall|main|a=test&nbsp;|b=7|string.rep(a,b)}}]=].."</code>"))...
    3 KB (375 words) - 06:59, 12 February 2025
  • '<strong class="error"></strong>'}, {'', '<strong class="error"></strong>', {nowiki = 'yes'}}, {' ', '<strong class="error"> </strong>'}, {'&#x20', '<strong...
    3 KB (346 words) - 15:48, 25 March 2022
  • languages/<nowiki>Central</nowiki>/<nowiki>Kolami–Naiki</nowiki>', 'Dravidian languages/<nowiki>Central</nowiki>/<nowiki>Parji–Gadaba</nowiki>'}, }, ...
    70 KB (7,114 words) - 17:31, 1 October 2013
  • [[Wikipedia:Articles for deletion]]</nowiki></pre>') self:preprocess_equals('{{#invoke:Redirect/sandbox|block|Module talk:Redirect/sandbox/data}}', '<pre><nowiki>==...
    4 KB (605 words) - 17:28, 22 November 2013
  • gsub(output,",</nowiki><br><nowiki>$","</nowiki><br><nowiki>") output = "<nowiki>return {</nowiki><br><nowiki>"..output.."}</nowiki>" return frame...
    9 KB (1,214 words) - 02:23, 11 May 2018
  • ((}}foo<nowiki>bar]]</nowiki>', '[[foobar]]'}, { '<nowiki>[[foo</nowiki>bar]]', '[[foobar]]'}, { '[http://www.exa<nowiki>mple.com foo]</nowiki>', '[http://www...
    14 KB (1,844 words) - 01:59, 29 September 2022
  • args = {'<nowiki>{{{1}}}</nowiki>'}, parentArgs = {'A', 'B', 'C'} }, { name = 'Separator', args = {'<nowiki>{{{1}}}</nowiki>', sep = '{{sp}}+{{sp}}'}...
    4 KB (470 words) - 20:43, 20 December 2024
  • Module:Row numbers (category Modules that check for strip markers)
    Find out if what we got for input has been wrapped in <nowiki>...</nowiki> tags if args[1]:match ('^%s*\127[^\127]*UNIQ%-%-nowiki%-%x%x%x%x%x%x%x%x%-QI...
    3 KB (446 words) - 18:00, 18 March 2023
  • .. '<nowiki>{{#invoke:ArgRest|main|<nowiki>{{{1}}}&lt;/nowiki>|1}}</nowiki>|a|b|c}}', 'abc') self:preprocess_equals(pre .. '<nowiki...
    8 KB (1,458 words) - 19:33, 15 April 2023
  • 1}|{Line 2}|Line 3}}', {nowiki=1}) self:preprocess_equals_preprocess(base, '{{interlinear|italics2=no|{Line 1}|{Line 2}|Line 3}}', {nowiki=1}) ...
    3 KB (381 words) - 13:21, 23 July 2019
  • stripmarker to be implemented for preprocess_equals_sandbox_many {'teXT <nowiki>TeXT</nowiki>', 'Text <nowiki>TeXT</nowiki>'}, }) end function p:test_ucfirst()...
    2 KB (268 words) - 12:20, 19 February 2025