Search results

View ( | ) (20 | 50 | 100 | 250 | 500)
  • redirect parameter is missing. if not args[i] then return mHatnote.makeWikitextError( 'missing redirect parameter', 'Template:Redirect#Errors'...
    4 KB (490 words) - 22:15, September 11, 2021
  • -)%s*$') -- Trim whitespace -- Allow blank first parameters, as the wikitext template does this. if value ~= '' or key == 1 then return value...
    4 KB (618 words) - 13:25, October 24, 2022
  • attacker might try to exploit. -- It needs to be 'sanitised' by removing any wikitext before use. -- If it doesn't exist, return the id for the item -- a second...
    135 KB (17,493 words) - 19:47, August 21, 2020
  • p._redirectDistinguish(args) if not args[1] then return mHatnote.makeWikitextError( 'no redirect supplied', 'Template:Redirect-distinguish', ...
    2 KB (202 words) - 22:15, September 11, 2021
  • :addClass('plainlinks') :addClass(templateCfg.class) :cssText(templateCfg.style) :wikitext(blurb) return tostring(span) end setmetatable(p, { __index = function(t...
    5 KB (677 words) - 22:14, September 11, 2021
  • '-' .. numstr end end wikitext = spell_number(parms, inout, wholestr, numstr, denstr) or wikitext end return wikitext end local function format_number(parms...
    132 KB (20,570 words) - 19:38, August 21, 2020
  • caption = root:tag('caption') caption:cssText(args['titlestyle']) caption:wikitext(args['title']) end if isnotempty(args['above']) then local row = root:tag('tr')...
    6 KB (746 words) - 08:56, May 2, 2021
  • _For (args) local use = args[1] if (not use) then return mHatnote.makeWikitextError( 'no context parameter provided. Use {{other uses}} for "other...
    1 KB (179 words) - 23:18, September 11, 2021
  • -- This module de-links most wikitext. require("strict") local p = {} local getArgs local function delinkReversePipeTrick(s) if s:match("^%[%[|.*[|\n]")...
    7 KB (1,000 words) - 14:10, October 23, 2022
  • and mw.title.getCurrentTitle().namespace == 0 then return mHatnote.makeWikitextError( 'no page names specified', 'Template:Main#Errors', args...
    2 KB (305 words) - 19:36, October 16, 2020
  • '}}'; wikitext = wikitext.replace(template.wikitext, updatedTemplateWikitext); } else { // Remove template wikitext, including any preceding...
    29 KB (3,475 words) - 20:59, August 30, 2020
  • the International Phonetic Alphabet (IPA)') end s = tostring(span:wikitext(s)) end if audio then audio = require('Module:Yesno')(audio, audio)...
    3 KB (443 words) - 17:13, September 13, 2021
  • end --[[ Wrap as html?? local span = mw.html.create('span') span:wikitext(ret) --]] if _ne(args.debug) then ret = ret .. '\n<pre>' .. mw.text.encode(mw...
    3 KB (475 words) - 10:10, August 21, 2020
  • data.style then displaySpan:cssText(data.style) end displaySpan:wikitext(data.display) display = tostring(displaySpan) end -- Render the link...
    3 KB (500 words) - 11:39, August 21, 2020
  • defaults.template ) ) return '' else return mHatnote.makeWikitextError( msg.noInputWarning, (options.template or defaults.template)...
    5 KB (576 words) - 14:10, October 23, 2022
  • function ( wikitextResult ) { var wikitext = wikitextResult.query.pages[ 0 ].revisions[ 0 ].slots.main.content; var match = wikitext && wikitext.match(...
    33 KB (3,691 words) - 20:38, August 30, 2020
  • end --[[ Wrap as html?? local span = mw.html.create('span') span:wikitext(ret) --]] if _ne(args.debug) then ret = ret .. '\n<pre>' .. mw.text.encode(mw...
    4 KB (586 words) - 15:48, October 23, 2022
  • well-formed wikitext from input that may contain // possibly broken wikitext. // // Note: even just a half-baked sanitation of wikitext is hyper-complex...
    16 KB (1,782 words) - 19:43, September 2, 2020
  • function(wikitext) { var pattern = new RegExp(this.regex.nomTemplate); var matches = wikitext.match(pattern); if ( !matches ) { return wikitext; } if...
    204 KB (21,994 words) - 20:59, August 30, 2020
  • interfaceMessages['roles']; var wikitext = result.parse.wikitext['*']; var content = extractInfobox(wikitext); var infobox = that.infobox...
    24 KB (2,528 words) - 20:59, August 30, 2020
View ( | ) (20 | 50 | 100 | 250 | 500)