Search Results: Module:Str endswith/doc

Sorry, the article you're looking for isn't specifically available. Here are related topics:


Module:Str endswith
Sabtu, 2018-02-17 14:52:05

-- This module implements {{str endswith}}. local TRUE_STRING = 'yes' local FALSE_STRING = '' local p = {} local function trim(s) return s:match('^%s*(...

Click to read more »
Module:String
Jumat, 2022-01-28 01:50:39

local str = {} -- Cannot include null byte. local UTF8_char = "[\1-\127\194-\244][\128-\191]*" --[[ ulen Counts UTF-8 characters. Faster than mw.ustring...

Click to read more »
Module:Debug
Senin, 2020-04-27 08:06:08

format("%q", str), which does not use C-like simple -- escapes and does not escape bytes that are not used in UTF-8. escape = function (str) return (str...

Click to read more »
Module:Check isxn
Sabtu, 2017-03-04 05:19:47

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 '0'...

Click to read more »
Module:TaxonItalics
Jumat, 2019-11-22 02:34:59

"(" str = mw.ustring.sub(str,2,mw.ustring.len(str)) elseif mw.ustring.sub(str,1,1) == '"' then isQuoted = true result = '"' str = mw.ustring...

Click to read more »
Module:CallAssert
Sabtu, 2019-02-16 06:43:05

gsub end local str = tostring(value) if type(value) == 'table' and str ~= 'table' then return '{' .. str .. '}' end return str end local function...

Click to read more »
Module:StringReplace
Sabtu, 2017-02-25 09:26:56

local str = frame.args[1] local strToFind = frame.args[2] local strToreplaceWith = frame.args[3] local r = string.gsub(str, p.escape_pattern(strToFind)...

Click to read more »
Module:AFC submission catcheck
Kamis, 2017-04-27 09:05:59

local function removeFalsePositives(str) if not str then return '' end return mw.ustring.gsub(mw.ustring.gsub(str, "<!--.--->", ""), "<nowiki>.-</nowiki>"...

Click to read more »
Module:String utilities
Senin, 2020-04-27 08:11:21

["op"] = "{", ["cl"] = "}", } function export.format(str, tbl) return (string.gsub(str, "{(\\?)((\\?)[^{}]*)}", function (p1, name, p2) ...

Click to read more »
Module:Citation/CS1/Utilities
Kamis, 2020-10-15 01:12:54

<str> is wholly wrapped in accept-as-written markup, return <str> without markup and true; return <str> and false else with allow_empty = false, <str>...

Click to read more »
Module:Utils
Senin, 2020-04-27 08:11:32

find_common(str_1, str_2) if not str_1 or not str_2 then return 1 end for pos = 1, #str_1 do local char_1 = str_1:sub(pos, pos) local char_2 = str_2:sub(pos...

Click to read more »
Module:Weather box/row
Selasa, 2019-07-09 07:52:53

local val, str, precision if type(v) == 'string' then if v == 'trace' then val, str, precision = 0, 'trace', 0 else val, str = math_mod...

Click to read more »
Module:Road data/parser
Kamis, 2014-08-28 22:55:56

function formatStrInTable(formatStr) if type(formatStr) ~= "table" then return formatStr end formatTable = formatStr local hook = formatStr.hook local...

Click to read more »
Module:Transclusion count/data/S
Kamis, 2022-12-29 06:19:21

["Str_endswith"] = 175000, ["Str_find"] = 104000, ["Str_index"] = 12000, ["Str_left"] = 1240000, ["Str_len"] = 18000, ["Str_letter"] = 173000, ["Str_letter/trim"]...

Click to read more »
Module:Unicode data
Kamis, 2025-07-24 17:48:21

end function p.is_Latin(str) require "libraryUtil".checkType("get_best_script", 1, str, "string") str = mw.text.decode(str, true) -- Search for the...

Click to read more »
Module:Reply to
Sabtu, 2018-02-17 15:12:36

(args['c'] == '')) ) then outStr = outStr..',' end if i == maxArg then outStr = outStr..' '..(args['c'] or 'and') end outStr = string.format( ...

Click to read more »
Module:Complex date
Senin, 2023-02-13 21:49:35

local dateStr = langSwitch(i18n.Translations[operation], lang) if type(dateStr)=='table' then dateStr = dateStr[1] end if type(dateStr)=='function'...

Click to read more »
Module:Array
Senin, 2020-04-27 08:05:59

underscore_to_camel_case(str) if type(str) ~= "string" then return str end str = str:gsub("_(.)", string.upper) return str end local m_table, m_fun...

Click to read more »
Module:Hidden ping
Minggu, 2020-02-09 04:04:42

local outStr = '' for i = 1, maxArg do if args[i] then outStr = outStr..'[[:User:'..args[i]..'|&#x200B;]]' end end return outStr end end return...

Click to read more »
Module:Internet Archive
Sabtu, 2017-03-11 01:36:36

function p.ia_url_encode(str) if (str) then str = mw.ustring.gsub (str, "\n", "\r\n") str = mw.ustring.gsub (str, "([^%w %-%_%.%~])", ...

Click to read more »
Module:Citation/CS1
Minggu, 2022-10-23 22:19:13

unmodified. str may be a comma- or semicolon-separated list ]] local function hyphen_to_dash( str ) if not utilities.is_set (str) then return str; end...

Click to read more »
Module:Utilities
Senin, 2020-04-27 08:11:31

canonicalName = lang:getCanonicalName() str = mw.uri.encode(str, "WIKI") local id = canonicalName .. "-" .. str if invoked then return '<li class="senseid"...

Click to read more »
Module:Wd
Rabu, 2020-07-08 09:39:07

true else strOut = strOut .. replaceSpecialChar(chr) end else strOut = strOut .. chr esc = false end end return strOut end local...

Click to read more »
Module:Mapframe
Rabu, 2020-07-08 09:38:43

find(L10n.str.affirmedWords, ' '..val..' ', 1, true ) and true or false end --[[ Check if a value is declined (one of the values in L10n.str.declinedWords)...

Click to read more »
Module:Hatnote list
Sabtu, 2020-10-03 05:14:07

forSeeStr = string.format(options.forSeeForm, useStr, pagesStr) forSeeStr = punctuationCollapse(forSeeStr) table.insert(strList, forSeeStr) end...

Click to read more »
Module:Coordinates
Minggu, 2022-10-23 22:18:54

convert_dms2dec(direction, degrees_str, minutes_str, seconds_str) local degrees = tonumber(degrees_str) local minutes = tonumber(minutes_str) or 0 local seconds...

Click to read more »
Module:Gazette util
Minggu, 2022-10-23 22:23:08

language use. In this module, num_str is limited by calling functions to the integer values 1-99. The argument num_str must be known to be set before this...

Click to read more »
Module:DateI18n
Senin, 2023-02-13 21:58:15

split( String, '"', true )) do if i%2==1 then str = str:gsub(old, new) end table.insert(T, str) end return table.concat(T,'"') else return...

Click to read more »
Module:Collation
Senin, 2020-04-27 08:06:02

-- begin with the bytes 240 to 244. local function contains_non_BMP(str) return str:find '[\240-\244]' end do local byte, min = string.byte, math.min...

Click to read more »
Module:Term cleanup
Senin, 2020-04-27 08:11:23

lang") end end function containsRange(str, first, last) for codepoint in mw.ustring.gcodepoint(str) do if codepoint >= first and codepoint...

Click to read more »
Module:Ancient Greek
Kamis, 2018-07-26 11:36:54

ustring.toNFD local lower = ustring.lower local upper = ustring.upper local str_gmatch = string.gmatch local macron = U(0x304) local breve = U(0x306) local...

Click to read more »
Module:Greek
Kamis, 2018-02-22 07:38:55

local str_number = tostring(number) local highest_numeric_position = #str_number local i = 0 local index = '' for digit in str_number:gmatch"...

Click to read more »
Module:Asbox
Sabtu, 2021-01-30 20:55:31

v and v or (v[1] and Buffer(v[1]) or attention):_in(v.k):_(v.t):_str(2, nil, nil, '|') )] = true end end return cat.done and table.concat(p...

Click to read more »
Module:Hms
Senin, 2017-07-03 04:45:15

function p._error( error_str ) return '[[Category:Duration with input error]]<strong class="error">Error in Module:Hms: ' .. error_str .. '</strong>' end...

Click to read more »
Module:Table tools
Senin, 2020-04-27 08:11:22

end local unicode_range_str = table.concat(unicode_ranges, "") local notes_re = "[%*%~%@%#%$%%%^%&%+0-9_ " .. unicode_range_str .. "]*" local function...

Click to read more »
Module:Footnotes
Selasa, 2018-06-05 09:25:12

"", P4 = "", P5 = "" } }; function trim( str ) if str == nil then return nil; end return str:match( "^%s*(.-)%s*$"); end local function...

Click to read more »
Module:Buffer
Kamis, 2018-02-22 08:52:47

local str = tostring(v)--functions not filtered since unlikely passed by accident (Scribunto does not have userdata/thread types) if str~=v and str=='table'...

Click to read more »
Module:Authority control
Minggu, 2022-10-23 22:18:48

=============================]] function p.append(str, c, length) while str:len() < length do str = c .. str end return str end --Returns the ISNI check digit...

Click to read more »
Module:Labels
Senin, 2020-04-27 08:06:59

if data.special_display then local function add_language_name(str) if str == "canonical_name" then return canonical_name else return...

Click to read more »
Module:Fun
Senin, 2020-04-27 08:06:35

UTF-8-encoded codepoints in string. local function iterString(str) local iter = string.gmatch(str, "[%z\1-\127\194-\244][\128-\191]*") local i = 0 local...

Click to read more »
Module:RoundN
Rabu, 2018-06-27 12:32:48

'#C96', '#f9f9f9'}, reuseStr = {}, saveStr = function(self, name, ...) if not self.reuseStr[name] then self.reuseStr[name] = table.concat{...}...

Click to read more »
Module:Sports table/sub
Senin, 2018-06-25 09:04:19

name=hth_id, Args['hth_'..hth_loc]} } end end end end return {str=hth_string, list=hth_id_list, notes_exist=notes_exist} end return ppp...

Click to read more »
Module:Excerpt
Minggu, 2026-05-10 22:46:34

escape a string for use in regexes function Excerpt.escapeString( str ) return str:gsub( '[%^%$%(%)%.%[%]%*%+%-%?%%]', '%%%0' ) end -- Helper method...

Click to read more »
Module:Citation
Jumat, 2014-04-18 20:48:59

timeline = true, } } function trim( str ) if str == nil then return nil; end return str:match( "^%s*(.-)%s*$" ); end function...

Click to read more »
Module:Sports table
Minggu, 2022-10-23 22:19:49

replace that header by empty string local t_str = tostring(table.concat(t)) t_str = mw.ustring.gsub( t_str, results_header_txt, '' ) N_cols = N_cols-1...

Click to read more »
Module:Citation/CS1/Identifiers
Kamis, 2020-10-15 01:12:54

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...

Click to read more »
Module:ISOdate
Senin, 2023-02-13 21:54:31

datevec[3]~=nil) then local str = mw.getCurrentFrame():callParserFunction( "#time", { 'Y-m-d', datestr} ) local vec = {str:match( "^(%d%d?%d?%d?)-(%d%d...

Click to read more »
Module:Transcluder
Jumat, 2026-02-06 21:33:43

escape a string for use in regexes local function escapeString(str) return string.gsub(str, '[%^%$%(%)%.%[%]%*%+%-%?%%]', '%%%0') end -- Helper function...

Click to read more »
Module:Jct
Selasa, 2019-12-17 10:58:55

end local roadStr = '' local road = args.road if road then if args.toroad then roadStr = ' to ' .. road else roadStr = ' / ' .. road ...

Click to read more »
Module:Pl-noun
Senin, 2020-04-27 08:11:04

nonempty(str) if not str or str == "" then return nil else return str end end -- Generate a table contains true for each space-separated word in str local...

Click to read more »
Module:Webarchive
Minggu, 2022-10-23 22:20:36

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...

Click to read more »
Module:Series overview
Minggu, 2022-10-23 22:22:39

a 3D array local SeasonEntries = {} for k,v in pairs(args) do local str, num, str2 = string.match(k, '([^%d]*)(%d*)(%a*)') if num ~= '' then ...

Click to read more »
Module:WikitextParser
Rabu, 2026-02-11 21:55:10

escape a string for use in regexes local function escapeString( str ) return string.gsub( str, '[%^%$%(%)%.%[%]%*%+%-%?%%]', '%%%0' ) end -- Get the lead...

Click to read more »
Module:Taxonbar
Minggu, 2022-10-23 22:23:12

local outStr = '*<span style="white-space:nowrap;">' .. label .. ' <span' if withUid then outStr = outStr..' class="uid"' end return outStr..'>' .....

Click to read more »
Module:Clade
Minggu, 2022-10-23 22:21:39

t={} local i=1 for str in string.gmatch(inputstr, "([^"..sep.."]+)") do t[i] = str i = i + 1 end...

Click to read more »
Module:Autotaxobox
Minggu, 2022-10-23 22:21:34

taxonomy table with anomalous ranks marked local errorStr = '' if not orderOk then errorStr = 'yes' end local link = l.getTaxonLink(frame, taxon...

Click to read more »
Module:Form of/data
Senin, 2020-04-27 08:06:29

tags["strong"] = { tag_type = "state", glossary = "indefinite", shortcuts = {"str"}, wikidata = "Q53997857", -- Indefinite } tags["weak"] = { tag_type =...

Click to read more »
Module:La-pronunc
Senin, 2020-04-27 08:06:57

"fl", "fr", "sp", "st", "sk", "skʷ", "sl", "sm", "sn", "sw", "spr", "str", "skr", "spl", "skl", } local codas = { "b", "p", "pʰ", "d", "t", "tʰ"...

Click to read more »
Module:Ro-adjective
Senin, 2020-04-27 08:11:08

"gd_def_sg_f", "gd_def_pl_m", "gd_def_pl_f", } local consonants = { i = { str = 'ștr'; st = 'șt'; sc = 'șt'; d = 'z'; s = 'ș'; t = 'ț'; x =...

Click to read more »
Module:Sports table/WDL
Senin, 2018-06-25 09:03:50

team_list,team_code_ii,ii_start,ii_end,rand_val) hth_string = tt_return.str hth_id_list = tt_return.list notes_exist = tt_return.notes_exist --...

Click to read more »
Module:Ru-pron
Senin, 2020-04-27 08:11:12

'[' .. AC .. GR .. ']' local perm_syl_onset = ut.list_to_set({ 'spr', 'str', 'skr', 'spl', 'skl', -- FIXME, do we want sc? 'sp', 'st', 'sk', 'sf'...

Click to read more »
Module:Infobox gene
Minggu, 2018-06-03 13:56:15

local str_overall_results = table.concat(overall_results, sep) return str_overall_results end --[[ local results_split = mw.text.split(str_overall_results...

Click to read more »
Module:Languages/data3/s
Senin, 2020-04-27 08:08:12

East F; see [[WT:T:ASTQ]] scripts = {"Latn"}, family = "gmw-fri", } m["str"] = { canonicalName = "Saanich", scripts = {"Latn"}, family = "sal", }...

Click to read more »
Module:I18n/complex date
Senin, 2023-02-13 21:51:39

local str = 'lata '..(date1 % 100)..'. ' if (date1 % 100 == 0) then str = 'pierwsza dekada ' elseif (date1 % 100 == 10) then str = 'druga...

Click to read more »
Module:Language/data/ISO 639-3
Selasa, 2018-04-10 12:12:42

["stp"] = {"Southeastern Tepehuan"}, ["stq"] = {"Saterfriesisch"}, ["str"] = {"Straits Salish"}, ["sts"] = {"Shumashti"}, ["stt"] = {"Budeh Stieng"}...

Click to read more »
Module:Language/data/iana languages
Kamis, 2020-10-15 11:26:46

["stp"] = {"Southeastern Tepehuan"}, ["stq"] = {"Saterfriesisch"}, ["str"] = {"Straits Salish"}, ["sts"] = {"Shumashti"}, ["stt"] = {"Budeh Stieng"}...

Click to read more »
Module:Biota infobox
Minggu, 2022-10-23 22:23:26

seems to use genus and species before taxon name -- "| binomial = ''{{Str letter/trim|{{{genus|{{{taxon|<includeonly>{{PAGENAME}}</includeonly><no...

Click to read more »
Module:La-verb
Senin, 2020-04-27 08:06:58

bar) return retval end local function cfind(str, text) -- Constant version of :find() return str:find(text, nil, true) end local function form_is_empty(form)...

Click to read more »
Module:Routemap
Senin, 2018-05-07 01:03:44

_RGBbyCode(args) return RGBbyCode(args[1]) end local function properties(str) --str is a combination of properties with following syntax: --property name=value...

Click to read more »