| group1 = [[Trim (programming)|Trim]] by counting
* {{tl|Str mid}} – To return a substring, specified by its position and length.
…
5キロバイト (811 語) - 2014年6月11日 (水) 20:18
p.trim = function(frame)
return mw.text.trim(frame.args[1] or "")
…
17キロバイト (2,726 語) - 2025年8月14日 (木) 16:52
…in accept-as-written markup, return <str> without markup and true; return <str> and false else
with allow_empty = false, <str> must have at least one character inside the markup
…
24キロバイト (3,893 語) - 2025年3月18日 (火) 19:26
true : true (boolean), 1 (number), or strings: "yes", "y", "true", "1"
false : false (boolean), 0 (number), or strings: "no", "n", "false", "0"
…
19キロバイト (2,701 語) - 2023年5月8日 (月) 09:09
output_args[name] = string.gsub(value, "^%s*(.-)%s*$", "%1") -- trim whitespaces from the beggining and the end of the string
local function findInArray(str, list)
…
14キロバイト (2,026 語) - 2020年1月29日 (水) 13:27
local n = #results -- number of rows below
-- === * namespace - namespace number of the page calling the module ===
…
29キロバイト (3,781 語) - 2020年1月29日 (水) 13:27
output_args[name] = string.gsub(value, "^%s*(.-)%s*$", "%1") -- trim whitespaces from the beggining and the end of the string
…precision = math.max(math.min(precision,111000),5) -- bound precision to a number between 5 meters and 1 degree
…
38キロバイト (5,254 語) - 2020年1月29日 (水) 13:27
domain = domain:gsub ('(%a):%d+', '%1'); -- strip port number if present
local function safe_for_url( str )
…
227キロバイト (34,053 語) - 2025年8月14日 (木) 16:52