Search results

Jump to navigation Jump to search
View (previous 20 | ) (20 | 50 | 100 | 250 | 500)
  • ["Str_number"] = 8000, ["Str_number/trim"] = 139000, ["Str_rep"] = 305000, ["Str_right"] = 9640000, ["Str_sub_new"] = 3300, ["Str_trim"] = 5800, ["Str_≠_len"]...
    11 KB (1,334 words) - 13:07, 13 April 2023
  • str.len( frame ) local new_args = str._getParameters( frame.args, {'s'} ); local s = new_args['s'] or ''; return mw.ustring.len( s ) end --[[ sub...
    15 KB (2,375 words) - 20:16, 4 December 2021
  • if str:byte(pos) == comma and not quoted then str = str:sub(1,pos-1) .. newChar .. str:sub(pos+1, str:len()) end end return str end --...
    4 KB (398 words) - 13:11, 23 November 2021
  • nowiki(str) -- remove all the links if not str then return str end str = mw.ustring.gsub(str, "<[^>]*>", "") -- remove all html tags from str str =...
    10 KB (1,162 words) - 13:11, 23 November 2021
  • source_str = mw.text.trim(source_str) if source_str == '' or chars == '' then return source_str end local l_plain = p._getBoolean( new_args['plain']...
    12 KB (2,005 words) - 19:25, 4 December 2022
  • split(str, del) local out = {} local i, j = str:find(del) if i and j then out[1] = str:sub(1, i - 1) out[2] = str:sub(j + 1) else out[1] = str ...
    67 KB (9,029 words) - 18:54, 4 December 2022
  • matchAllTemplates(str) local matches = {} for template in string.gmatch(str, "{%b{}}") do table.insert(matches, template) local innerContent = string.sub(template...
    5 KB (631 words) - 22:39, 26 March 2023
  • the string in "..." local function strReplace(String, old, new) if String:find('"') then local T={} for i, str in ipairs(mw.text.split( String, '"'...
    16 KB (2,196 words) - 19:27, 4 December 2022
  • different tag based on presence of field2 if string.sub(tag,1,10) == 'wm-license' then tag = mw.message.new( tag ):inLanguage(args.lang):plain() -- label...
    48 KB (5,995 words) - 13:11, 23 November 2021
  • language:ucfirst(mw.language.fetchLanguageName( textLang, textLang)) local str = mw.ustring.format('<span class="language %s"><b>%s:</b></span>', textLang...
    20 KB (2,337 words) - 13:11, 23 November 2021
  • last three chars of str are sepc'' str = f.sub(str, 1, -4) .. "''"; -- remove them and add back '' elseif f.sub(str, -5, -1) == duplicate_char...
    209 KB (29,923 words) - 15:43, 14 January 2023
  • last three chars of str are sepc'' str = f.sub(str, 1, -4) .. "''"; -- remove them and add back '' elseif f.sub(str, -5, -1) == duplicate_char...
    215 KB (30,833 words) - 20:31, 10 April 2023
  • regexes pattern = escapeString(mw.ustring.sub(str, 1, 999)) .. '.-' .. escapeString(mw.ustring.sub(str, -999)) end return string.gsub(text, pattern...
    29 KB (4,236 words) - 13:47, 16 March 2023
  • coordsDerivedFromFeatures = ( argType == L10n.str.line or argType == L10n.str.shape ) and true or false end if argType == L10n.str.named then local namedCoords...
    41 KB (5,373 words) - 12:20, 21 March 2023
  • function ...:_in at the other module) Buffer( sep, i, j ) See also Buffer:_str for advanced string conversion. Get a Buffer as a string via a function call...
    86 KB (9,700 words) - 09:06, 27 December 2021
  • digits? date_str = mw.ustring.gsub (date_str, '%d', digits); -- convert this wiki's non-western digits to western digits end if date_str:match...
    38 KB (5,288 words) - 13:04, 22 October 2022
  • require('strict') local p = {} local getArgs = require('Module:Arguments').getArgs local str = require('Module:String') local yesno = require('Module:Yesno') local defaultSep...
    11 KB (1,544 words) - 01:35, 3 April 2023
  • '')) ) then outStr = outStr..', ' end if i == maxArg then outStr = outStr..' '..(args['c'] or 'and') .. ' ' end end outStr = string.format(...
    2 KB (246 words) - 03:55, 7 September 2021
  • local dateStr = langSwitch(i18n.Translations[operation], lang) if type(dateStr)=='table' then dateStr = dateStr[1] end if type(dateStr)=='function'...
    22 KB (2,926 words) - 03:12, 5 December 2021
  • characters. ]] local function is_valid_isxn (isxn_str, len) local temp = 0; isxn_str = { isxn_str:byte(1, len) }; -- make a table of byte values...
    72 KB (11,198 words) - 19:12, 20 February 2023
View (previous 20 | ) (20 | 50 | 100 | 250 | 500)