Search Results: Module:String utilities/doc

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


Module:String
Jumat, 2022-01-28 01:50:39

the target string. Usage: {{#invoke:string|len|target_string|}} OR {{#invoke:string|len|s=target_string}} Parameters s: The string whose length...

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

local module_name = "string_utilities" local export = {} local rfind = mw.ustring.find local format_escapes = { ["op"] = "{", ["cl"] = "}", }...

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

replace operations on strings. local p = {} -- Takes one string parameter, and returns the string with all characters with special meaning for Lua patterns...

Click to read more »
Module:Check for unknown parameters
Kamis, 2020-10-15 01:12:52

-- create the list of known args, regular expressions, and the return string for k, v in pairs(args) do if type(k) == 'number' then v = trim(v)...

Click to read more »
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:Json
Senin, 2020-04-27 08:05:50

-- This function makes an effort to convert an arbitrary Lua value to a string -- containing a JSON representation of it. It's not intended to be very...

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

cladeString = cladeString .. '\n|-' cladeString = cladeString .. barLabelCellString cladeString = cladeString .. leafCellString cladeString...

Click to read more »
Module:Category relatit
Jumat, 2020-10-23 03:30:06

require('Module:Hatnote') local p = {} local function makeWikitextError(msg) return string.format( '<strong class="error">Error: %s ([[Template:Category relatit]])</strong>'...

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

-- Private helper method to escape a string for use in regexes local function escapeString( str ) return string.gsub( str, '[%^%$%(%)%.%[%]%*%+%-%?%%]'...

Click to read more »
Module:Flaglist
Kamis, 2020-01-02 12:41:03

Lua local w if string.find(size,"^%d+x%d+px$") then -- width and height (eg. 20x10px) -- use specified width w = tonumber(string.match(size,"(%d+)x%d+px"))...

Click to read more »
Module:CountryData
Kamis, 2017-04-20 12:28:47

equals/pipe signs s = string.gsub(s,"|([^|=]-)=","\1\1%1\2") s = string.gsub(s,"}}%s*$","\1") --Loop over string and add params to table ...

Click to read more »
Module:Math
Sabtu, 2021-03-13 06:12:28

tostring(number_string) elseif type(number_string) ~= 'string' or not number_string:find('%S') then -- We were passed a non-string or a blank string, so exit...

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

column headers local head_string if width=='auto' then head_string = '! scope="col" |'..text..'\n' else head_string = '! scope="col" width='..width...

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

then status_string = status_string..stack_string end if t_status.position == 'before' then status_string = status_string..'<span style="font-weight:bold">'...

Click to read more »
Module:Toolbar
Sabtu, 2018-02-17 14:55:40

string if no arguments were specified, rather than -- returning empty brackets. return '' elseif yesno(args.span) == false then return string.format(...

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

-- loop through all of the bytes and calculate the checksum if v == string.byte( "X" ) then -- if checkdigit is X (compares the byte value of 'X'...

Click to read more »
Module:Italic title
Minggu, 2022-10-23 22:20:41

Returns string. local function italicize(s) assert(type(s) == 'string', 's was not a string') assert(s ~= '', 's was the empty string') return...

Click to read more »
Module:TemplatePar
Rabu, 2023-04-19 21:20:37

message string in content language -- Precondition: -- say -- string; message ID -- Postcondition: -- Return some message string ...

Click to read more »
Module:Template invocation
Selasa, 2019-12-17 11:15:14

mw.title object. -- Description: This function detects whether a string or a mw.title -- object has been passed in, and uses that...

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

SeriesOverview.series_sort(op1, op2) local n1,s1 = string.match(op1,"(%d+)(%a*)") local n2,s2 = string.match(op2,"(%d+)(%a*)") local n1N,n2N = tonumber(n1)...

Click to read more »
Module:FindYDCportal
Kamis, 2020-01-02 12:30:41

otherwise return an empty string. If the parameter is missing, empty, or does not fit the required format, an empty string is returned" ]] local p...

Click to read more »
Module:Road data/util
Sabtu, 2023-07-29 07:08:20

error("Unexpected function type") end return e1 < e2 end local arrayToStringAux arrayToStringAux = function(arr, indent) if type(arr) ~= "table" then error("arr...

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

match = string.match(text, '%[%[%s*' .. v .. '%s*:.*%]%]') if match then break end end return match end -- Helper function to escape a string for use...

Click to read more »
Module:Taxonbar/exists
Selasa, 2019-07-09 03:32:05

new(pagename):getContent() or '' local found = string.match(content, '%{%{ *[Tt]axon?[ -]?[bB]ar') or string.match(content, '%{%{ *[Tt]axonIds') if found...

Click to read more »
Module:Sortkey
Selasa, 2019-12-24 08:10:10

Example: {{sort|{{dts|2013|07|07}}|{{dts|1990|12|01}}}} if string.find(sortkey, "sortkey") or string.find(sortkey, "data-sort-value") then return ""; end...

Click to read more »
Module:Hatnote
Sabtu, 2020-10-03 05:17:02

local function removeInitialColon(s) -- Removes the initial colon from a string, if present. return s:match('^:?(.*)') end function p.findNamespaceId(link...

Click to read more »
Module:Parameters
Senin, 2020-04-27 08:11:01

function to escape magic characters in a string -- Magic characters: ^$()%.[]*+-? local plain = require("Module:string").pattern_escape -- A helper function...

Click to read more »
Module:SportsRankings
Minggu, 2022-10-23 22:22:43

outputString = outputString .. frame:expandTemplate{ title = 'decrease' } if move ~= -1000 then outputString = outputString .. ' ' .. math...

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

= string.gsub(mw.text.trim(name), "</?i>", italMarker) name = string.gsub(string.gsub(name, "&#215;", "×"), "&times;", "×") name = string.gsub(name...

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

end local function quote(value) if type(value) == 'string' then return (string.gsub(string.format('%q', value), '\\\n', '\\n')) -- Outer parentheses...

Click to read more »
Module:Senseid
Senin, 2020-04-27 08:11:17

id) if not (type(id) == "string" or type(id) == "number") then error("The second argument to senseid should be a string or a number.") end return...

Click to read more »
Module:Stock tickers/NYSE
Senin, 2018-02-12 04:17:42

ticker = string.upper(ticker) -- NYSE.com formats for preferred shares / when issued -- Example: Input: PRE.PRD, Output: PREpD ticker = string.gsub(ticker...

Click to read more »
Module:Section link
Minggu, 2022-10-23 22:23:54

type(section) == 'string' then section = string.gsub(section, "{", "&#x7B;") section = string.gsub(section, "}", "&#x7D;") end return string.format('[[%s#%s|%s]]'...

Click to read more »
Module:Flagg
Selasa, 2019-12-17 11:28:00

space2emp(x) if string.find(x,"^%s*$") then return "" else return x end end function nopx(x) if x~=nil and (string.find(x,"^%d+$") or string.find(x,"^%d+px$"))...

Click to read more »
Module:DemoTemplate
Minggu, 2022-10-23 22:23:48

title) local ipairsArgs = {} for k,v in ipairs(frame.args) do if string.find(v, '=', 1, true) then break end ipairsArgs[k] = true printf('|%s'...

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

-- String replacement that ignores part of the string in "..." local function strReplace(String, old, new) if String:find('"') then local...

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

part of date string. Usage: {{#invoke:ISOdate|ISOyear|target_string}} Parameters 1: The date string Error Handling: If the string does not look...

Click to read more »
Module:Settlement short description
Selasa, 2019-12-17 09:29:15

{text, 'noreplace'}} end function p.category (cattype) local category = string.format('[[Category:Pages uisin infobox settlement wi bad %s]]', cattype)...

Click to read more »
Module:Relatit
Sabtu, 2020-10-03 05:34:35

args['label ' .. k] or args['l' .. k] local page = display and string.format('%s|%s', string.gsub(v, '|.*$', ''), display) or v pages[#pages + 1] = page...

Click to read more »
Module:Relatit/sandbox
Sabtu, 2020-10-03 05:33:12

args['label ' .. k] or args['l' .. k] local page = display and string.format('%s|%s', string.gsub(v, '|.*$', ''), display) or v pages[#pages + 1] = page...

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

local iterableTypes = { "table", "string" } local function _check(funcName, expectType) if type(expectType) == "string" then return function(argIndex...

Click to read more »
Module:Scots byleid note
Rabu, 2020-10-21 00:07:41

local fulltitle = frame:getParent():getTitle() local templatetitle = string.sub(fulltitle, 10) local title = mw.title.getCurrentTitle() if mw.title...

Click to read more »
Module:Year in various calendars
Senin, 2018-05-07 13:11:31

format "n BC" to their corresponding -- numerical values. if type( s ) ~= 'string' then return nil end s = mw.ustring.match( mw.ustring.upper( s ), '^([1-9]%d*)%s*BC$'...

Click to read more »
Module:Currency
Minggu, 2022-10-23 22:24:55

amount return string.format ('%s%s', symbol, amount); elseif 'bs' == position then -- spaced before the amount return string.format ('%s&nbsp;%s'...

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

tempsort#; appended after k (or in its place if omitted). Required if v is not a string Basically the same as v = (v[1] or attention) .. ' | ' .. (v.k or '')...

Click to read more »
Module:IPAc-en
Selasa, 2017-03-28 03:06:56

for tracking categories local categories = {} -- Trims whitespace from a string local function trim(s) return s:match('^%s*(.-)%s*$') end -- This implements...

Click to read more »
Module:IPAc-ro
Minggu, 2018-01-21 03:18:31

for tracking categories local categories = {} -- Trims whitespace from a string local function trim(s) return s:match('^%s*(.-)%s*$') end -- This implements...

Click to read more »
Module:Redirect
Jumat, 2022-01-28 01:50:33

getTargetFromText(text) local target = string.match( text, "^%s*#[Rr][Ee][Dd][Ii][Rr][Ee][Cc][Tt]%s*:?%s*%[%[([^%[%]|]-)%]%]" ) or string.match( text, ...

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

'-colspan-2\n----') res = string.gsub(res, '&lt;', '<') res = string.gsub(res, '&gt;', '>') if string.find(res, '!replace') or string.find(res, '|%s*bg%s*=')...

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

Convert a value to a string function export.dump(value, prefix, tsort) local t = type(value) prefix = prefix or "" if t == "string" then return '"'...

Click to read more »
Module:Protect
Kamis, 2019-02-28 03:00:53

options.removeLocation then message = string.gsub(message, '^Module:[^:]+:%d+: ', '', 1) end return string.format(options.errFormat, message) end...

Click to read more »
Module:Episode list
Minggu, 2015-11-08 07:52:44

AltTitle:find('%S') then title_string = title_string..'<br>"'..args.AltTitle..'"' end if args.RAltTitle then title_string = title_string..args.RAltTitle ...

Click to read more »
Module:Rail-interchange multi
Senin, 2019-09-23 08:25:32

i2 == 1 then args[i2] = (string.find((v2 or ''), '^%s*$') and default or v2) else args[i2] = (string.find((v2 or ''), '^%s*$') and nil...

Click to read more »
Module:Infobox/dates
Jumat, 2018-05-04 01:13:39

local pr1, m1, d1, y1, su1 = string.match(args['1'], '(.-)(%u%a+)%s(%d+),%s(%d+)(.*)'); local pr2, m2, d2, y2, su2 = string.match(args['2'], '(.-)(%u%a+)%s(%d+)...

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

if not self:isValid() then return nil end local display = self.string if display == 'trace' then if second then -- If a cell displays...

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

= tonumber(string.sub(d1,2,5)) local year2 = tonumber(string.sub(d2,2,5)) local k = 0 for i = 1,10,1 do if string.sub(d1,1,i)==string.sub(d2,1,i)...

Click to read more »
Module:AfC
Kamis, 2013-08-15 06:49:02

colorthing = p.color(status, false) local cols = {} cols[1] = string.format("[[:%s|%s]]", title, short) cols[2] = size if display_notes...

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

spaces for underscores for k,v in pairs(parents.args) do if type (k) == 'string' then -- no positional parameters --v = v:match('^%s*(.-)%s*$')...

Click to read more »
Module:Coxeter–Dynkin diagram
Selasa, 2019-12-17 11:29:38

style="display:inline-block;">' -- create and start the output string for v, x in ipairs(args) do -- process params...

Click to read more »
Module:Ancient Olympiads
Selasa, 2019-12-17 10:44:28

Olympiad creates autolink to same page, therefore eliminated here return string.format( '%s [[Olympiad]] ([[%s|victor]][[Winner of the Stadion race|)¹]]'...

Click to read more »
Module:Lua banner
Kamis, 2020-10-15 01:53:50

moduleLinks = {} for i, module in ipairs(modules) do moduleLinks[i] = string.format('[[:%s]]', module) local maybeSandbox = mw.title.new(module ....

Click to read more »
Module:Location map/multi
Minggu, 2022-10-23 22:20:53

switcherSeparate(s) if s == nil then return {} end local retval = {} for i in string.gmatch(s .. '#', '([^#]*)#') do i = mw.text.trim(i) retval[#retval +...

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

Args['ranking_style'] or 'pts' local show_points, show_perc = false ranking_style = string.lower(ranking_style) if ranking_style=='w' or ranking_style=='win' or...

Click to read more »
Module:OutputBuffer
Minggu, 2016-05-22 02:44:21

return table.concat(b, sep) end, function(text) buffer[#buffer + 1] = text end, function(...) buffer[#buffer + 1] = string.format(...) end end...

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

parameter names (unnumbered versions only) -- Specify each as either a single string, or a table of strings (aliases) -- Aliases are checked left-to-right...

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

display text only local function searchDisp(t, f) return string.find(string.sub(t, (string.find(t, '|') or 0) + 1), f) end for k, v in pairs(list)...

Click to read more »
Module:Portal bar
Minggu, 2022-10-23 22:19:57

:tag( 'span' ) :css( 'margin', 'auto 0.5em' ) :wikitext( string.format( '[[File:%s|24x21px]]', getImageName{ portal } ) ) :done() ...

Click to read more »
Module:TNT
Minggu, 2025-12-28 01:06:08

checkType('formatInLanguage', 1, lang, 'string') checkType('formatInLanguage', 2, dataset, 'string') checkType('formatInLanguage', 3, key, 'string') return formatMessage(dataset...

Click to read more »
Module:Main
Selasa, 2018-05-15 01:35:10

args['label ' .. k] or args['l' .. k] local page = display and string.format('%s|%s', string.gsub(v, '|.*$', ''), display) or v pages[#pages + 1] = page...

Click to read more »
Module:Navseasoncats
Jumat, 2020-01-03 10:35:20

== '' then return nil end local dec = string.match(decade, '^[-%+]?(%d?%d?%d?0)$') or string.match(decade, '^[-%+]?(%d?%d?%d?0)%D') if dec...

Click to read more »
Module:UserLinks/shared
Senin, 2018-04-23 02:06:50

display = formatDisplay(display) return string.format('[[%s|%s]]', formattedPage, display) else return string.format('[[%s]]', formattedPage) end end...

Click to read more »
Module:Language/scripts
Minggu, 2017-05-28 21:17:18

type(tostring(text)) == "string" then local count = countCharacters(text, "Latn") if count < (length(text) / 4) then -- Only 25% of characters in string are Latin...

Click to read more »
Module:Purge
Selasa, 2016-07-26 16:06:46

[[Template:Purge]]. local p = {} local function makeUrlLink(url, display) return string.format('[%s %s]', url, display) end function p._main(args) -- Make the...

Click to read more »
Module:Navbox with striping
Selasa, 2016-06-28 08:15:59

listcount = 0 local t = {} for k,v in pairs(args) do if type(k) == 'string' and k:match('^list[0-9][0-9]*$') then if( v and v ~= '') then listcount...

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

end end if usernames > (tonumber(frame.args.max) or 50) then return string.format( '<strong class="error">Error in [[Template:Reply to]]: More than...

Click to read more »
Module:File link
Kamis, 2022-01-20 20:04:00

level) if type(val) ~= 'string' then error(string.format( "type error in '%s' parameter of '_main' (expected string, got %s)", key, type(val)...

Click to read more »
Module:Shortcut
Jumat, 2022-01-28 01:50:37

newRawMessage(msg, ...):plain() end local function makeCategoryLink(cat) return string.format('[[%s:%s]]', mw.site.namespaces[14].name, cat) end function p._main(shortcuts...

Click to read more »
Module:TaxonList
Senin, 2018-06-04 02:24:20

2,#taxonName) dagger = '†' else if string.sub(taxonName,1,8) == '&dagger;' then taxonName = string.sub(taxonName,9,#taxonName) dagger = '†'...

Click to read more »
Module:ParseVauthors
Sabtu, 2017-10-21 11:33:23

local lastfirstTable local nauthors if vauthors then if string.find(vauthors, ';') or string.find(vauthors, '%.') then verror = true -- Vancouver author...

Click to read more »
Module:Road data/parser/hooks
Kamis, 2014-08-28 23:06:43

route local paddedLength = parameters.paddedLength args.paddedRoute = string.format("%0" .. tostring(paddedLength) .. "d", route) return parameters...

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

a string from a text -- @param text Text from where to remove the string -- @param str String to remove -- @return The given text with the string removed...

Click to read more »
Module:If preview
Kamis, 2018-02-22 08:08:13

else result = frame.args[1] or ''; -- no value (nil or empty string) so this is a preview end return result end --[[ pmain This function...

Click to read more »
Module:Dts
Jumat, 2017-05-26 04:37:27

error(string.format( 'years cannot be less than %s', lang:formatNum(-MAX_YEAR) ), 0) elseif self.year > MAX_YEAR then error(string.format(...

Click to read more »
Module:R:M&A
Senin, 2020-04-27 08:05:51

phrase list, and returned to the caller. When no match is found, an empty string is returned. Approximately 78% of the words in Meissner and Auden's phrase...

Click to read more »
Module:Respell
Rabu, 2017-11-01 10:52:06

if mw.ustring.find(v, '%u') and v == mw.ustring.upper(v) then v = string.format("'''%s'''", v) end if i ~= 1 and not hasUnsc[i - 1] and v...

Click to read more »
Module:Shortcut/config
Jumat, 2022-01-28 01:50:38

error message to display when a shortcut is invalid (is not a string, or -- is the blank string). It accepts the following parameter: -- $1 - the number of...

Click to read more »
Module:Message box
Selasa, 2025-07-15 09:49:30

return nil end if sort then cat = string.format('[[Category:%s|%s]]', cat, sort) else cat = string.format('[[Category:%s]]', cat) end self...

Click to read more »
Module:Current events calendar
Sabtu, 2014-06-07 19:43:18

makeWikilink(link, display) if display then return string.format('[[%s|%s]]', link, display) else return string.format('[[%s]]', link) end end function p...

Click to read more »
Module:TeamBracket-Compact-Tennis
Jumat, 2015-05-22 23:59:42

team) local argname = string.format('RD%d-%s' .. padding, round, type, team) local value = args[argname] if not value or string.len(value) == 0 then...

Click to read more »
Module:Tone superscript
Selasa, 2019-12-17 10:57:20

"<sup>%1</sup>") root:tag('span'):wikitext(x) local tracking = '' if string.match(arg, "</?sup>") then tracking = '[[Category:Pages uisin Tone superscript...

Click to read more »
Module:Track listing
Jumat, 2018-02-23 01:30:22

length is not of type string or nil. function Validation:validateLength(length) checkType('validateLength', 1, length, 'string', true) if length ==...

Click to read more »
Module:Random portal component
Senin, 2018-06-04 01:29:53

braces. local val = args[key] if val then return val else return string.format('{{{%s}}}', key) end end local function getPages(args) local pages...

Click to read more »
Module:Yesno
Jumat, 2021-04-09 09:44:13

"mw.ustring.lower(val)" in the -- following line. val = type(val) == 'string' and val:lower() or val if val == nil then return nil elseif val ==...

Click to read more »
Module:Redirect-distinguish
Selasa, 2017-04-11 07:57:03

'[[Category:Airticles wi redirect hatnotes needin review]]' end elseif not string.match(args[1], 'REDIRECT%d+') and not args[1] == 'TERM' then args[1] =...

Click to read more »
Module:Language/text
Senin, 2019-12-23 08:14:09

plain(code, text, options) checkType("plain", 1, code, "string") checkType("plain", 2, text, "string") checkType("plain", 3, options, "table", true) options...

Click to read more »
Module:Gaps
Sabtu, 2017-09-02 03:19:20

ret:wikitext(args.lhs .. ' = ') end local gap = string.lower(args.gap or '') local gapSize, gapUnit = string.match(gap,'([%d%.]+)%s*([ep][mnx])') local...

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

test passes year = year_string:match ('(%d%d%d%d?)'); if date_string:match ('%d%d%d%d%-%d%d%-%d%d') and year_string:match ('%d%d%d%d%a') then --special...

Click to read more »
Module:Pt-conj
Senin, 2020-04-27 08:11:05

'erir-defective' then group = 'ir' else group, _ = string.gsub(ending, "%d+$", "") group = string.sub(group, #group-1) end if group == "" then...

Click to read more »
Module:Unicode data/control
Senin, 2025-07-28 22:41:41

cols in ipairs(data.data) do if cols[1] and cols[2] then first_char=string.sub(cols[2], 1, 1) if first_char == "C" or first_char == "Z" then ...

Click to read more »
Module:Unicode data/scripts
Selasa, 2025-07-29 23:29:54

ipairs(data.data) do if cols[1] and cols[2] then result.aliases[cols[1]]=string.gsub(cols[2], "_", " ") end end result.rtl = {} for _, script in...

Click to read more »
Module:Convert character width
Rabu, 2017-04-26 05:47:04

s = type( s ) == 'number' and tostring( s ) or s if type( s ) ~= 'string' then return end return ( mw.ustring.gsub( s, '.', getFull ) ) end ...

Click to read more »
Module:WikidataCoord
Minggu, 2022-10-23 22:21:50

function takes up to two unnamed positional parameters: 1 = coordinate string typically from a call to Wikidata like this: {{#property:P625|from=Q...}}...

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

neededhassubpage -- A helper function to escape magic characters in a string -- Magic characters: ^$()%.[]*+-? function export.pattern_escape(text) ...

Click to read more »
Module:Other uses of
Rabu, 2016-09-28 00:53:04

local page = getArg(2) local options = { title = ofWhat, otherText = string.format('uses of "%s"', ofWhat) } arg = page and {page} or {} return mOtheruses...

Click to read more »
Module:Hi-translit
Senin, 2020-04-27 08:06:43

"") .. '])([ंँ]?[' .. vowel .. vowel_sign .. '])' local function rev_string(text) local result, length = '', mw.ustring.len(text) for i = 1, length...

Click to read more »
Module:Uses TemplateStyles
Jumat, 2019-12-20 08:40:54

then sandboxLink = string.format(' ([[:%s|sandbox]])', tsSandboxTitle.prefixedText) end end tStylesLinks[i] = string.format('[[:%s]]%s', ts...

Click to read more »
Module:ConvertNumeric
Selasa, 2020-01-28 08:18:30

function roman_to_numeral(roman) if type(roman) ~= "string" then return -1, "roman numeral not a string" end local rev = roman:reverse() local raising...

Click to read more »
Module:ParameterCount
Sabtu, 2017-03-11 00:57:17

require('Module:Yesno') -- Trim a string local function trim(s) return s:match('^%s*(.-)%s*$') end -- Test whether a string is blank local function isBlank(s)...

Click to read more »
Module:Labelled list hatnote
Selasa, 2019-12-17 11:25:05

display then break end end local page = display and string.format('%s|%s', string.gsub(v, '|.*$', ''), display) or v pages[#pages + 1] = page...

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

byte ASCII characters use the string library functions f.gsub = string.gsub f.match = string.match f.sub = string.sub else --...

Click to read more »
Module:Large category TOC
Minggu, 2016-05-22 02:45:22

0–9]' } for _, v in ipairs(azupper) do table.insert(header_content,string.format(' [%s?from=%s %s]',pageurl,v,v)) end header:wikitext(table...

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

getCurrentTitle() local namespace = title.namespace local testcases = (string.sub(title.subpageText,1,9) == 'testcases') --[[=======================...

Click to read more »
Module:R:Perseus
Senin, 2020-04-27 08:05:53

format_perseus_wikilink end local function lower_dashed(w) return string.gsub(string.lower(w), " ", "-") end local function remove_diacritics(x) return...

Click to read more »
Module:No ping
Jumat, 2014-05-09 10:21:42

_main(args) local ret = {} local fullUrl = mw.uri.fullUrl local format = string.format for i, username in ipairs(args) do local url = fullUrl(mw.site...

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

= "MT" elseif string.find(string_to_trim, 'chromosome') then out = string.match(string_to_trim, "%d+")--extract number from string if out == nil...

Click to read more »
Module:Team appearances list
Sabtu, 2017-04-29 09:25:54

is a string, return its trimmed content, or nil if empty. -- Otherwise return text (which may, for example, be nil). if type(text) == 'string' then...

Click to read more »
Module:Infobox road/color/GBR
Rabu, 2018-03-07 15:10:40

= args.type local subtype = args.subtype subtype = subtype and string.lower(subtype) or '' local colorFunc = self[type] return colorFunc...

Click to read more »
Module:BaseConvert
Rabu, 2013-07-03 09:32:39

precision, width, default, prefix, suffix) n = '' .. n -- convert to a string -- strip off any leading '0x' (unless x is a valid digit in the...

Click to read more »
Module:NUMBEROF
Kamis, 2023-09-07 04:56:00

reading the cached table, and gives the current value. local localSite = string.match(mw.site.server, '.*//(.*)%.org$') -- examples: 'af.wikipedia', 'commons...

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

western digits local prefixes = {}; -- service provider tail string prefixes local services = {}; -- archive service provider...

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

type(greek_number) ~= 'string' then return 'Error: value ' .. greek_number .. ' is ' .. type(greek_number) .. ' instead of expected string' end -- iterate...

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

if index < 0 then index = #self + index + 1 end return index end -- string.sub-style slicing. function array_methods:slice(i, j) if i == nil then...

Click to read more »
Module:Unsubst
Senin, 2018-06-04 23:35:27

args[BODY_PARAM] ~= nil then return frame.args[BODY_PARAM] else error(string.format( "no template content specified (use parameter '%s' from #invoke)"...

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

"number" then return error(string.format(...), level + 1) else -- level is actually the format string. return error(string.format(level, ...), 2) end...

Click to read more »
Module:High-use
Kamis, 2022-12-29 06:25:46

args[1]) end else count = _fetch(frame) end end -- Build output string local return_value = "" if count == nil then if frame.args[1] == "risk"...

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

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

Click to read more »
Module:Icon
Selasa, 2018-01-30 07:46:33

data[code] end if not iconData then iconData = data._DEFAULT end return string.format( '[[File:%s%s|%s|link=]]', iconData.image, iconData.tooltip...

Click to read more »
Module:Category handler/blacklist
Jumat, 2022-01-28 01:49:58

subpages. -- "%f[/\0]" matches if the next character is "/" or the end of the string. '^Wikipedia:Cascade%-protected items%f[/\0]', '^User:UBX%f[/\0]', --...

Click to read more »
Module:Portal
Jumat, 2019-12-20 08:40:54

ustring.lower(thisPage.text) if (string.match(thisPageLC, "/archive") ~= nil) then return false end if (string.match(thisPageLC, "/doc") ~= nil)...

Click to read more »
Module:Category described in year
Minggu, 2022-10-23 22:23:29

tonumber(i) then local s = tostring(i) local tens = string.match(s, '1%d$') local ones = string.match(s, '%d$') if tens then return s...

Click to read more »
Module:Ns has subpages
Jumat, 2017-03-10 05:05:59

majority of cases. local nsTable = mw.site.namespaces[ns] -- Try using string matching to get the namespace from page names. -- Do a quick and dirty...

Click to read more »
Module:Distinguish
Jumat, 2017-03-17 10:57:42

1, args, 'table') if #args == 0 then return '' end local text = string.format( 'Nae tae be confused wi %s.', mHatlist.orList(args, true) )...

Click to read more »
Module:Hatnote inline
Rabu, 2017-05-03 12:07:22

['</div>$'] = '</span>' } for k, v in pairs(subs) do hatnote = string.gsub(hatnote, k, v) end end return hatnote end p.hatnote = p.hatnoteInline...

Click to read more »
Module:Wikidata
Senin, 2020-09-28 23:19:08

-- Argument is 'set' when it exists (not nil) or when it is not an empty string. local function isSet(var) return not (var == nil or var == '') end --...

Click to read more »
Module:Gender and number
Senin, 2020-04-27 08:06:37

valid_genders[spec] then -- local valid_string = {} -- for i, g in ipairs(langinfo.genders) do valid_string[i] = g end -- error("The gender specification...

Click to read more »
Module:ISO 3166
Kamis, 2020-10-15 03:12:42

local code2 = '' if string.find(code1,"%-") then code1, code2 = string.match(code1,"^([^%-]*)%-(.*)$") end if string.find(code1,"^%u%u$") then...

Click to read more »
Module:Pagetype
Senin, 2018-04-23 02:43:31

for other input. local ret = yesno(val, val) if ret and type(ret) ~= 'string' then ret = cfg.pagetypes[namespace] end return ret end local function...

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

'</small>' -- \n' end contentString = bold .. templateArgs[target] .. bold .. authorityString .. '\n' --contentString = '\n' .. bold .. templateArgs[target]...

Click to read more »
Module:NumberSpell
Selasa, 2016-06-21 23:51:37

result = pcall(p._main, num) if success then return result else return string.format('<strong class="error">Error: %s</strong>', result) -- "result" is...

Click to read more »
Module:Delink
Minggu, 2022-10-23 22:20:13

not type(s) == "string" then error("Attempt to de-link non-string input.", 2) end if not ( type(pattern) == "string" and mw.ustring.sub(pattern...

Click to read more »
Module:Requested move
Kamis, 2023-11-23 17:20:00

commented = commented .. string.format('|current%i=%s', i, (numargs[i]['current'] or '')) commented = commented .. string.format('|new%i=%s', i, (numargs[i]['new']...

Click to read more »
Module:Uses Wikidata
Kamis, 2020-10-15 01:13:07

svg|middle|4px|link=]] <b><i>[[d:Property talk:" .. p_num .. "|" .. label .. " (" .. string.upper(p_num) .. ")]]</i></b> (see <span class='plainlinks'>[https://query...

Click to read more »
Module:Details
Selasa, 2018-05-15 08:14:20

mHatnote._formatLink(page) topic = topic or 'this topic' local text = string.format('For mair details on %s, see %s.', topic, page) options = options...

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

string.sub(genus1,1,1) .. "." -- shorten generic names for intrageneric hybrids genus2 = string.sub(genus2,1,1) .. "." genus3 = string.sub(genus3...

Click to read more »
Module:Lang/utilities
Minggu, 2022-10-23 22:22:07

string causes 'yes' return; {{lang}} will handle the missing code error local text = frame.args[2] or frame.args['text'] or ''; -- empty string...

Click to read more »
Module:Fro-headword
Senin, 2020-04-27 08:06:34

pluralize(PAGENAME) -- Insert PART, either a string or array, into TAB. If PART is a string, -- split on commas. local function insert_part(tab...

Click to read more »
Module:Headword
Sabtu, 2023-04-08 08:22:19

"string" }, sort_key = { type = "string" }, id = { type = "string" }, } local function test_script(text, script_code) if type(text) == "string" and...

Click to read more »
Module:Clickable button 2
Selasa, 2017-01-31 05:51:01

then link = string.format('[%s %s]', data.link, display) else link = string.format('[[%s|%s]]', data.link, display) end return string.format('<span...

Click to read more »
Module:Collapsible list
Kamis, 2020-10-15 03:48:31

]]' end local function getListItem( data ) if not type( data ) == 'string' then return '' end return mw.ustring.format( '<li style="line-height:...

Click to read more »
Module:Pagelist
Sabtu, 2014-01-18 06:14:45

parameter. local function getSeparator( sep ) if sep and type(sep) == 'string' then if sep == 'dot' or sep =='pipe' or...

Click to read more »
Module:Namespace detect/data
Jumat, 2022-01-28 01:50:10

parameter names will always work. The cfg table -- values can be added as a string, or as an array of strings. local defaultKeys = { 'main', 'talk', 'other'...

Click to read more »
Module:Convert/wikidata
Selasa, 2018-01-30 07:50:04

is a non-empty string, return its trimmed content, -- otherwise return nothing (empty string or not a string). if type(text) == 'string' then return...

Click to read more »
Module:Gapnum
Rabu, 2016-04-13 03:24:20

then frac_part = frac_part .. string.rep('0', offset) end -- Allow groups of 3 or 2 (3 first) for v in string.gmatch(frac_part,'%d%d%d?') do ...

Click to read more »
Module:Grc-utilities
Senin, 2020-04-27 08:06:38

text = export.reorderDiacritics(text) if type(text) ~= "string" then error("Text is not a string", 2) end local tokens = {} -- token tracks our position...

Click to read more »
Module:Category handler
Jumat, 2022-01-28 01:49:57

local function trimWhitespace(s, removeBlanks) if type(s) ~= 'string' then return s end s = s:match('^%s*(.-)%s*$') if removeBlanks then...

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

end function onlyinprint(content) return "" end -- This returns a string with HTML character entities for wikitext markup characters. function wikiescape(text)...

Click to read more »
Module:UserLinks
Sabtu, 2018-02-17 15:15:53

is a -- string and that it is not the blank string. Returns the code if -- the check passes, and nil if not. if type(code) == 'string' and code...

Click to read more »
Module:Xpsoc
Rabu, 2017-04-19 08:45:54

frame:preprocess(mTemplateInvocation.invocation(name, invArgs)) return string.format('<code>%s</code> %s %s', invocation, gives, result) end function...

Click to read more »
Module:Languages
Senin, 2023-03-06 07:19:41

tostring(param)) .. ", but it should be a number or a string." .. template_tag, 2) end -- Can use string.find because language codes only contain ASCII....

Click to read more »
Module:Form of
Minggu, 2020-11-01 12:28:51

of this to directly call [[Module:string utilities]]. function export.ucfirst(text) return require("Module:string utilities").ucfirst(text) end function...

Click to read more »
Module:Roman
Sabtu, 2019-07-13 05:38:20

-- Gets the Roman numerals for a given numeral table. Returns both the string of -- numerals and the value of the number after it is finished being processed...

Click to read more »
Module:Pages with authority control identifiers
Minggu, 2022-10-23 22:21:23

information' local outString = txCatMore..txWPCat..'\n'.. '[[Category:'..pagesCat..'|'..id..']]'..redCatCheck(pagesCat) return outString end end return...

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

function add_forms(wikitable, forms) if type(wikitable) ~= 'string' then error('Expected string, got ' .. type(wikitable)) end wikitable =...

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

for i,x in pairs(xs) do ys[i]=f(x) end return ys end function map_string(f, s) local ys = {} for i = 1,#s do ys[i]=f(s:sub(i,i)) end return...

Click to read more »
Module:Infobox road/route
Sabtu, 2023-07-29 07:08:52

'banner') if not shield or shield == '' then return nil else return string.format('[[File:%s|%s|alt=%s]]', shield, bannerSize, alt) end end local...

Click to read more »
Module:Video gemme reviews
Minggu, 2022-10-23 22:21:54

{}, {} for k in pairs(args) do if string.match(k, '^rev%d+$') then table.insert(reviewers, k) elseif string.match(k, '^agg%d+$') then table.insert(aggregators...

Click to read more »
Module:Exponential search
Kamis, 2020-10-15 11:08:50

and (init < 1 or init ~= floor(init) or init == math.huge) then error(string.format( "invalid init value '%s' detected in argument #2 to " .. "'Exponential...

Click to read more »
Module:Arguments
Sabtu, 2021-03-13 06:11:50

we call it. local function tidyValDefault(key, val) if type(val) == 'string' then val = val:match('^%s*(.-)%s*$') if val == '' then return nil...

Click to read more »
Module:Table
Sabtu, 2020-09-19 04:00:25

checkTypeMulti local function _check(funcName, expectType) if type(expectType) == "string" then return function(argIndex, arg, nilOk) checkType(funcName, argIndex...

Click to read more »
Module:Babel
Sabtu, 2019-12-21 01:47:32

'px' } ) local nocat = args.nocat and string.lower(args.nocat) == 'yes' if args.shadow and string.lower(args.shadow) == 'yes' then ret:css({...

Click to read more »
Module:Protection banner
Rabu, 2026-02-18 15:57:12

formatDate, lang, 'U', dateString) if success then result = tonumber(result) if result then return result end end error(string.format( 'invalid...

Click to read more »
Module:Language
Minggu, 2022-10-23 22:24:19

mw.ustring.lower local upper = mw.ustring.upper local function checkForString(variable) return variable ~= "" and variable ~= nil end local function...

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

else title=''; -- if not set, make sure title is an empty string end if is_set (script) then script = script:gsub ('^%l%l%s*:%s*', '');...

Click to read more »
Module:IPAc-en/data
Rabu, 2016-06-22 00:49:56

instead. for id in pairs(pronunciation) do if phonemes[id] then error(string.format( "duplicate ID '%s' found in %s and %s", id, PRONUNCIATION_MODULE...

Click to read more »
Module:ResolveEntityId
Selasa, 2019-07-09 04:21:09

function return p._id(id,alt) end function p._id(id,alt) if type(id) == 'string' then id = mw.ustring.upper(mw.ustring.sub(id,1,1))..mw.ustring.sub(id...

Click to read more »
Module:IPAc-ro/data
Minggu, 2018-01-21 03:19:11

instead. for id in pairs(pronunciation) do if phonemes[id] then error(string.format( "duplicate ID '%s' found in %s and %s", id, PRONUNCIATION_MODULE...

Click to read more »
Module:Video gemme wikidata
Jumat, 2017-08-11 00:06:43

"") then df = string.lower(iDf); end; end; function p.setSystemFormat(iSf) if(iSf ~= nil and iSf ~= "") then systemFormat = string.lower(iSf); end;...

Click to read more »
Module:Infobox road
Sabtu, 2023-07-29 07:07:52

header_type == nil then header = args.header_type else header = string.lower(args.header_type) end local deleted = args.decommissioned or...

Click to read more »
Module:TableTools
Kamis, 2020-10-15 01:13:05

'table') checkType('affixNums', 2, prefix, 'string', true) checkType('affixNums', 3, suffix, 'string', true) local function cleanPattern(s) --...

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

byabout .. " " .. dname .. "] " .. tagline end -- Determine media string media = p.mediaTypes(args.media) if media == "" then mediaopen =...

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

local p = {} local format = string.format local gsub = mw.ustring.gsub local trim = mw.text.trim local upper = mw.ustring.upper local prepattern = "%[(%w+)%|(...

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

options.encode == true or options.encode == nil then url_string = mw.uri.encode( url_string ); end if options.auto_link and is_set (options.access)...

Click to read more »
Module:Template wrapper
Minggu, 2022-10-23 22:19:44

the state of boolean list argument; kv pair for template execution; k=v string for template listing. ]] local function add_parameter (k, v, args, list)...

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

outString = outString .. mw.text.nowiki(table.concat(categories)) .. '<br />' elseif currentTitle.namespace == 0 then outString = outString .. table...

Click to read more »
Module:WDL
Minggu, 2022-10-23 22:23:58

otherargs) local args = otherargs or getArgs(frame) local tableprefix = string.format('| style="%stext-align:%s" |', args.total and...

Click to read more »
Module:Zh
Minggu, 2022-10-23 22:22:48

val .. "; " end end if (body > "") then -- check for empty string return string.sub(body, 1, -3) -- chop off final semicolon and space else --no...

Click to read more »
Module:Unsubst-infobox
Senin, 2017-07-03 04:42:02

substing -- Combine passed args with passed defaults local args = {} if string.find( ','..(frame.args['$flags'] or '')..',', ',%s*override%s*,' ) then...

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

local terms = {} -- because args is unmodifiable --make the term empty string if only the alternate text exists for name, parameter in pairs(args) do...

Click to read more »
Module:TeamBracket
Jumat, 2017-04-07 04:43:23

return string.format('RD%d-%s' .. padding, round, type, team) end function getRoundName(round) local name = args['RD' .. round] if name and string.len(name)...

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

insert(suffix, ' ' .. string.lower(dir)) end end return prefix .. name .. concat(suffix) end local function banners(routes) local format = string.format local...

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

local function dmsTest(first, second) if type(first) ~= 'string' or type(second) ~= 'string' then return nil end local s = (first .. second):upper()...

Click to read more »
Module:Convert
Rabu, 2020-09-02 02:10:55

from_en_table -- to translate an output string of en digits to local language local to_en_table -- to translate an input string of digits in local language to...

Click to read more »
Module:Effective protection expiry
Kamis, 2022-12-29 06:19:19

'^(%d%d%d%d)(%d%d)(%d%d)(%d%d)(%d%d)(%d%d)$' ) if year then return string.format( '%s-%s-%sT%s:%s:%s', year, month, day, hour, minute, second...

Click to read more »
Module:Pop density
Selasa, 2019-12-17 10:57:56

are defined local popnum = tonumber(pop) if not popnum then error(string.format('Unable to convert population "%s" to a number', pop), 2) end ...

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

currTaxon) -- note that colour is global to this function; default is empty string local i = 1 -- count levels processed local searching = currTaxon ~= ''...

Click to read more »
Module:Languages/templates
Senin, 2020-04-27 08:08:20

if type(ret) == "string" then return ret else error("The function \"" .. itemname .. "\" did not return a string value.") end else ...

Click to read more »
Module:Infobox road/meta/mask/country
Kamis, 2014-08-28 23:18:41

mapping = countries function p._country(state, country) return country and string.upper(country) or countries[state] end function p.country(frame) if not...

Click to read more »
Module:Protected edit request
Rabu, 2014-02-19 07:07:51

subjectTitle end local stringToFormat if title.exists then stringToFormat = '%s an edit be made to %s%s %s%s.' else stringToFormat = '%s %s%s %s%s...

Click to read more »
Module:Gallery
Selasa, 2019-12-17 11:36:57

local tracking, preview local function checkarg(k,v) if k and type(k) == 'string' then if k == 'align' or k == 'state' or k == 'style' or k == 'title'...

Click to read more »
Module:WikidataIB
Senin, 2023-02-13 20:06:53

local dateval = string.match( datetime, "[%w ]+") local dateformat = string.lower(dateformat or "dmy") -- default to dmy local bc = string.upper(bc or...

Click to read more »
Module:Language utilities
Senin, 2020-04-27 08:07:48

This function allows templates to access this data. -- Returns an empty string if the item does not exist. function export.lookup_language(frame) local...

Click to read more »
Module:Links
Senin, 2023-03-06 07:20:09

[[Module:utilities]] [[Module:string]] [[Module:debug]] ]=] -- These are prefixed with u to avoid confusion with the default string methods -- of the same...

Click to read more »
Module:Football manager history
Senin, 2017-10-09 10:21:55

fmt) if item then self.n = self.n + 1 self[self.n] = fmt and string.format(fmt, item) or item end end, join = function (self, sep) ...

Click to read more »
Module:Calendar date
Minggu, 2022-10-23 22:24:41

end return table.concat (out) -- concat into one big string; empty string if table is empty end --[[--------------------------< isValidDate...

Click to read more »
Module:Location map
Rabu, 2023-03-01 08:34:39

new('Module:Location map/data/' .. map) if not moduletitle then error(string.format('%q is not a valid name for a location map definition', map), 2)...

Click to read more »
Module:TreeChart
Minggu, 2022-10-23 22:24:11

['text-align'] = 'center' } for _, v in ipairs(cell_args) do if type(v) == 'string' then top:wikitext(cells[v].t) bottom:wikitext(cells[v].b) else...

Click to read more »
Module:Flags
Minggu, 2013-08-18 02:53:31

values. if commonsName ~= nil and string.find( commonsName, "File:", 1 ) == 1 then commonsName = string.sub( commonsName, 6) flagOf...

Click to read more »
Module:Ugly hacks
Senin, 2020-04-27 08:11:25

title = mw.title.new(frame.args[1]) if title.isRedirect then return string.match(title:getContent(), "^#[Rr][Ee][Dd][Ii][Rr][Ee][Cc][Tt]%s*:?%s*%[%[([^%[%]]-)%]%]")...

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

Argument is 'set' when it exists (not nil) or when it is not an empty string. ]] local function is_set( var ) return not (var == nil or var == '');...

Click to read more »
Module:Factorization
Minggu, 2013-08-18 02:57:38

primeLink then return '[['..'prime'..']]' end result = string.sub(result,1,-4) return format(result) end function format(num) ...

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

All methods were developed independently and any resemblance to other string buffer libraries would be coincidental. Furthermore, many methods will not...

Click to read more »
Module:Webarchive/data
Kamis, 2020-07-09 07:30:58

table; set to nil if not used [6]=postfix; text string to be appended at the end of the tail string - see webarchive.loc.gov in the table ]=] local...

Click to read more »
Module:Escape
Rabu, 2018-06-27 12:31:59

function(self, chr, args) args = args or {} local safe = args.safeChr or string.char(13) chr = tostring(chr or '\\') self[1] = ('%s0%%s%s'):format(...

Click to read more »
Module:Team roster navbox
Senin, 2018-07-09 01:10:08

pairs(parentArgs) do if value ~= '' then if type(argName) == 'string' then if argName == 'title' then value...

Click to read more »
Module:Gl-plural
Senin, 2020-04-27 08:06:38

-- Returns a singular’s plural if it can be safely guessed, and an empty string -- otherwise. function export.get_plural(lemma) if (has_space_or_hyphen(lemma))...

Click to read more »
Module:Bibleverse
Selasa, 2020-01-07 05:39:48

aspects of the components of the url s_chap = string.format( '%x', s_chap/10 ) .. string.sub(string.format('%02d', s_chap), -1) elseif (site == 'oremus')...

Click to read more »
Module:For
Sabtu, 2017-02-11 11:05:56

insert(pages, v) end return mHatnote._hatnote( mHatlist.forSeeTableToString({{use = use, pages = pages}}), {selfref = args.selfref} ) .. category...

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

require("Module:utilities") local ut = require("Module:utils") local m_string_utilities = require("Module:string utilities") local m_para = require("Module:parameters")...

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

if data.glossary then local glossary_entry = type(data.glossary) == "string" and data.glossary or label label = "[[Appendix:Glossary#" .. glossary_entry...

Click to read more »
Module:PrevalenceData
Selasa, 2017-05-02 10:21:48

prevalenceClaim.mainsnak.datavalue.value if prevalenceValue then if string.len( pRange ) > 0 then -- Split multiple claims -- Maybe line...

Click to read more »
Module:Date
Rabu, 2026-02-18 11:57:04

provided from -- another module which may pass a string, a number, or another type). if type(text) == 'string' then text = text:match('(%S.-)%s*$') end...

Click to read more »
Module:Offeecial wabsteid
Selasa, 2020-01-28 07:13:40

Wikidata]]' end return result end local ret = {} ret[#ret + 1] = string.format( '<span class="official-website">%s</span>', makeUrl(options...

Click to read more »
Module:Infobox
Kamis, 2020-10-15 03:06:03

possible fields, a "prefix" string and a "depend" table. The function always parses -- parameters containing the "prefix" string, but only parses parameters...

Click to read more »
Module:Easter
Selasa, 2019-12-17 11:29:01

formatEasterError(message, ...) if select('#', ... ) > 0 then message = string.format(message, ...) end return "<span class=\"error\">" .. message...

Click to read more »
Module:Ancient Egypt kings
Rabu, 2017-04-26 05:40:24

year 776 BC). This is why all values need to be corrected by 1. return string.format( '[[%s]], %d', t.ruler, inputYear - t.rulerstart ) end...

Click to read more »
Module:Location map/info
Sabtu, 2021-03-13 06:12:27

local p = {} function p.main(frame) local map = mw.loadData(string.gsub(mw.title.getCurrentTitle().prefixedText,'/doc$','')) local retval = [=[{| class="wikitable"...

Click to read more »
Module:Ancient Egypt era
Rabu, 2017-04-26 05:38:25

year 776 BC). This is why all values need to be corrected by 1. return string.format( '[[%s|%s]] [[List of ancient Egyptian dynasties|dynasty]], %d'...

Click to read more »
Module:Pt-plural
Senin, 2020-04-27 08:11:06

-- Returns a singular’s plural if it can be safely guessed, and an empty string -- otherwise. function export.get_plural(lemma) if (has_space_or_hyphen(lemma))...

Click to read more »
Module:Wikibase
Jumat, 2023-06-16 01:29:06

current page end return mw.wikibase.getSitelink(qid or '') -- requires one string arg end -- Return the data type of a property given its entity ID. function...

Click to read more »
Module:Links2
Sabtu, 2020-09-19 04:13:17

[[Module:utilities]] [[Module:string]] [[Module:debug]] ]=] -- These are prefixed with u to avoid confusion with the default string methods -- of the same...

Click to read more »
Module:Lang/sandbox
Minggu, 2022-10-23 22:19:28

Argument is 'set' when it exists (not nil) or when it is not an empty string. ]] local function is_set( var ) return not (var == nil or var == '');...

Click to read more »
Module:Lang
Minggu, 2022-10-23 22:19:23

by a string.gsub() replacement table operating only on these separate elements. In the string.gsub() matching pattern, '.*' matches empty string as well...

Click to read more »
Module:Hu-pron
Sabtu, 2023-04-01 22:57:56

['r'] = true, } function export.IPA(frame) local args = type(frame) == 'string' and { frame } or frame:getParent().args local result = {} if args['phon']...

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

symbols at the end of RU1 and move -- them to the end of the concatenated string, before any footnote symbols -- for RU2; same thing goes for TR1 and TR2...

Click to read more »
Module:WPSHIPS utilities
Minggu, 2022-10-23 22:24:15

-- because without a dab, the string.match returns nil dab = ''; -- empty string for concatenation end fragments = mw...

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

loadData('Module:Transclusion count/data/' .. ((i == 91) and 'other' or string.char(i))) for name, count in pairs(data) do table.insert(list, {mw...

Click to read more »
Module:Weather box
Selasa, 2019-07-09 07:56:13

non-empty string, return its trimmed content. -- Otherwise, return nothing (text is an empty string or is not a string). if type(text) == 'string' then...

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

>-------------------------------------------------- render a numerical text string in ordinal form suitable for English language use. In this module, num_str...

Click to read more »
Module:Scripts
Senin, 2020-04-27 08:11:16

end -- Find the best script to use, based on the characters of a string. function export.findBestScript(text, lang) if not text or not lang or...

Click to read more »
Module:Nn-verb-irreg
Senin, 2020-04-27 08:08:29

imp = "; ''imperative'' " .. imperative end text = string.format("'''%s''' (''present tense'' %s; ''past tense'' %s; ''past participle''...

Click to read more »
Module:Other uses
Kamis, 2016-06-30 08:03:23

end --Generate and return hatnote local text = mHatlist.forSeeTableToString({{ use = options.otherText and "other " .. options.otherText or nil, ...

Click to read more »
Module:Iucn
Minggu, 2022-10-23 22:24:46

Species'); local patterns = { -- tables of string.match patterns [1] and string.gsub patterns [2] {'(.-)%sssp%.%s+(.-)%s(%b())$', "''%1''...

Click to read more »
Module:Age
Kamis, 2018-05-31 13:57:06

is a string, return its trimmed content, or nil if empty. -- Otherwise return text (which may, for example, be nil). if type(text) == 'string' then...

Click to read more »
Module:Baseball color
Jumat, 2018-02-23 05:07:56

loadData(data_module) colors = all_colors[team] if ( colors and type(colors) == 'string' ) then colors = all_colors[colors] end end return colors or unknown...

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

contains_non_BMP(str) return str:find '[\240-\244]' end do local byte, min = string.byte, math.min function export.laborious_comp(item1, item2) local l1...

Click to read more »
Module:List
Jumat, 2019-12-20 08:40:54

function p.renderList(data) -- Renders the list HTML. -- Return the blank string if there are no list items. if type(data.items) ~= 'table' or #data.items...

Click to read more »
Module:Subject bar
Selasa, 2019-12-17 11:18:44

ustring.lower(thisPage.text) if (string.match(thisPageLC, "/archive") ~= nil) then return false end if (string.match(thisPageLC, "/doc") ~= nil)...

Click to read more »
Module:Random
Kamis, 2014-06-05 20:18:52

type(sep) == 'string' then -- If the separator is a recognised MediaWiki separator, use that. Otherwise use the value of sep if it is a string. local mwseparators...

Click to read more »
Module:Os-translit
Senin, 2020-04-27 08:10:59

mw.ustring.upper(k),"']='",mw.ustring.upper(v),"',\n"})) end ]] -- One-string data: local tt="а=a\nА=A\nб=b\nБ=B\nв=v\nВ=V\n"...etc. function M.tr(f)--translit...

Click to read more »
Module:Ny-IPA
Senin, 2020-04-27 08:08:30

do syllable_ends[v] = v .. " " end -- remove spaces from the end of a string function rtrim(s) local n = #s while n > 0 and s:find("^%s", n) do n =...

Click to read more »
Module:College color
Minggu, 2018-03-25 06:17:17

loadData(data_module) colors = all_colors[team] if ( colors and type(colors) == 'string' ) then colors = all_colors[colors] end end return colors or unknown...

Click to read more »
Module:Road data/strings/GBR
Sabtu, 2023-07-29 07:09:51

console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include the...

Click to read more »
Module:Road data/strings/DEU
Sabtu, 2023-07-29 07:11:46

console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include the...

Click to read more »
Module:Infobox3cols
Selasa, 2016-08-23 00:02:58

possible fields, a "prefix" string and a "depend" table. The function always parses -- parameters containing the "prefix" string, but only parses parameters...

Click to read more »
Module:Archive list
Sabtu, 2018-02-17 15:13:38

Default of old template for long is 'Archive ' if type(prefix) == 'string' then if prefix == 'none' then -- 'none' overrides to empty prefix...

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

it -- is different. -- -- The "display hyphen" is the string (which might be an empty string) that -- is added onto a term as displayed (and linked)...

Click to read more »
Module:Documentation
Kamis, 2022-12-29 06:19:20

is not -- of the type expectType. The default type for expectType is 'string'. -- If the table valArray is present, strings such as $1, $2 etc. in the...

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

user_specified = true else val = data.forms[key] end if type(val) == "string" then val = mw.text.split(val,"/") end if data.num == "pl" and...

Click to read more »
Module:Wd/i18n
Rabu, 2020-07-08 09:42:08

"th" end end p.addDelimiters = function(n) local left, num, right = string.match(n, "^([^%d]*%d)(%d*)(.-)$") if left and num and right then return...

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

a {"multi", ...} clause; see below.) A specification is one of: (1) A string: Always apply that category. (2) A list {"has", TAG, SPEC} or {"has"...

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

local result = {} for i, item in ipairs(items) do if lang and not string.find(item, "<span") then item = m_links.full_link({lang = lang, term...

Click to read more »
Module:Zu-headword
Senin, 2020-04-27 08:11:36

~= "-" and (#args[4] > 0 or type(singular_classes[args[2]] ~= true) == "string") then if not plural_classes[args[3]] then args[3] = nil end ...

Click to read more »
Module:UserLinks/config
Sabtu, 2018-02-17 15:19:56

module was malformed. This means it was either -- not a string value or it was the blank string. cfg['error-malformedlinkcode'] = 'malformed link code...

Click to read more »
Module:Sports color
Sabtu, 2018-11-10 14:55:28

loadData(data_module) colors = all_colors[team] if ( colors and type(colors) == 'string' ) then colors = all_colors[colors] end end return colors or unknown...

Click to read more »
Module:Redirect hatnote
Sabtu, 2017-10-28 02:50:21

cat ~= '' then -- Add by index to avoid duplicates categoryTable[string.format('[[Category:%s]]', cat)] = true end end --Generate tracking categories...

Click to read more »
Module:Tlg
Senin, 2020-09-28 22:46:47

local getArgs = require('Module:Arguments').getArgs local p = {} -- Is a string non-empty? local function _ne(s) return s ~= nil and s ~= "" end local...

Click to read more »
Module:Singles
Selasa, 2017-08-01 01:14:37

end for k, v in ipairs( params ) do ret = ret .. '\n | ' .. v .. string.rep(' ', (maxlength - mw.ustring.len( v ))) .. ' = ' .. (args[v] or '')...

Click to read more »
Module:Template link general
Kamis, 2022-01-20 19:24:53

local getArgs = require('Module:Arguments').getArgs local p = {} -- Is a string non-empty? local function _ne(s) return s ~= nil and s ~= "" end local...

Click to read more »
Module:Ja/k2r-old
Senin, 2020-04-27 08:06:50

not keepdot then -- if input had spaces, keep them -- if the input string had periods, then remove them now text = mw.ustring.gsub(text, '%.', '')...

Click to read more »
Module:Photo montage
Kamis, 2015-03-12 22:13:11

:css('border-collapse', 'collapse') :tag('tr') end local image = string.format( '[[File:%s|%dpx]]', args['photo' .. num .. c], (size -...

Click to read more »
Module:Navbox Canada
Minggu, 2018-02-18 04:52:30

to targs for k,v in pairs(frame:getParent().args) do if type(k) == 'string' and k:match('^list[0-9][0-9]*$') then if isnotempty(v) then listcount...

Click to read more »
Module:Multiple image
Sabtu, 2020-07-04 10:33:34

end return w or 200 end local function getPerRow(pstr, ic) -- split string into array using any non-digit as a dilimiter local pr = mw.text.split(pstr...

Click to read more »
Module:Ahnentafel
Selasa, 2018-05-15 02:47:36

(type(k) == 'string' and (tonumber(k) or 0) > 0)) then if tonumber(k) > maxnum then maxnum = k end else if (k and type(k) == 'string') then ...

Click to read more »
Module:IPA/templates
Senin, 2020-04-27 08:05:49

langObject and langObject:getCode() == langCode then if type(symbols) == "string" then if mw.ustring.find(IPA, symbols) then require("Module:debug")...

Click to read more »
Module:URL
Kamis, 2020-10-15 01:13:07

function(s) return mw.uri.encode(s, 'PATH') end) -- If there is an empty query string or fragment id, remove it as it will cause mw.uri.new to throw an error...

Click to read more »
Module:Gutenberg
Senin, 2019-12-23 07:57:06

"PATH" ) -- handle spaces within id argument string prefix = "Warks bi " italic = "" url = "[" .. urlhead...

Click to read more »
Module:Japanese calendar
Rabu, 2017-04-26 05:45:37

gregorianYear = tonumber( init.year ) local initText = type( init.era ) == 'string' and init.era or nil local initIndex = tonumber( init.index ) if...

Click to read more »
Module:Val
Minggu, 2018-02-18 08:42:20

table for a number (empty if there was no specified number); or -- * a string for range text -- Input like 1e3 is regarded as invalid for all except...

Click to read more »
Module:Catalog lookup link
Minggu, 2022-10-23 22:22:13

Argument is 'set' when it exists (not nil) or when it is not an empty string. ]] local function is_set( var ) return not (var == nil or var == '');...

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

hitotsu$") -- ② at the end of the string and not preceded by a-z or a period ("^are wa$") -- ③ at the beginning of the string and not followed by a-z or a...

Click to read more »
Module:Pi-decl/noun
Senin, 2020-04-27 08:11:02

process(args, params) for i, v in ipairs(rows) do local name = string.lower(string.sub(v,1,3)) if at['no'..name] then forms[2*i] = {} forms[2*i-1]...

Click to read more »
Module:Protection banner/config
Kamis, 2022-12-29 06:19:20

-- protection object and the template arguments, and they must output a string. -- -- For example: -- -- text = function (protectionObj, args) -- if...

Click to read more »
Module:Val/units
Minggu, 2016-05-22 02:11:59

them in it: -- string in quotes [=[ ... builtin_units ... ]=]. -- string in quotes [=[ ... builtin_units_long_scale ... ]=]. -- First string, builtin_units...

Click to read more »
Module:Infobox multi-lingual name
Minggu, 2022-10-23 22:22:35

Argument is 'set' when it exists (not nil) or when it is not an empty string. ]] local function is_set( var ) return not (var == nil or var == '');...

Click to read more »
Module:Track gauge
Minggu, 2017-03-05 00:37:59

------------------------------- -- noWrap -- Add span tags to prevent a string from wrapping. --------------------------------------------------------...

Click to read more »
Module:Ja-kanjitab
Senin, 2020-04-27 08:06:49

-- readings if provided, if we have neither then -- default to empty string and don't sort local userprovided_sortkey = args["sort"] or "" if userprovided_sortkey...

Click to read more »
Module:Gridiron color
Senin, 2019-11-04 13:49:54

colors = color_data[team] end if ( colors and type(colors) == 'string') then if team == colors then year = nil end -- follow alias recursively...

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

outString = outString .. mw.getCurrentFrame():extensionTag("ref", valuesArray[i][1], {name = valuesArray[i].refHash}) end else outString = outString...

Click to read more »
Module:Namespace detect
Senin, 2017-01-30 09:29:14

names. local function checkValue(value, default) if type(value) == 'string' then return value else return default end end local nsHeader...

Click to read more »
Module:Episode table
Jumat, 2018-08-03 12:27:26

:addClass('wikiepisodetable') :css('width', args.total_width and string.gsub(args.total_width,'%%','') .. '%' or '100%') -- Caption if args...

Click to read more »
Module:Infobox road/color
Rabu, 2018-03-07 15:09:53

end if name == 'CAN' or name == 'GBR' then local module = require(string.format("Module:Infobox road/color/%s", name)) return module.colors ...

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

scriptObject:getCharacters() .. "]", "") if text ~= "" then if type(result) == "string" then error(result) else error('The text "' .. originalText .. '"...

Click to read more »
Module:TeamBracket-Tennis
Selasa, 2017-07-11 06:38:18

== 1) and pargs or fargs for k,v in pairs(targs) do if type(k) == 'string' then if k:find('^[R3][Dr][d1-9]b?%-[a-z][a-z]*00*') then k = mw...

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

{m="masc", f="fem", n="neut"} -- Insert the category CAT (a string) into list CATEGORIES. String will -- have "Russian " prepended and ~ substituted for the...

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

genders are provided, but there are no qualifier for either, the -- string (in variation) is added after the second, per [[WT:T:APT]]. function get_genders(g1...

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

local nom = require("Module:ru-nominal") local strutils = require("Module:string utilities") local m_table_tools = require("Module:table tools") local m_debug...

Click to read more »
Module:Convert/text
Senin, 2018-04-16 06:39:44

displayed if a problem occurs. local all_messages = { -- Message format string: $1=title, $2=text, $3=category, $4=anchor. -- Each displayed message starts...

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

toNFD(x),'[^%w]+',"") end function cleanup(x) return noaccents(string.gsub(string.gsub(string.gsub(x, '%[', ''), '%]', ''), ' ', '+')) end local tbl =...

Click to read more »
Module:Infobox military conflict
Minggu, 2022-10-23 22:22:29

self.combatants) :cssText(infoboxStyle.image_box_raw) :wikitext(string.format('%s%s%s', require('Module:InfoboxImage').InfoboxImage{args =...

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

math_mod = require('Module:Math') local function hex( value ) return string.format("%02X", value) end local function format_line( background, text_color...

Click to read more »
Module:Sidebar
Minggu, 2022-10-23 22:19:53

end local contentArgs = {} for k, v in pairs(args) do local num = string.match(k, '^list(%d+)$') if num then local expand = args.expanded and...

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

letters2phones else l2ptab = value end elseif type(value) == "string" then table.insert(phones, value) l2ptab = letters2phones else ...

Click to read more »
Module:Navbox
Jumat, 2022-01-28 01:50:22

local getArgs -- lazily initialized local args local format = string.format local function striped(wikitext, border) -- Return wikitext with...

Click to read more »
Module:Infobox mapframe
Senin, 2019-06-24 02:56:28

cleanArgs = {} for key, val in pairs(argsTable) do if type(val) == 'string' then val = val:match('^%s*(.-)%s*$') if val ~= '' then cleanArgs[key]...

Click to read more »
Module:Pt-conj/table
Senin, 2020-04-27 08:11:05

return table.concat(examples, ', ') end local module = string.sub(verb_data.suffix, #verb_data.suffix-1) local edit_link = "[".. tostring(mw...

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

i = i + 1 end for key, value in pairs(args) do if type(key) == "string" then table.insert(output, "&#124;" .. key .. "=" .. value) end end...

Click to read more »
Module:Color contrast
Jumat, 2022-01-28 01:49:59

exports the function for use in other modules. -- The colour is passed as a string. function p._lum(color) return color2lum(color) end function p._greatercontrast(args)...

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

require("Module:languages").getByCode("ru") local strutils = require("Module:string utilities") local m_ru_translit = require("Module:ru-translit") local m_table_tools...

Click to read more »
Module:Es-conj
Senin, 2020-04-27 08:06:11

setmetatable(copy, deepcopy(getmetatable(orig))) else -- number, string, boolean, etc copy = orig end return copy end function...

Click to read more »
Module:Country alias
Jumat, 2018-02-16 11:24:23

is a string, return its trimmed content, or nil if empty. -- Otherwise return text (which may, for example, be nil). if type(text) == 'string' then...

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

= 5000, ["Module:Storm_categories/icons"] = 5000, ["Module:String"] = 11200000, ["Module:String2"] = 1780000, ["Module:Su"] = 10000, ["Module:Subject_bar"]...

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

then return "m-an" elseif string.match(pattern, "^m-pr") or pattern == "adj-m-pr" then return "m-pr" elseif string.match(pattern, "^f") or pattern...

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

m_ru_translit = require("Module:ru-translit") local strutils = require("Module:string utilities") local export = {} local u = mw.ustring.char local rfind = mw...

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

self.pattern = nil if args[step] then self.pattern, self.nonFunc = string.match(esc.bs:text(args[step]), '^node_function{(.-)}(.*)') end if self...

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

but if the invocation argument -- linktext= is given, it will be a string consisting of that text, and if -- the invocation argument nolink= is...

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

string with key words "$date1" and "$date2" which will be replaced later by the date strings 2) function which can be used to create output string ...

Click to read more »
Module:Userbox
Sabtu, 2017-03-11 05:25:02

end end local function addSuffix(num, suffix) -- Turns a number into a string and adds a suffix. if num then return tostring(num) .. suffix else ...

Click to read more »
Module:Citation/CS1/Configuration
Kamis, 2020-10-15 03:34:35

o $2$3$1', -- $1 is year, $2 is month-name or empty string, $3 is space or empty string hidden = true, }, maint_extra_punct = { message =...

Click to read more »
Module:Documentation/config
Jumat, 2022-01-28 01:50:00

your language. Unless specified otherwise, values given here -- should be string values. ---------------------------------------------------------------...

Click to read more »
Module:IrelandBiCoontyCatNav
Sabtu, 2018-05-12 23:09:26

page name "pn" includes a validCountyName -- so now we need to split the string debugLog(2, "split pagename around [" .. validCountyName .. "]") local...

Click to read more »
Module:Transclusion count/data/I
Kamis, 2020-10-15 01:13:07

["Improve_categories"] = 3800, ["In_class"] = 3900, ["In_lang"] = 328000, ["In_string"] = 45000, ["In_title"] = 12000, ["Inactive_WikiProject_banner"] = 166000...

Click to read more »
Module:Japanese calendar/data
Rabu, 2017-04-26 05:46:31

time, and the "article" and "kanji" values -- may be set to "" (the blank string) if it is a period between era names. -- See [[List of Japanese era names]]...

Click to read more »
Module:Calendar date/Events
Sabtu, 2019-06-08 08:15:34

Short description of the holiday days = '' - Number of days (string) df = '' - Default date format (mdy,dmy,iso) - can be overridden...

Click to read more »