Search Results: Module:If empty

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


Module:If empty
Rabu, 2015-12-16 14:45:58

local args = require('Module:Arguments').getArgs(frame, {wrappers = 'Template:If empty', removeBlanks = false}) -- For backwards compatibility reasons, the...

Click to read more »
Module:If preview
Jumat, 2021-05-07 10:01:27

local p = {} local cfg = mw.loadData('Module:If preview/configuration') --[[ main This function returns either the first argument or second argument...

Click to read more »
Module:Lang/sandbox
Kamis, 2025-04-17 10:14:29

are specified if title_t[std] then -- and if standard is legitimate if title_t[std][tscript] then -- and if script for that...

Click to read more »
Module:Lang
Kamis, 2025-04-24 10:21:33

are specified if title_t[std] then -- and if standard is legitimate if title_t[std][tscript] then -- and if script for that...

Click to read more »
Module:Citation/CS1
Rabu, 2026-02-11 21:03:57

-- if first is initials with or without suffix if 3 > mw.ustring.len (name) then -- if one or two initials if suffix then ...

Click to read more »
Module:If preview/configuration
Jumat, 2021-05-07 10:01:23

return frame:extensionTag{ name = 'templatestyles', args = { src = 'Module:If preview/styles.css' } } end return { preview = is_preview(), templatestyles...

Click to read more »
Module:If preview/styles.css
Jumat, 2021-05-07 10:01:19

templatestyles element inserts a link element before hatnotes. * TODO: Remove link if/when WMF resolves T200206 */ .preview-warning + link + .preview-warning {...

Click to read more »
Module:InfoboxImage
Senin, 2025-12-15 08:44:10

set to yes, if the image has to be centered -- upright - upright image param -- suppressplaceholder - if yes then checks to see if image is a placeholder...

Click to read more »
Module:Infobox
Minggu, 2025-03-23 19:19:15

fixChildBoxes(sval, tt) local function notempty( s ) return s and s:match( '%S' ) end if notempty(sval) then local marker = '<span class=special_infobox_marker>'...

Click to read more »
Module:Check for unknown parameters
Sabtu, 2025-12-27 13:41:05

passed to the parent -- with a list of arguments, returning a specified result if an argument is -- not on the list require ('strict'); local p = {} local...

Click to read more »
Module:Citation/CS1/sandbox
Senin, 2019-11-11 23:12:52

-- if first is initials with or without suffix if 3 > mw.ustring.len (name) then -- if one or two initials if suffix then ...

Click to read more »
Module:Arguments
Senin, 2017-04-17 11:18:03

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

Click to read more »
Module:Sandbox
Sabtu, 2015-08-01 09:02:14

getEntityObject( id ) local value_id = id if entity then if entity.claims then if entity.claims[property] then ...

Click to read more »
Module:Age
Sabtu, 2026-04-18 01:40:23

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

Click to read more »
Module:Country alias
Senin, 2021-08-02 17:36:04

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

Click to read more »
Module:Coordinates
Rabu, 2025-12-03 08:39:47

used in detecting DMS formatting ]] local function dmsTest(first, second) if type(first) ~= 'string' or type(second) ~= 'string' then return nil end...

Click to read more »
Module:ISO 3166
Kamis, 2019-05-16 02:48:55

pairs(cdata["isonames"] or {}) do if sqry==p.strip(tname) then return true end end for _,tname in pairs(cdata["altnames"] or {}) do if sqry==p.strip(tname)...

Click to read more »
Module:Coordinates/sandbox
Rabu, 2026-01-07 09:53:49

used in detecting DMS formatting ]] local function dmsTest(first, second) if type(first) ~= 'string' or type(second) ~= 'string' then return nil end...

Click to read more »
Module:String
Rabu, 2026-02-11 16:21:07

can be invoked with named parameters, unnamed parameters, or a mixture. If named parameters are used, Mediawiki will automatically remove any leading...

Click to read more »
Module:Location map
Selasa, 2025-02-18 19:07:04

math.floor(n * pow + 0.5) / pow end function p.getMapParams(map, frame) if not map then error('The name of the location map definition to use must...

Click to read more »
Module:Sports color
Rabu, 2020-11-25 10:00:41

= 1, ["retired"] = 1, ["free agent"] = 1, } local colors = nil if ( team and use_default[team:lower()] ) then colors = {"DCDCDC", "000000"...

Click to read more »
Module:NUMBEROF
Kamis, 2023-09-07 05:05:38

local function trimArg(arg, i) arg = mw.text.trim(arg or '') if arg == '' then if i then error('Parameter ' .. i .. ' is missing. See template...

Click to read more »
Module:Navbar
Selasa, 2023-12-12 21:12:28

get_title_arg(is_collapsible, template) local title_arg = 1 if is_collapsible then title_arg = 2 end if template then title_arg = 'template' end return title_arg...

Click to read more »
Module:Navbar/sandbox
Minggu, 2021-02-28 12:48:04

get_title_arg(is_collapsible, template) local title_arg = 1 if is_collapsible then title_arg = 2 end if template then title_arg = 'template' end return title_arg...

Click to read more »
Module:Wd
Senin, 2025-09-01 01:46:43

i18n local i18nPath local function loadI18n(aliasesP, frame) local title if frame then -- current module invoked by page/template, get its title from...

Click to read more »
Module:Graph
Jumat, 2020-03-06 00:07:28

numericArray(csv) if not csv then return end local list = mw.text.split(csv, "%s*,%s*") local result = {} local isInteger = true for i = 1, #list do if list[i]...

Click to read more »
Module:College color
Senin, 2018-10-22 13:45:58

leading # (if there is one) c = mw.ustring.match(c, '^[#]*([a-f0-9]*)$') -- split into rgb local cs = mw.text.split(c or '', '') if( #cs == 6 )...

Click to read more »
Module:Type in location
Sabtu, 2020-05-09 13:24:55

--Gets general location from more specific one for short descriptions --i.e if a location is specified to be "P. Sherman 42 Wallaby Way Sydney, Australia"...

Click to read more »
Module:Citation/CS1/Utilities/sandbox
Senin, 2019-11-11 23:20:12

function in_array( needle, haystack ) if needle == nil then return false; end for n,v in ipairs( haystack ) do if v == needle then return n; end...

Click to read more »
Module:Citation/CS1/Identifiers/sandbox
Senin, 2019-11-11 23:18:37

wikipedia.org local wd_article; -- article title from wikidata if options.encode == true or options.encode == nil then url_string = mw.uri...

Click to read more »
Module:Color contrast
Kamis, 2019-08-01 02:30:28

(v) if (v <= 0.03928) then v = v / 12.92 else v = math.pow((v+0.055)/1.055, 2.4) end return v end local function rgbdec2lum(R, G, B) if ( 0 <=...

Click to read more »
Module:Citation/CS1/Date validation/sandbox
Senin, 2019-11-11 23:16:42

C C E S S D A T E >---------------------------------------- returns true if: Wikipedia start date <= accessdate < today + 2 days Wikipedia start date...

Click to read more »
Module:Citation/CS1/Identifiers
Rabu, 2026-02-11 21:09:20

todays_date = lang:formatDate ('U'); if good1 then -- if embargo date is a good date if tonumber (embargo_date) >= tonumber (todays_date)...

Click to read more »
Module:Gallery
Jumat, 2021-05-07 09:49:20

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:Date
Rabu, 2026-02-18 12:01:07

} end local function strip_to_nil(text) -- If text is a string, return its trimmed content, or nil if empty. -- Otherwise return text (convenient when...

Click to read more »
Module:Autotaxobox
Sabtu, 2025-12-27 16:11:31

is assumed that a valid taxobox colour is defined using CSS rgb() syntax. If no taxon that sets a taxobox colour is found, then 'transparent' is returned...

Click to read more »
Module:Citation/CS1/Date validation
Rabu, 2026-02-11 21:07:51

C C E S S D A T E >---------------------------------------- returns true if: Wikipedia start date <= accessdate < today + 2 days Wikipedia start date...

Click to read more »
Module:Citation/CS1/Utilities
Rabu, 2026-02-11 21:10:27

function in_array (needle, haystack) if needle == nil then return false; end for n, v in ipairs (haystack) do if v == needle then return n; end...

Click to read more »
Module:WikidataIB
Selasa, 2023-11-07 17:57:12

Can take a named parameter |qid which is the Wikidata ID for the article -- if not supplied, it will use the Wikidata ID associated with the current page...

Click to read more »
Module:Date table sorting
Kamis, 2022-03-31 12:53:41

self:parseDate(args[1]) end -- Raise an error on invalid values if self.year then if self.year == 0 then error('years cannot be zero', 0) elseif...

Click to read more »
Module:Documentation
Sabtu, 2025-08-02 18:54:52

Gets a message from the cfg table and formats it if appropriate. -- The function raises an error if the value from the cfg table is not -- of the type...

Click to read more »
Module:Wikidata
Rabu, 2026-01-07 09:52:49

end if precision == 8 then era = mw.ustring.gsub(i18n.datetime[8], "$1", tostring(math.floor(math.abs(intyear) / 10) * 10)) end if era then if addon...

Click to read more »
Module:Road data/parser
Sabtu, 2019-06-15 02:46:54

"%[(%w+)%|(.*)%|(.*)%|(.*)%]" -- [arg|equal to (blank for existence)|if true|if false] local pattern = "%%(%w+)%%" -- %arg% local function parser(formatStr...

Click to read more »
Module:Sports career
Selasa, 2020-03-24 15:01:53

args['cmax'] or '30') or 30 for k,v in pairs(pargs) do if type(k) == 'string' and isnotempty(v) then if k:match('^team%d%d*$') then local num = mw.ustring...

Click to read more »
Module:Infobox road
Sabtu, 2017-08-12 08:50:12

args = getArgs(frame) local deleted = args.decommissioned or args.deleted if deleted then return "background:#AAA;" end local colors = require"Module:Infobox...

Click to read more »
Module:Infobox road/length
Jumat, 2018-06-01 17:49:19

tonumber(args["length_round" .. num]) if '' == km then local n = tonumber(mi) prec = prec or precision(mi) if n then lengths...

Click to read more »
Module:Category handler
Kamis, 2014-12-18 09:31:43

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

Click to read more »
Module:Infobox road/locations
Sabtu, 2019-06-15 08:26:18

"no", default = "yes"} local yesOrNo = data[country] or data.default if yesOrNo == "no" then return args.countries else return...

Click to read more »
Module:High-use
Rabu, 2022-11-30 12:11:18

require('Module:Yesno') function p.num(frame, count) if count == nil then if yesno(frame.args['fetch']) == false then if (frame.args[1] or '') ~= '' then count...

Click to read more »
Module:Election results
Rabu, 2026-01-07 09:57:09

tonumber(d) if n and d and d > 0 then return string.format('%.2f', n / d * 100) end return '&ndash;' end local function tonumdash(s) if s then ...

Click to read more »
Module:Routemap
Kamis, 2018-12-13 12:26:08

'">' if not t1 or string.find(t1, '^%s*$') then if not t2 then t2 = '' end if string.find(t2, '<br ?/?>') == nil then t1 = '&nbsp;' end end if not...

Click to read more »
Module:Medical cases chart
Minggu, 2021-01-24 17:29:10

customtoggles = ' mw-customtoggle-' .. id if month.s then label = label .. '&nbsp;' .. month.s -- "Mmm ##" if month.s ~= month.e then -- "Mmm ##–##"...

Click to read more »
Module:Cs1 documentation support
Rabu, 2026-02-25 10:03:50

-- if there is an id handler if access then -- and if this is a request for the handler's custom access parameter if id_src[meta]...

Click to read more »
Module:Section link
Rabu, 2026-01-07 09:54:49

'§&nbsp;' .. section if isShowingPage then page = page or title.prefixedText if options.display and options.display ~= '' then if normalizeTitle(options...

Click to read more »
Module:Yesno
Kamis, 2018-08-09 15:55:58

similarly to the template {{yesno}}. return function (val, default) -- If your wiki uses non-ascii characters for any of "yes", "no", etc., you --...

Click to read more »
Module:Infobox road/map
Sabtu, 2019-06-15 03:19:30

map = args.map or '' if args.map_custom == "yes" then return format('<div style="white-space:nowrap;">%s</div>', map) end if map == '' then local...

Click to read more »
Module:Sports table
Rabu, 2026-01-07 09:52:59

if we are using section transclusion for a different section if( isnotblank(Pargs['transcludesection']) and isnotblank(Args['section']) ) then if(...

Click to read more »
Module:Citation/CS1/COinS/sandbox
Senin, 2019-11-11 23:21:37

script) if is_set (title) then title = strip_apostrophe_markup (title); -- strip any apostrophe markup else title=''; -- if not...

Click to read more »
Module:Redirect hatnote
Rabu, 2021-07-07 14:48:45

= {} for i = 1, numRedirects do -- Return an error if a redirect parameter is missing. if not args[i] then return mHatnote.makeWikitextError(...

Click to read more »
Module:Val/sandbox
Minggu, 2017-04-23 20:02:34

range = range_types[arg] if range then if type(index) == 'number' and (index % 2 == 0) then if index == 2 then if numbers[1] and numbers[1]...

Click to read more »
Module:Val
Selasa, 2025-10-07 08:57:51

range = range_types[arg] if range then if type(index) == 'number' and (index % 2 == 0) then if index == 2 then if numbers[1] and numbers[1]...

Click to read more »
Module:Medals table
Rabu, 2026-01-07 09:54:19

showLimit = tonumber(args['show_limit']) -- build the legend if host ~= '' then if args['name_' .. host] then host = args['name_' .. host] host...

Click to read more »
Module:Video game release
Rabu, 2026-01-07 09:55:59

the need of repeated calls to Module:CountryData. This saves a little time if the same abbreviation appears multiple times in the template. local function...

Click to read more »
Module:Team roster navbox
Senin, 2018-10-22 13:26:38

lazily initialized local function colorlinks(v, s) if v and v ~= '' and s and s ~= '' then if not mw.ustring.match(v, '<span style') then v = mw...

Click to read more »
Module:Citation/CS1/COinS
Rabu, 2026-02-11 21:13:17

(title); if is_set (title) then title = strip_apostrophe_markup (title); -- strip any apostrophe markup else title = ''; -- if not...

Click to read more »
Module:Infobox mapframe
Senin, 2025-12-15 08:51:37

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

Click to read more »
Module:Template test case
Kamis, 2019-05-16 01:28:09

with messages from the -- config module. local msg = self.cfg.msg[key] if select(1, ...) then return mw.message.newRawMessage(msg, ...):plain() else...

Click to read more »
Module:Uses TemplateStyles
Senin, 2026-04-06 16:18:36

format('[[File:Farm-Fresh css add.svg|32px|alt=%s]]', format('logo-alt')) } if #tStyles < 1 then boxArgs.text = string.format('<strong class="error">%s</strong>'...

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

dateType) if not lang then lang = mw.language.getContentLanguage() end local success, result = pcall(lang.formatDate, lang, 'U', dateString) if success...

Click to read more »
Module:Jct/city
Sabtu, 2019-06-15 03:26:19

num] if not(city or location) then return '' end local parts if num == 1 then parts = {"&nbsp;– "} else parts = {", "} end if location...

Click to read more »
Module:Infobox television
Senin, 2021-12-27 10:38:10

unnecessary manual displaytitle]]", } --- Returns a maintenance category if the italic_title value is not "no". --- --- Infobox parameters checked: ---...

Click to read more »
Module:Lua banner
Rabu, 2026-02-25 10:49:45

title = mw.title.getCurrentTitle() if title.subpageText == "doc" then title = title.basePageTitle end if title.contentModel == "Scribunto" then...

Click to read more »
Module:Message box
Kamis, 2025-02-20 07:50:32

expensive function count limit. local success, title = pcall(mw.title.new, ...) if success then return title end end local function union(t1, t2) -- Returns...

Click to read more »
Module:Chart
Sabtu, 2026-02-07 14:39:54

trim( s ) == '' end local function createGroupList( tab, legends, cols ) if #legends > 1 and not hideGroupLegends then table.insert( tab, mw.text.tag(...

Click to read more »
Module:Bar box
Jumat, 2020-07-31 14:50:56

'') ~= '' end local function widths(w,d) local width = is(w) and w or d if tonumber(width) then width = width .. 'px' end return width end local p...

Click to read more »
Module:Asbox stubtree
Sabtu, 2016-02-27 00:37:19

if #t == 0 then temppage = removeditem1 .. "-stub" end temppageexists = i.exists(temppage) if temppageexists...

Click to read more »
Module:Sports table/sub
Rabu, 2015-06-03 16:04:08

colhead(ttt,width,text) -- For individual column headers local head_string if width=='auto' then head_string = '! scope="col" |'..text..'\n' else head_string...

Click to read more »
Module:Episode list
Kamis, 2023-01-12 16:24:53

Short Summary cell. local nonNilParams = 0 -- Variable that will keep track if a TBA value was entered. local cellValueTBA = false -- Variable that handles...

Click to read more »
Module:Road data/parser/sandbox
Minggu, 2017-06-04 09:40:20

to test against argument; if empty, the argument is -- tested for existence -- match is the string to be substituted if the argument matches value...

Click to read more »
Module:Road data/parser/hooks
Sabtu, 2019-06-15 02:45:37

function p.split(parameters, args) local route = tonumber(args.route) or 0 if route < parameters.split then return parameters.below else return parameters...

Click to read more »
Module:Road data/parser/hooks/sandbox
Sabtu, 2019-06-15 02:50:33

function p.split(parameters, args) local route = tonumber(args.route) or 0 if route < parameters.split then return parameters.below else return parameters...

Click to read more »
Module:Shortcut
Senin, 2020-12-28 02:16:27

table.insert(listItems, options.msg) -- Return an error if we have nothing to display if #listItems < 1 then local msg = cfg['no-content-error']...

Click to read more »
Module:Navbox
Kamis, 2025-02-20 07:38:27

cfg.class.navbox_odd_part, cfg.class.navbox_even_part if args[cfg.arg.evenodd] then if args[cfg.arg.evenodd] == cfg.keyword.evenodd_swap then ...

Click to read more »
Module:Sports results
Rabu, 2026-01-07 09:53:09

getArgs(frame, {parentFirst = true}) -- Exit early if we are using section transclusion for a different section if (Args['transcludesection'] and Args['section'])...

Click to read more »
Module:Navbox/sandbox
Minggu, 2025-03-02 13:05:53

in ipairs(s) do v = mw.text.trim(v, "%s;") if not isblank(v) then r = r .. v .. ';' end end if isblank(r) then return nil end return r end local...

Click to read more »
Module:ChartColors
Sabtu, 2026-02-07 14:33:51

SelColors = {} local ColorNameL = string.lower(ColorName) local Palet0 = {} if ColorNameL == 'categ20' then Palet0 = category20 elseif ColorNameL == 'plotter'...

Click to read more »
Module:Multilingual
Kamis, 2023-09-21 20:26:24

access ] if not suited then finer() lucky, r = pcall( fun, "Module:" .. storage ) end if not lucky then if not suited...

Click to read more »
Module:GHS phrases/data
Kamis, 2023-09-21 02:25:33

['H301+H311+H331'] = 'Toxic if swallowed, in contact with skin or if inhaled', ['H301+H331'] = 'Toxic if swallowed or if inhaled', ['H302'] = 'Harmful if swallowed'...

Click to read more »
Module:Hms
Senin, 2019-05-27 17:53:20

= {} if tonumber(args[1]) or args[2] or args[3] then if args[4] then return p._error('Parameter number 4 should not be specified') end if not args[1]...

Click to read more »
Module:WLink
Sabtu, 2019-11-16 00:11:46

error, if not available if not URLutil then local lucky, util = pcall( require, "Module:URLutil" ); if lucky then if type(...

Click to read more »
Module:TemplatePar
Rabu, 2023-04-19 21:31:39

access ] if not suited then finer() lucky, r = pcall( fun, "Module:" .. storage ) end if not lucky then if not suited...

Click to read more »
Module:Wikidata2
Kamis, 2016-06-30 20:47:31

function addTrackingCat(prop, cat) if not prop and not cat then return error("no property provided") end if not cat then cat = i18nmessages.trackingcat...

Click to read more »
Module:Road data/browse
Senin, 2018-08-27 06:57:27

args.province local type = args.type if country == 'MEX' then return "20x30" elseif country == 'CAN' then if state == 'AB' or state == 'QC' or state...

Click to read more »
Module:Taxonbar
Rabu, 2026-01-07 09:57:29

) if thing == nil or thing == '' then return true end return nil end local function getIdFromWikidata( item, property ) local id = nil if property...

Click to read more »
Module:Text
Senin, 2024-07-29 23:14:36

access ] if not suited then finer() lucky, r = pcall( fun, "Module:" .. storage ) end if not lucky then if not suited...

Click to read more »
Module:Template link general
Kamis, 2022-01-20 10:33:12

local i, _ = s:find(':', 1, true) if i == nil then return 'Template:' .. s end local ns = s:sub(1, i - 1) if ns == '' or mw.site.namespaces[ns]...

Click to read more »
Module:SimpleDebug
Selasa, 2020-06-16 17:57:36

--2020-06-16 fix error when vtos(nil), then it showed two nil --2020-06-08 if a variable is a function now is displayed as function (before "function")...

Click to read more »
Module:Video game wikidata
Rabu, 2024-01-24 12:40:15

if(platformA == nil) then platformA = mw.wikibase.label('Q'..a['qualifiers']['P400'][1]['datavalue']['value']['numeric-id']); end; end; if...

Click to read more »
Module:GetShortDescription
Selasa, 2024-10-08 14:37:24

style="color:#d33">[[Module:GetShortDescription]] '..message..'.</span>' if not preview then message = message..'[[Category:Pages displaying alarming...

Click to read more »
Module:HtmlBuilder
Rabu, 2014-05-07 10:08:00

key) local ret = rawget(t, key) if ret then return ret end ret = metatable[key] if type(ret) == 'function' then ...

Click to read more »
Module:Authority control
Kamis, 2025-01-02 05:15:44

function(cat, sortkey) if cat and cat~='' and (namespace==0 or namespace==14 or testcases) then local redlinkcat = '' if testcases==false then ...

Click to read more »
Module:Convert
Selasa, 2025-10-07 09:02:51

{{convert|123|lb|kg}} --> 123 pounds (56 kg) -- See [[:en:Template:Convert/Transwiki guide]] if copying to another wiki. local MINUS = '−' -- Unicode U+2212 MINUS SIGN...

Click to read more »
Module:Interlinear
Rabu, 2025-10-08 17:38:32

GlossingType = "label", -- if set to "label" gloss abbreviations are formatted as an <abbr> with the "label" appearing in a tooltip -- if set to "wikilink"...

Click to read more »
Module:Unsubst
Selasa, 2023-05-16 23:43:34

override', } function p.main(frame, body) -- If we are substing, this function returns a template invocation, and if -- not, it returns the template body....

Click to read more »
Module:Convert/wikidata
Rabu, 2021-07-14 09:35:36

= {} Collection.__index = Collection do function Collection:add(item) if item ~= nil then self.n = self.n + 1 self[self.n] = item end end...

Click to read more »
Module:Delink
Sabtu, 2025-12-27 13:09:51

require("strict") local p = {} local getArgs local function delinkReversePipeTrick(s) if s:match("^%[%[|.*[|\n]") then -- Check for newlines or multiple pipes. return...

Click to read more »
Module:Zh
Rabu, 2026-01-07 09:53:29

parameters; see if there's a first parameter, ignoring its name if (args[1]) then -- if there is treat it as Chinese label = "" if (uselabels)...

Click to read more »
Module:WeatherBox
Jumat, 2018-04-06 23:15:22

= require( "Module:WeatherBoxColors" ); function checkFlag( flag ) if flag == nil then return nil; elseif type( flag ) == 'boolean'...

Click to read more »
Module:ISO 639 name
Rabu, 2026-01-07 09:55:39

parenthetical disambiguators if any when <raw> is false if link then -- make a link to the language article? if name:find ('languages')...

Click to read more »
Module:Unsubst-infobox
Senin, 2019-05-27 17:49:37

function ( frame ) if not frame:getParent() then error( '{{#invoke:Unsubst-infobox|}} makes no sense without a parent frame' ) end if not frame.args['$B']...

Click to read more »
Module:TaxonList
Sabtu, 2025-12-27 11:18:59

local TaxonItalics = require("Module:TaxonItalics") local IfPreview = require([[Module:If preview]]) local p = {} --[[============================...

Click to read more »
Module:Pagetype
Kamis, 2024-10-24 14:50:47

namespace] or {} local keys = {} if nsInfo.name ~= '' then table.insert(keys, nsInfo.name) end if nsInfo.canonicalName ~= nsInfo.name and nsInfo...

Click to read more »
Module:RFC
Selasa, 2026-04-14 16:05:26

if not frame then frame = mw.getCurrentFrame() end local refContent = "" local rfc = isblank(tonumber(args[1])) and 0 or tonumber(args[1]) if not...

Click to read more »
Module:Navseasoncats
Rabu, 2022-01-19 22:39:08

= '' local testcases = string.match(currtitle.subpageText, '^testcases') if testcases then testcasecolon = ':' end local navborder = true local followRs...

Click to read more »
Module:Annotated link
Kamis, 2024-10-10 06:55:33

return mw.ustring.gsub(short_description, '^([^%d])', function(first_char) if case == 'upper' then return mw.ustring.upper(first_char) end return...

Click to read more »
Module:Fallback
Kamis, 2016-06-30 19:53:52

for i, j in ipairs(p.fblist(lang)) do if args[j] then if args[j] == '~' then return nil, j end if j == 'message' then return tostring(mw.message...

Click to read more »
Module:Settlement short description
Sabtu, 2020-05-09 13:31:10

cattype) if category then p.categories = p.categories..category end --categorize end --sanity and other checks function p.validate (parameter, cat) if not...

Click to read more »
Module:Political party
Minggu, 2022-01-23 06:53:40

non-A-Z starts if string.match(index, '%A') then return '1' end return string.upper(index) end local function stripToNil(text) -- If text is a string...

Click to read more »
Module:Side box
Senin, 2022-08-08 07:28:55

table classes data.classes = {} if yesno(args.metadata) ~= false then table.insert(data.classes, 'metadata') end if args.position and args.position:lower()...

Click to read more »
Module:Rail-interchange multi
Rabu, 2022-04-27 14:21:07

v1 in ipairs(data) do args = {} if v1 ~= '' and v1 ~= '\\' then local tmp = mw.text.split(v1, '\\') if i1 == 1 then default = tmp[1] ...

Click to read more »
Module:Detect singular
Sabtu, 2024-02-24 07:28:15

process -- origArgs.no_comma: if false, use commas to detect plural (default false) -- origArgs.parse_links: if false, treat wikilinks as opaque...

Click to read more »
Module:PrevalenceData
Kamis, 2020-04-16 17:18:11

( frame ) local entity = mw.wikibase.getEntity( frame.args.qId or nil ) if entity then local prevalenceClaims = entity.claims and entity.claims.P1193...

Click to read more »
Module:Cslist
Kamis, 2019-10-31 11:00:22

makelist = function(frame) local args = frame.args if not args[1] then args = frame:getParent().args if not args[1] then return end end local semi =...

Click to read more »
Module:Wikidata2/doc
Kamis, 2016-06-30 19:46:47

provided in the statement (if sourceproperty is not provided, the property used is Padron:P) excludespecial = set to true if you do not want to get "novalue"...

Click to read more »
Module:Jctrdt
Jumat, 2025-05-09 18:56:46

bannerModule) if shield and shield ~= '' then if suffix == nil then suffix = parser(route, 'shield', 'suffix', bannerModule) end if suffix and...

Click to read more »
Module:Convert/tester
Senin, 2021-08-02 17:38:13

= {} Collection.__index = Collection do function Collection:add(item) if item ~= nil then self.n = self.n + 1 self[self.n] = item end end...

Click to read more »
Module:Convert/makeunits
Sabtu, 2023-11-25 11:52:49

-- * Remove thousand separators (commas) from the scale field. -- If the scale is a number, do not change it. -- Otherwise, it should be an...

Click to read more »
Module:EFloras
Rabu, 2026-01-07 09:57:39

require('strict') local p = {} local data -- Load [[Module:eFloras/data]] if needed and assign to this variable. local function getResource(floraID) ...

Click to read more »
Module:Ordinal
Selasa, 2023-11-07 17:18:41

local suffix = "th" -- If tonumber(n) worked: if x then local mod10 = math.abs(x) % 10 local mod100 = math.abs(x) % 100 if mod10 == 1 and mod100...

Click to read more »
Module:Calendar date
Rabu, 2026-01-07 09:57:19

trimArg >----------------------- trimArg returns nil if arg is "" while trimArg2 returns 'true' if arg is "" trimArg2 is for args that might accept...

Click to read more »
Module:Infobox body of water tracking
Sabtu, 2019-09-21 04:49:28

res = nil val = mw.text.killMarkers(val) if val:match('[0-9]') then res = 1 if val:match('[%(][−0-9%.]') and val:match('[%)]') then...

Click to read more »
Module:Commons link
Rabu, 2026-01-07 09:57:59

require('Module:Yesno') local generateWarning = require('Module:If preview')._warning local p = {} -- Check if string is a valid QID -- Argument: QID to check --...

Click to read more »
Module:Adjacent stations
Rabu, 2026-01-07 09:56:59

getData(system, verify) if verify then local title = mw.title.new('Module:Adjacent stations/' .. system -- .. '/sandbox' ) if not (title and title...

Click to read more »
Module:Jct
Kamis, 2025-12-25 22:18:16

bannerModule) if shield and shield ~= '' then if suffix == nil then suffix = parser(route, 'shield', 'suffix', bannerModule) end if suffix and...

Click to read more »
Module:ComplForColorModules
Sabtu, 2026-02-07 14:36:42

ColorNameInvFromS0 (S) local IsInv = false local ColorName = '' local Params = {} if S ~= '' then for w in S:gmatch("([^_]+)") do table.insert(Params...

Click to read more »
Module:CIA World Factbook
Rabu, 2024-03-06 21:27:54

-- args.archive: if non-empty, return nil -- args.year: else if this is non-empty, use it for year -- args.date: else if this is non-empty, parse...

Click to read more »
Module:Portal-inline
Kamis, 2020-09-10 13:52:48

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

Click to read more »
Module:WikidataCheck
Kamis, 2019-06-20 03:17:49

to check if we're in a good namespace local ns = mw.title.getCurrentTitle().namespace for v in mw.text.gsplit( namespaces, ",", true) do if tonumber(v)...

Click to read more »
Module:Check for deprecated parameters
Rabu, 2019-06-19 23:49:58

-- loop over the parent args and see if any are deprecated for k, v in pairs(pargs) do if ignoreblank then if dep_values[k] and v~='' then table...

Click to read more »
Module:Historical populations
Selasa, 2025-12-09 12:31:47

lazy initialization local function ifexist(page) if not page then return false end if mw.title.new(page).exists then return true end return...

Click to read more »
Module:Jcttop/core
Sabtu, 2019-06-15 04:31:05

text = {args.region_note} local tense local hatnoteArg = args.hatnote if hatnoteArg == 'off' then insert(text, '') elseif hatnoteArg then insert(text...

Click to read more »
Module:Autovirusbox
Rabu, 2026-01-07 09:54:29

==================================== function p.main(frame) local args if frame.args['direct'] == 'yes' then args = frame.args else args = frame:getParent()...

Click to read more »
Module:MultiReplace
Sabtu, 2019-02-02 16:24:05

2] do local change = {pattern = args[i * 2], repl = args[i * 2 + 1]} if not change.repl then return require('Module:Error').error{ 'MultiReplace:...

Click to read more »
Module:Math
Selasa, 2024-07-02 01:01:34

throw an error if given an explicit nil parameter, so we need to use if statements to check the params. if first and second then if first <= second...

Click to read more »
Module:Check for clobbered parameters
Senin, 2021-12-06 07:28:49

trim(vv) if checknested and pargs[vv] or isnotempty(pargs[vv]) then count = count + 1 table.insert(pfound, vv) end end if count > 1...

Click to read more »
Module:Check for conflicting parameters
Sabtu, 2026-01-03 08:47:57

trim(vv) if checknested and pargs[vv] or isnotempty(pargs[vv]) then count = count + 1 table.insert(pfound, vv) end end if count > 1...

Click to read more »
Module:Parameter validation
Rabu, 2022-04-27 14:13:20

options, n, more = {} if frame.args['module_options'] then local module_options = mw.loadData( frame.args['module_options'] ) if type( module_options...

Click to read more »
Module:Aligned table
Kamis, 2022-01-20 08:07:36

end -- add table classes if isnotempty(args['class']) then root:addClass(args['class']) end -- add table style if isnotempty(args['style']) then...

Click to read more »
Module:ConvertNumeric
Rabu, 2020-12-16 20:23:29

plural) if ordinal then return 'ika' end if plural then return 'mga ' end return '' end local function numeral_naong(num, bilang, st) if bilang <...

Click to read more »
Module:Road data
Minggu, 2017-06-04 09:37:34

bannerModule) if shield and shield ~= '' then if suffix == nil then suffix = parser(route, 'shield', 'suffix', bannerModule) end if suffix and...

Click to read more »
Module:Redirect
Minggu, 2024-04-28 19:35:27

new, ...) if success then return titleObj else return nil end end -- Gets the name of a page that a redirect leads to, or nil if it isn't a --...

Click to read more »
Module:Format link
Sabtu, 2023-05-06 18:27:28

from the given link and display values. Links are escaped -- with colons if necessary, and links to sections are detected and displayed -- with " § "...

Click to read more »
Module:Time ago
Rabu, 2022-08-31 08:24:34

purge = args.purge -- Add a purge link if something (usually "yes") is entered into the purge parameter if purge then purge = ' <span class="plainlinks">(['...

Click to read more »
Module:Series overview
Senin, 2023-01-16 08:53:52

then regular season if entry.startA then if not entry[key..'A'] then spanlength = spanlength + 1 else break end if not entry[key..'B'] then...

Click to read more »
Module:Roman
Selasa, 2023-11-07 17:16:14

exit displaying nothing if the input is empty. if args[1] == nil then return end local num = tonumber(args[1]) if not num or num < 0 or num...

Click to read more »
Module:Infobox/dates
Senin, 2021-12-27 10:32:38

airdate_overall if start_date then if not start_date:find("dtstart") then return error_category end end local end_date = args.last_aired if end_date...

Click to read more »
Module:Is infobox in lead
Kamis, 2023-11-23 13:36:57

= string.find(content, "==", 1 , true) if offset then local lead = string.sub(content, 1, offset-1) if (string.find(lead, searchString)) then ...

Click to read more »
Module:Location map/info
Kamis, 2019-05-30 01:35:59

name .. '\n' .. [=[ |- ! name |colspan="3"| ]=] .. map.name .. [=[ |- ]=] if map.top then retval = retval .. [=[!rowspan="4"|border<br/>coordinates |-...

Click to read more »
Module:Cite Q
Kamis, 2025-01-09 04:00:33

local card = tonumber(cardinal) if not card then return cardinal end local ordsuffix = i18n.ordinal.default if card % 10 == 1 then ordsuffix = i18n...

Click to read more »
Module:Namespace detect
Kamis, 2014-05-15 15:06:52

The -- -- module can also use the corresponding subject namespace value if it is -- -- used on a talk page. Parameter names can be configured for...

Click to read more »
Module:Road data/util
Sabtu, 2019-06-15 03:13:18

error is raised if `overwrite` is not true -- and any key in `arr` is already in `target`. function util.addAll(target, arr, overwrite) if type(target)...

Click to read more »
Module:Location map/multi
Rabu, 2026-01-07 09:53:19

= {} if not args then args = getArgs(frame, {wrappers = 'Template:Location map+', valueFunc = locmap.valueFunc}) end if not map then if args[1]...

Click to read more »
Module:Webarchive
Rabu, 2020-03-11 15:53:43

>----------------------- trimArg returns nil if arg is "" while trimArg2 returns 'true' if arg is "" trimArg2 is for args that might accept...

Click to read more »
Module:Listen
Sabtu, 2023-11-25 18:03:01

duration in seconds in "(h:)mm:ss" (minutes are zero-padded -- only if there are hours). if not length or length == 0 then return nil end -- Add 0.5 to...

Click to read more »
Module:Flagg
Sabtu, 2021-02-06 02:37:57

function(key,value) if value then value = mw.text.trim(value) --Change empty string to nil for all args except 'image' and 'border' if key=="image"...

Click to read more »
Module:Indent
Sabtu, 2020-03-28 17:58:15

args = {} if type(frame.args) == 'table' then for k, v in pairs( frame.args ) do v = mw.text.trim(v) if v ~= '' then...

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

if title.isRedirect then title = title.redirectTarget if fragment == "" then fragment = title.fragment -- page merge potential end end if...

Click to read more »
Module:Complex date
Selasa, 2023-11-07 17:23:28

math.max(#langList,2),'default') for i,language in ipairs(langList) do if list[language] then return list[language] end end end --...

Click to read more »
Module:Clickable button 2
Rabu, 2019-10-23 17:52:00

'Template:Clickable button 2' }) return p.luaMain(args) end function p.luaMain(args) if not args[1] and not args.url then return '' end local data = p.makeLinkData(args)...

Click to read more »
Module:Multiple image
Kamis, 2025-01-09 14:07:04

s:match( '^%s*(.-)%s*$' ) ~= '' end local function getdimensions(s, w, h) if tonumber(w) and tonumber(h) then nonautoscaledimages = true return tonumber(w)...

Click to read more »
Module:IPA
Jumat, 2025-08-15 18:24:43

2, #patterns do local i2, j2 = mw.ustring.find(s, patterns[n], init) if i2 and (not i or i2 < i) then i, j = i2, j2 end end return i, j end...

Click to read more »
Module:Taxonbar/candidate
Sabtu, 2020-02-22 08:51:25

check(frame) local taxonbarExists = require('Module:Taxonbar/exists').check if taxonbarExists(frame) then return '' else local resolveEntity = require(...

Click to read more »
Module:Catalog lookup link
Selasa, 2026-04-14 16:13:14

listed. Whitespace is trimmed off both ends and the strings are urlencoded as if they were query strings. |article-link=: Optional Wikipedia article name to...

Click to read more »
Module:Transcluder
Kamis, 2025-05-08 10:35:13

values -- @todo Somehow internationalize it local function truthy(value) if not value or value == '' or value == 0 or value == '0' or value == 'false'...

Click to read more »
Module:Gapnum
Minggu, 2017-04-23 20:04:57

local p = {} local getArgs function p.main(frame) if not getArgs then getArgs = require('Module:Arguments').getArgs end local args = getArgs(frame...

Click to read more »
Module:Shindo
Minggu, 2024-08-25 21:11:42

scale2) if yn(doColor) then out = out .. '</span>' end if yn(link) then out = out .. "]]" end if (scale2) then out = out .. " (" if yn(link)...

Click to read more »
Module:DateI18n
Kamis, 2019-09-05 02:24:13

= '' end if not case then case = '' end if not class then class = '' end if not trim_year then trim_year = '100-999' end -- if language is...

Click to read more »
Module:Endangered Languages Project
Jumat, 2023-04-14 08:59:20

elpf .. elpc .. " " .. elpn .. "]" end local tidy_param = function(param) if param == "" then param = nil end return param end p.make_entry = function(frame)...

Click to read more »
Module:Table empty cell
Minggu, 2020-09-27 17:28:11

local titleText = args[2] or args["title_text"] -- If the title text was manually added, return it. if (titleText) then return titleText end -- The...

Click to read more »
Module:IPA symbol
Sabtu, 2026-01-31 11:35:57

t[sub(s, i, i + 1)] or t[sub(s, i, i)] if ret then return ret end end ret = t[sub(s, -1)] -- Last character if ret then return ret end end local...

Click to read more »
Module:WikidataCheckYear
Minggu, 2018-07-22 20:24:03

check if we're in a good namespace local ns = mw.title.getCurrentTitle().namespace for v in mw.text.gsplit( namespaces, ",", true) do if tonumber(v)...

Click to read more »
Module:Banner shell
Selasa, 2025-03-04 16:50:55

'Module:Banner shell' .. (sandbox or '') .. '/styles.css'}) local content_row if content then content_row = mw.html.create('tr') :tag('td') :attr('colspan'...

Click to read more »
Module:InfoboxImage/doc
Sabtu, 2020-04-11 07:02:31

process the image parameters and tidy up the formatting of the result. NOte: If you specify the maxsize or sizedefault params, the should include the px after...

Click to read more »
Module:Effective protection level
Kamis, 2025-02-27 19:47:57

given title. -- If no title is specified, the title of the page being displayed is used. function p._main(action, pagename) local title if type(pagename)...

Click to read more »
Module:IP
Rabu, 2026-01-07 09:56:39

validating a specific object. return function (methodName, argIdx, arg) if not isObjectFunc(arg) then error(string.format( "bad argument #%d to...

Click to read more »
Module:WeatherBoxColors
Jumat, 2018-04-06 23:20:32

";"} ); end function range_pos( value, start, stop ) if start < stop then if value < start then return 0; elseif value...

Click to read more »
Module:TNTTools
Sabtu, 2026-02-07 14:35:41

function p.TNTTabFull (TNTTab) if (string.sub(TNTTab, 1, 5)) ~= 'I18n/' then TNTTab = 'I18n/'..TNTTab end if (string.sub(TNTTab, string.len(TNTTab)-3))...

Click to read more »
Module:Message
Minggu, 2024-08-25 21:14:38

Gets a message from the cfg table and formats it if appropriate. -- The function raises an error if the value from the cfg table is not -- of the type...

Click to read more »
Module:ResolveEntityId
Sabtu, 2020-02-22 08:54:54

function p._id(id,alt) if type(id) == 'string' then id = mw.ustring.upper(mw.ustring.sub(id,1,1))..mw.ustring.sub(id,2) if mw.ustring.match(id,'^Q%d+$')...

Click to read more »
Module:Chem2
Selasa, 2024-07-02 05:41:23

always like "[[target|" even if the source wasn't local T_NOCHANGE = 30 -- Anything else like ☃ function su(up, down) if up == "" then return ('<sub...

Click to read more »
Module:Transclusion count
Kamis, 2022-01-20 08:16:35

Use demo parameter if it exists, otherswise use current template name local namespace = mw.title.getCurrentTitle().namespace if frame.args["demo"] and...

Click to read more »
Module:URL
Kamis, 2016-04-07 13:10:30

if success then return uri end end function p._url(url, text) url = trim(url or '') text = trim(text or '') if url ==...

Click to read more »
Module:WikiProject banner
Kamis, 2024-10-24 12:54:53

']]' end local if_exists = function(target, fallback) -- function to add wikilink if target exists local title = mw.title.new(target) if title and title...

Click to read more »
Module:PropertyLink
Jumat, 2013-10-25 15:37:58

if not entity or not entity.claims then return end--the entity doesnt exist or have no claims local property = entity.claims[propertyName] if...

Click to read more »
Module:Biota infobox/param
Rabu, 2026-01-07 09:55:19

if type(k)=='string' then local j,n = string.gsub(k, " ", "_") -- substitute spaces if n > 0 then --if j ~= k then -- if substitution...

Click to read more »
Module:ParameterCount
Sabtu, 2016-03-26 13:25:33

positional key, and if so, returns it. If -- the key is invalid, this returns nil. local function isPositionalKey(s) s = trim(s) if s:find('^[1-9][0-9]*$')...

Click to read more »
Module:Subject bar
Sabtu, 2024-04-06 14:37:24

tonumber(mw.ustring.match(k,pattern)) --- if "foo_?%d+", extract number if ord then values[ord] = v end end if args[key] ~= nil then values[1] =...

Click to read more »
Module:Automated taxobox
Sabtu, 2025-12-27 13:21:18

end -- set the taxobox name if not supplied, italicizing it if appropriate. if name == '' then name = basePagename if italicTitle == 'yes' then ...

Click to read more »
Module:Factorization
Rabu, 2020-12-16 20:41:31

potential mathematical expression? number = tonumber(frame.args[1]) if number == nil then return '<strong class="error">Error: input not recognized...

Click to read more »
Module:Greek
Rabu, 2020-12-16 20:48:09

-- check if thousand marker exists if letter == "," then thousand_flag = true else if thousand_flag ==...

Click to read more »
Module:TaxonItalics
Sabtu, 2025-12-27 10:37:04

algorithm used is: * If the name has italic markup at the start or the end, do nothing. * Else * Remove (internal) italic markup. * If the name is made...

Click to read more »
Module:Wikt-lang
Jumat, 2025-02-14 09:15:33

langData = m_data.languages or m_data local p = {} local function ifNotEmpty(value) if value == "" then return nil else return value end end local...

Click to read more »
Module:BaseConvert
Selasa, 2024-07-02 04:52:36

input base) from = tonumber(from) if not from or from < 34 then local c n, c = n:gsub('^(-?)0[Xx]', '%1') if c > 0 and not from then from = 16 end...

Click to read more »
Module:Language
Selasa, 2023-11-07 07:51:05

langData = m_data.languages or m_data local p = {} local function ifNotEmpty(value) if value == "" then return nil else return value end end local...

Click to read more »
Module:Unicode data
Selasa, 2025-07-22 15:45:12

local p = {} local floor = math.floor local function errorf(level, ...) if type(level) == "number" then return error(string.format(...), level + 1)...

Click to read more »
Module:Harvc
Minggu, 2025-08-17 09:22:22

a number local msg; local category; if not number then if ignore then return ''; -- if ignore is true then no message, no category...

Click to read more »
Module:Airport destination list
Senin, 2021-11-15 22:08:49

(frame.args[1] ~= nil) and frame.args or frame:getParent().args local cols if isnotempty(args['4thcoltitle']) and isnotempty(args['3rdcoltitle']) then ...

Click to read more »
Module:Compact list
Minggu, 2020-10-11 13:31:49

if k == args[1] then --- if argument is just "foo", put it first values[1] = v else ord = tonumber(mw.ustring.match(k,pattern)) --- if "foo_...

Click to read more »
Module:NYCS SSI
Sabtu, 2022-09-03 11:16:31

_main(args) local shorthand = args[1] if shorthand then shorthand = trim(shorthand) end local return_table if cfg[shorthand] and type(cfg[shorthand])...

Click to read more »
Module:Infobox dim
Senin, 2025-12-15 09:05:04

width,area) if length and width then return math.max(length,width) end if length then return length end if width then return width end if area then...

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

index, 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"...

Click to read more »
Module:Cite
Kamis, 2016-06-30 20:28:16

distinguished by the presence of a "-" but that does not always work, see Q11927173 if not page then return nil end return fb._langSwitch({ -- singular de...

Click to read more »
Module:Protect
Kamis, 2019-05-16 01:34:30

processResult(options, success, ...) if not success then local message = tostring(... or '(no message)') if options.removeLocation then message...

Click to read more »
Module:CountryData
Minggu, 2025-02-16 16:38:03

country if params and next(params) then return p.gettable(frame, country, params) end -- Uses mw.loadData to cache data for the most-used templates if mostUsed...

Click to read more »
Module:Word count
Selasa, 2024-08-20 23:16:28

local p = {} local yn = require("Module:Yesno") local pv = require("Module:If preview") local pvWarning = pv._warning --[[ Formats the word count, etc....

Click to read more »
Module:Person weight
Rabu, 2020-12-02 06:53:25

'%[%[kg%]%]s', '[[Kilogram|kg]]') return s end local function isnumber(s) if s then s = mw.ustring.gsub(s, '%+%s*%d+%s*/%s*%d+%s*$', '') s = mw.ustring...

Click to read more »
Module:Cite iucn
Rabu, 2026-01-07 09:58:29

url_assesment_ID local msg if args.doi then doi_taxon_ID, doi_assesment_ID = args.doi:match ('[Tt](%d+)[Aa](%d+)%.e[ns]$') if not doi_taxon_ID then ...

Click to read more »
Module:Wide image
Sabtu, 2025-08-30 11:12:42

{width = 0, height = 0} if h > 0 then w = math.floor(h * (tonumber(file.width) or 0)/(tonumber(file.height) or 1) + 0.5) if w > 0 then return w...

Click to read more »
Module:Lang/documentor tool
Rabu, 2026-01-07 09:54:39

if not page then return ''; -- TODO: error message? end local content = page:getContent(); -- get unparsed content if...

Click to read more »
Module:List
Selasa, 2025-02-18 18:41:27

Classes and TemplateStyles data.classes = {} data.templatestyles = '' if listType == 'horizontal' or listType == 'horizontal_ordered' then table...

Click to read more »
Module:Str find word
Selasa, 2024-07-02 00:17:12

separation --- if yesno(tArgs.literals, false) then if false then local _, sCount _, sCount = mw.ustring.gsub(sWordlist, '"', '') if sCount > 1 then...

Click to read more »
Module:Pagelist
Rabu, 2021-04-14 20:19:01

['tpt-languages'] = true } local function getSeparator(sep) if type(sep) ~= 'string' then return nil end if separators[sep] then return mw.message.new(sep...

Click to read more »
Module:Wikitext Parsing
Kamis, 2024-10-24 14:59:29

trimcache[str] if quick then return quick else -- local out = string.gsub(str, "^%s*(.-)%s*$", "%1") local lowEnd for i = 1,#str do if not whitespace[string...

Click to read more »
Module:Sidebar
Sabtu, 2026-04-04 04:16:09

collapsible lists}} -- implementation, which passed some parameters through {{#if}} to trim -- their whitespace. This also triggered the automatic newline...

Click to read more »
Module:Effective protection expiry
Kamis, 2019-01-03 16:19:24

expiry of a restriction of an action on a given title, or unknown if it cannot be known. -- If no title is specified, the title of the page being displayed...

Click to read more »
Module:Make Wikisource link
Senin, 2025-12-08 12:03:16

1. 'Special:Search/', if using the enwiki pagename as the interwiki target 2. If not (1), an 'Author:' prefix, localized, if given a works parameter...

Click to read more »
Module:Exponential search
Minggu, 2025-03-02 13:21:20

search(testFunc, i, lower, upper) if testFunc(i) then if i + 1 == upper then return i end lower = i if upper then i = midPoint(lower, upper)...

Click to read more »
Module:Pop density
Senin, 2021-01-18 08:15:42

unsupported units]]' if(pop ~= '' and area1 ~= '') then -- pop and area are defined local popnum = tonumber(pop) if not popnum then error(string...

Click to read more »
Module:PageLinks
Selasa, 2020-12-15 13:19:35

section) local help if section then help = ' ([[Template:Page-multi#' .. section .. '|tulong]])' else help = '' end local cat if demo == 'yes' then...

Click to read more »
Module:Sister project links
Rabu, 2026-01-07 09:57:49

require('Module:Side box')._main local generateWarning = require('Module:If preview')._warning local p = {} local logo = { wikt="Wiktionary-logo-v2...

Click to read more »
Module:Television infoboxes disambiguation check
Senin, 2021-12-27 10:02:36

Local function which checks if both booleans are true or not. local function validateTwoParameters(isValid1, isValid2) if (isValid1 and isValid2) then...

Click to read more »
Module:Portal
Kamis, 2020-09-10 13:46:59

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

Click to read more »
Module:Unicode data/category
Senin, 2025-07-28 23:07:38

tab") for index, cols in ipairs(data.data) do if cols[1] and cols[2] then if cols[2] ~= "Cn" then result.singles[tonumber(cols[1],...

Click to read more »
Module:Hatnote
Kamis, 2025-04-24 12:40:29

'boolean', true) if removeColon ~= false then link = removeInitialColon(link) end local namespace = link:match('^(.-):') if namespace then local...

Click to read more »
Module:Template wrapper
Minggu, 2025-07-20 15:30:42

for value; return true if found, false else ]] local function is_in_table (tbl, value) for k, v in pairs (tbl) do if v == value then return...

Click to read more »
Module:Sports table/WL
Senin, 2015-10-05 15:04:56

'no' if yesno(sort_table_val) then sort_text = 'sortable' end local show_played = true local hide_played_val = Args['hide_played'] or 'no' if yesno(hide_played_val)...

Click to read more »
Module:A or an
Kamis, 2018-12-13 12:32:01

if match(s, '^' .. v .. '$') then return true end end end function p._main(args) local s = args[1] local pron = 'a' local ret = '' if s...

Click to read more »
Module:Sortkey
Rabu, 2019-02-27 22:46:23

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

Click to read more »
Module:Mapframe
Senin, 2025-12-15 08:53:35

parameter value if found, or nil if not found ]]-- function util.getParameterValue(args, param_id, suffix) suffix = suffix or '' if type( L10n.para[param_id]...

Click to read more »
Module:Sports color/contrast
Kamis, 2019-05-16 12:19:43

colors = nil if ( team and use_default[team:lower()] ) then colors = {"DCDCDC", "000000"} else colors = all_colors[team] if ( colors and type(colors)...

Click to read more »
Module:Overlay
Rabu, 2020-04-15 18:20:26

local fontcolor = '' local function buildicon(n, form, lk, c, t) local res if form == 'text' then return tostring( mw.html.create('span') :css('font-weight'...

Click to read more »
Module:ISOdate
Kamis, 2019-09-05 02:26:36

_ISOyear( input ) if not input then return '' end input = mw.text.trim( input ) -- if empty string then return it if input == "" then return...

Click to read more »
Module:Jctint/core
Sabtu, 2019-06-15 04:21:08

`unitdef` -- to the other supported unit. local function convert(unit, unitdef) if unit == nil or unitdef == nil then return {} end -- Import module to convert...

Click to read more »
Module:Preview warning
Jumat, 2019-05-17 00:03:54

local p = {} --[[ main This function returns parameter 1 as a warning if the page containing it is being previewed. Usage: {{#invoke:Preview...

Click to read more »
Module:Team bracket tracking
Kamis, 2019-05-16 12:23:11

frame:getParent().args for k, v in pairs(args) do if tostring(k):match('%-team[0-9]') then if tostring(v):match('[Bb][Rr][^<>]*>[%s]*.[Nn][Bb][Ss][Pp]')...

Click to read more »
Module:Navseasoncats/navyear
Jumat, 2020-10-30 11:34:13

category, if it exists -- If it doesn't exist, just display the greyed unlinked title function makeCatLink(catname, disp) local displaytext = catname if disp...

Click to read more »
Module:Icon
Senin, 2025-08-25 08:28:56

iconData if code then code = code:match('^%s*(.-)%s*$'):lower() -- trim whitespace and put in lower case iconData = data[code] end if not iconData...

Click to read more »
Module:ISO 3166/data
Rabu, 2020-03-18 09:06:12

sdata if not data[code] then return "" --Unassigned or reserved 3166-1 code else local sname = "Module:ISO 3166/data/"..code if not (d...

Click to read more »
Module:Category see also
Rabu, 2025-06-04 09:08:45

local function newCategoryLinker(options) local formatString if options.project then if options.showPrefix then formatString = '[[:' .. options.project...

Click to read more »
Module:Navbox/testcases
Minggu, 2025-03-02 13:22:57

in ipairs(s) do v = mw.text.trim(v, "%s;") if not isblank(v) then r = r .. v .. ';' end end if isblank(r) then return nil end return r end local...

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

Wikitext to parse. -- @return Wikitext of the lead section. May be empty if the lead section is empty. function parser.getLead( wikitext ) wikitext =...

Click to read more »
Module:Uses TemplateStyles/config
Selasa, 2025-02-18 18:37:44

not be categorized (except for the -- error category, which is always added if there is an error). -- For example “Template:Foo/doc” matches the `doc = true`...

Click to read more »
Module:In lang
Rabu, 2026-01-07 09:55:29

if not args[1] then local template = (args['template'] and table.concat ({'{{', args['template'], '}}: '})) or ''; -- make template name (if provided...

Click to read more »
Module:Easter
Jumat, 2026-04-03 14:26:26

loadEasterYear(year) if not year then return false, formatEasterError(EasterData.errorMissingYear) end local result = tonumber(year) if not result...

Click to read more »
Module:Formatnum
Kamis, 2016-06-30 20:18:56

-- validate the language parameter within MediaWiki's caller frame if lang == "arabic-indic" then -- only for compatibility ("arabic-indic" is not...

Click to read more »
Module:Biota infobox
Rabu, 2026-01-07 09:54:59

subspecies3 = "", "", "" --if (templateArgs['subspecies1'] and templateArgs['subspecies2']) if templateArgs['subspecies1'] or...

Click to read more »
Module:GetParameters
Rabu, 2022-08-10 18:11:28

local boolean_value; if type( boolean_str ) == 'string' then boolean_str = boolean_str:lower(); if boolean_str == 'false' or boolean_str...

Click to read more »
Module:JSON
Minggu, 2014-07-06 21:48:09

the routines -- -- local lua_value = JSON:decode(raw_json_text) -- -- If the JSON text is for an object or an array, e.g. -- { "what": "books"...

Click to read more »
Module:Time
Rabu, 2026-01-07 09:54:09

numbers just in case month = tonumber (month); if (2 == month) then -- if February if (0 == (year%4) and (0 ~= (year%100) or 0 == (year%400)))...

Click to read more »
Module:Video game reviews
Rabu, 2024-01-24 12:37:24

getActiveSystems(args) local activeSystems = {} for k, v in pairs(args) do if data.systems[k] and yesno(v) then table.insert(activeSystems, k) end...

Click to read more »
Module:TableTools
Kamis, 2024-11-07 20:06:56

isPositiveInteger -- -- This function returns true if the given value is a positive integer, and false -- if not. Although it doesn't operate on tables, it...

Click to read more »
Module:I18n
Senin, 2018-10-22 14:12:17

0 local function tableMerge(t1, t2, overwrite) for k,v in pairs(t2) do if type(v) == "table" and type(t1[k]) == "table" then -- since type(t1[k])...

Click to read more »
Module:Buffer
Jumat, 2022-09-16 07:45:55

=============================--]] local function Valid(v)--type validation if v and v~=true then--reject nil/boolean; faster than 2 type() comparisons ...

Click to read more »
Module:Iucn
Selasa, 2019-10-01 05:11:48

replace url if contains "details" if url == "" and templateArgs['page'] then replace = true end -- if no url and page number available, if replace then...

Click to read more »
Module:Infobox3cols
Sabtu, 2024-02-24 07:32:25

pairs(lists) do if not list.found then for _, arg in pairs(args_to_check) do for _, pattern in ipairs(list.patterns) do if mw.ustring.find(arg...

Click to read more »
Module:Fullurl
Selasa, 2025-03-25 17:45:06

args['title'] or args[1] or args['1'] or tostring(mw.title.getCurrentTitle()) if title == '' then --不能讓title變空值,否則url會返回nil title = tostring(mw.title.getCurrentTitle())...

Click to read more »
Module:Percentage
Jumat, 2020-09-04 14:10:39

style="display:none"></span>' -- prec = math.floor(prec) if sigfig ~= '' then if pct ~= 0 then return skey .. fmtout(rnd(pct, tonumber(sigfig)...

Click to read more »
Module:Jctbtm
Jumat, 2018-06-01 07:24:02

number } local function parameterParser(args) local keysParam = args.keys if not(keysParam) then return {} end local keys = mw.text.split(keysParam, "...

Click to read more »
Module:Protected edit request
Kamis, 2025-02-27 19:40:09

require('Module:Message box').main local getArgs local activeBox -- lazily initialized if we get an active request -----------------------------------------------...

Click to read more »
Module:File link
Jumat, 2015-08-21 06:54:34

ret[#ret + 1] = 'File:' .. args.file -- Format if args.format then checkArg('format', args.format) if args.formatfile then checkArg('formatfile'...

Click to read more »
Module:Official website
Minggu, 2016-07-17 18:07:58

failure. local function quickPcall(func) local success, result = pcall(func) if success then return result end end -- Gets the rank for a Wikidata property...

Click to read more »
Module:Protected edit request/active
Kamis, 2025-02-27 19:40:47

---------------------------- local function makeWikilink(page, display) if display then return mw.ustring.format('[[%s|%s]]', page, display) else...

Click to read more »
Module:Linguistic
Kamis, 2016-06-30 19:51:22

} return t[str] or 'masculine' end local function processnumber(str) if str == 'p' or str == 'plural' then return 'plural' else return 'singular'...

Click to read more »
Module:Footnotes
Minggu, 2024-06-16 22:29:41

category; if not tally then if args.ignore then return ''; -- if ignore is true then no message, no category end if article_whitelist...

Click to read more »
Module:RoundN
Kamis, 2015-09-03 16:04:48

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

Click to read more »
Module:Biota infobox/core
Jumat, 2026-04-17 12:36:00

taxoboxTable, target, headerText) local wikiText = "" -- return if we don't have value if not templateArgs[target] or templateArgs[target] == '' then return...

Click to read more »
Module:Hatnote list
Minggu, 2025-04-13 19:56:54

do if options[k] == nil then options[k] = v end end local s = options.space -- Format the list if requested if options.formatted then...

Click to read more »
Module:Error
Rabu, 2019-07-24 05:52:17

lower(tostring(args.tag)) -- Work out what html tag we should use. if not (tag == 'p' or tag == 'span' or tag == 'div') then tag = 'strong'...

Click to read more »
Module:AutosortTable
Rabu, 2019-05-22 06:03:19

create() local htable = html:tag('table') if class then htable:attr('class', class) end if style then htable:attr('style', style) end ...

Click to read more »
Module:WPSHIPS utilities
Rabu, 2026-01-07 09:56:09

(frag, frag_len) local nat = ''; if not nationality_list [frag[1]] then -- if not a one-word nationality if 2 <= frag_len - 2 then ...

Click to read more »
Module:Clade
Rabu, 2025-06-25 16:22:47

"" then -- if using a newick string instead of a clade structure newickString = p.processNewickString(newickString,childNumber) if nodeLabel ==...

Click to read more »
Module:Parameter names example
Senin, 2018-10-01 15:51:53

local template if args._template then template = args._template else local currentTitle = mw.title.getCurrentTitle() if currentTitle...

Click to read more »
Module:Infobox military conflict
Selasa, 2023-06-27 15:11:47

only time colspans[1] wouldn't be set is if no -- combatant has a field with the given prefix and suffix. if colspans[1] then -- Since each found argument...

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

ipairs(names) do if columnName == 'name' then name = row[pos] else newVal[columnName] = row[pos] end end if name then if ( (type(name)...

Click to read more »
Module:GHS phrases
Kamis, 2023-09-21 01:52:33

phrases' if sLabel == nil then sLabel = sSection end if (sLabel or '') == '' then sLabel = '' else sLabel = '|' .. sLabel end if (sSection...

Click to read more »
Module:Footnotes/anchor id list
Minggu, 2024-06-16 22:24:53

'([^|}]+)'); if rvalue then -- if rvalue is something rvalue = mw.text.trim (rvalue); -- trim it end if not rvalue...

Click to read more »
Module:Internet Archive
Kamis, 2020-06-18 21:09:53

sopt) if sopt then sopt = mw.ustring.lower(sopt) if sopt == "tight" then sopt = "t" end if sopt == "tightx" then sopt = "tx" end if sopt...

Click to read more »
Module:Sports table/WDL
Rabu, 2015-06-03 16:02:42

fa_word_plur -- First convert to lower case if it is a string for_against_style = string.lower(for_against_style) if for_against_style=='g' or for_against_style=='goal'...

Click to read more »
Module:String2
Rabu, 2022-08-10 18:09:20

local s1 = "" -- if it's a list chop off and (store as s1) everything up to the first <li> local lipos = mw.ustring.find(s, "<li>" ) if lipos then s1...

Click to read more »
Module:Table
Kamis, 2018-08-09 16:08:21

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

Click to read more »
Module:Check bibcode
Rabu, 2026-01-07 09:56:29

year; if 19 ~= id:len() then err_type = 'length'; else year = id:match ("^(%d%d%d%d)[%a][%w&%.][%w&%.][%w&%.][%w.]+[%a%.]$") -- if not year...

Click to read more »
Module:Purge
Jumat, 2023-02-10 13:41:13

-- Make the URL local url do local title if args.page then title = mw.title.new(args.page) if not title then error(string.format( "Hindi...

Click to read more »
Module:Str endswith
Selasa, 2017-10-03 11:45:06

args = frame:getParent().args local s = args[1] local pattern = args[2] if not s or not pattern then -- TRUE_STRING is not the natural choice here...

Click to read more »
Module:Track listing
Jumat, 2020-09-18 16:30:36

categories end -- Validate a track length. If a track length is invalid, a warning is added. -- A type error is raised if the length is not of type string or...

Click to read more »
Module:Episode table
Jumat, 2023-01-06 12:19:52

reference) local cell = mw.html.create('th') -- Width local cell_width if width == 'auto' then cell_width = 'auto' elseif tonumber(width) ~= nil...

Click to read more »
Module:Unsigned
Selasa, 2023-05-16 07:46:00

end local function addUtcToStringIfItDoesNotEndWithUtc(s) if s == "" or endswith(s, "~~~~") then return s end if not endswith(s, "(UTC)") then return...

Click to read more »
Module:Mw lang
Rabu, 2023-02-22 13:02:11

--------------------------- local or require()d entry point return true if <code> is a mediawiki recognized code; false else <code> - language code...

Click to read more »
Module:For loop
Kamis, 2019-08-15 22:36:22

ipairs(variableVals) do v = mw.text.trim(v) -- trim whitespace if #v > 0 or not yesno(args.skipBlanks) then if addSeparator then result = result .. sep end...

Click to read more »
Module:IPAddress
Selasa, 2021-10-05 13:47:11

local p = {} function p._isIpV6(s) local dcolon, groups if type(s) ~= "string" or s:len() == 0 or s:find("[^:%x]") -- only colon and hex digits...

Click to read more »
Module:Redirect template
Rabu, 2026-01-07 09:55:49

args local function valueFunc(key, val) if type(val) == 'string' then val = val:match('^%s*(.-)%s*$') if val == '' then return nil end end ...

Click to read more »
Module:NumberSpell
Jumat, 2021-08-27 12:04:14

local num = tonumber(args[1]) local success, result = pcall(p._main, num) if success then return result else return string.format('<strong class="error">Error:...

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

the entity ID of the item linked to the current page. function p.id(frame) if not mw.wikibase then return "no mw.wikibase" end return mw.wikibase...

Click to read more »
Module:Bibleverse
Kamis, 2024-01-11 22:34:27

local function trimArg(text) if type(text) == 'string' then text = text:match('(%S.-)%s*$') --trimmed text or nil if empty end return text end local...

Click to read more »
Module:Asbox
Jumat, 2022-09-16 07:53:11

it? Maybe not? cats = setmetatable({}, {__newindex = function(t, i, v) if not rawget(t, i) then rawset(t, i, v) table.insert(t, i) end end})...

Click to read more »
Module:Cat main
Sabtu, 2023-05-06 18:25:29

-- Get the links table. local links = mFormatLink.formatPages({}, {...}) if not links[1] then local page = mw.title.getCurrentTitle().text links[1]...

Click to read more »
Module:Check isxn
Senin, 2017-04-17 11:16:23

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' which is...

Click to read more »
Module:Include timeline
Selasa, 2024-04-23 00:49:01

(passedTitle or currentTitle.text) .. ' graphical timeline') if targetPage.exists then if mw.isSubsting() then return '{{' .. (currentTitle.namespace...

Click to read more »
Module:Main
Sabtu, 2022-08-06 08:59:21

main article or articles. It implements the -- template {{main}}. -- -- If the module is used in category or category talk space, it produces "The --...

Click to read more »
Module:Chessboard
Selasa, 2021-03-23 09:43:23

'^.*(%w)(%w).*$', '%1' ) or '' local alt = colchar[col] .. row .. ' ' if colornames[color] and piecenames[piece] then alt = alt .. colornames[color]...

Click to read more »
Module:Trim quotes
Rabu, 2022-04-27 14:31:56

local p = {} function p._trim(s) if s then if s:match([[^(['"]).*%1$]]) then return p._trim(string.sub(s,2,-2)) else return s end else return ""...

Click to read more »
Module:Category handler/shared
Jumat, 2014-10-24 08:55:49

in ipairs(blacklist) do local match = mw.ustring.match(page, pattern) if match then return true end end return false end function p...

Click to read more »
Module:MakeInvokeFunc
Minggu, 2024-08-25 21:13:54

function (key, value) if type(value) == 'string' then value = value:match('^%s*(.-)%s*$') -- Remove whitespace. if key == 'heading' or value...

Click to read more »
Module:Horizontal timeline
Minggu, 2015-08-30 14:01:03

local to = getNotNilValue(tonumber(args['to'])) if not from or not to or from == to then return ("<strong...

Click to read more »
Module:Geobox coor
Kamis, 2015-08-20 04:33:33

or '' local innersuffix = args['innersuffix'] or '' local cstr = '' if( isnotempty(args[3]) ) then cstr = coord_wrapper(frame, {args[1], args[2]...

Click to read more »
Module:Unicode data/datasets
Rabu, 2025-07-30 02:40:31

index end end if not charcode_index then error("Character code field (name='key', type='string') not found in data schema.") end if not value_index...

Click to read more »
Module:Attached KML
Rabu, 2019-08-21 18:55:07

wikiUrl, wikiTitle, wikiLink, trackingWikitext, kmlError if not (Args[L10n.para.from]) then if not qid then wikiUrl, wikiLink, siteindex, kmlError...

Click to read more »
Module:Infobox multi-lingual name
Selasa, 2026-02-17 15:15:00

>------------------------------------------------------------------ Returns true if argument is set; false otherwise. Argument is 'set' when it exists (not nil)...

Click to read more »
Module:Unicode data/aliases
Sabtu, 2025-07-26 22:18:51

in ipairs(data.data) do if cols[1] and cols[2] and cols[3] and cols[4] then code_point=tonumber("0x"..cols[1]) if cols[2] == 1 then result[code_point]={}...

Click to read more »
Module:WikidataCoord
Rabu, 2026-01-07 09:53:59

-- table of lat/long coords extracted from wikidata return if not is_set (args[1]) then -- in case wikidata returns nothing (happens...

Click to read more »
Module:Collapsible list
Rabu, 2024-10-16 13:08:30

{{collapsible list}}. local p = {} local function gettitlestyletracking( ts ) if not ts then return '' end ts = mw.ustring.gsub(mw.ustring.lower(ts), '%s'...

Click to read more »
Module:Infobox television disambiguation check
Senin, 2021-12-27 10:00:28

1, n do if (t[i] ~= delete) then -- Move i's kept value to j's position, if it's not already there. if (i ~= j) then ...

Click to read more »
Module:Taxobox ranks
Sabtu, 2025-12-27 17:53:59

Set up a constant to hold the rank names and their English equivalents. If adding to this list, note that rank names containing spaces or - must be enclosed...

Click to read more »
Module:Native name
Sabtu, 2024-11-02 17:57:56

native_name_list(), etc if not (args_t[1] or args_t[2]) and yes_no (args_t.suppress_empty_list_error) then return ''; -- if empty list error...

Click to read more »
Module:Medical cases chart/data
Jumat, 2020-07-31 14:53:40

local function formatChange(previous, current) if not previous or previous == 0 then return end if previous == current then return "=" end local...

Click to read more »
Module:Navbox with collapsible groups
Rabu, 2019-07-31 11:18:20

functions local function concatstrings(s) local r = table.concat(s, '') if r:match('^%s*$') then r = nil end return r end local function concatstyles(s)...

Click to read more »
Module:FishRef
Rabu, 2026-01-07 09:56:49

original concept) p.genericIdCitation = function(frame, title, url) if not templateArgs['id'] then return "no id parameter detected" end templateArgs['url']=...

Click to read more »
Module:Authority control/auxiliary
Kamis, 2025-01-02 04:39:45

ISNI (and ORCID) and returns it as a 16 characters string or returns false if it's invalid. See http://support.orcid.org/knowledgebase/articles/116780-...

Click to read more »
Module:Lang/tag from name
Selasa, 2025-03-04 17:03:28

function rev_list_add (rev_list, name, tag) if rev_list[name] then -- if already in <rev_list> if 2 == tag:len() then -- is this...

Click to read more »
Module:EditAtWikidata
Senin, 2024-04-22 10:14:34

entry for the article where this is placed. -- This message is only displayed if a local_parameter is not supplied -- i.e. when called from a template, it...

Click to read more »
Module:Photo montage
Selasa, 2021-04-06 10:30:56

args['foot_montage'] or '' local lastnum = nil local rownum = nil local floatstyle = nil if( position == 'left' or position == 'right' or position == 'none') then floatstyle...

Click to read more »
Module:Toolbar
Selasa, 2019-12-24 09:10:31

local toolbarItems = p.makeToolbarItems(args) if not toolbarItems then -- Return the blank string if no arguments were specified, rather than -- returning...

Click to read more »
Module:Cite taxon
Sabtu, 2025-08-23 10:55:22

original concept) p.genericIdCitation = function(frame, title, url) if not templateArgs['id'] then return "no id parameter detected" end templateArgs['url']=...

Click to read more »
Module:Convert/documentation/conversion data
Sabtu, 2023-11-25 12:47:34

gives conversion factors correct to 7 places. Factors in bold are exact. If exact factors have more than 7 places, they are rounded and no longer exact...

Click to read more »
Module:Convert/documentation/conversion data/introduction
Sabtu, 2023-11-25 12:21:15

gives conversion factors correct to 7 places. Factors in bold are exact. If exact factors have more than 7 places, they are rounded and no longer exact...

Click to read more »
Module:Escape
Kamis, 2015-09-03 16:07:49

('%x%s%s'):format(chr:byte(), safe, safe), ('%s%x'):format(safe, chr:byte()) ) if not self[self[1]] then self[self[1]] = { char = chr, text = ('%s(...

Click to read more »
Module:For nowiki
Rabu, 2020-12-16 20:38:30

{} code = mw.text.unstripNoWiki(code) for i, value in ipairs(args) do if i > offset then argstosub["i"] = i - offset argstosub["1"] = value ...

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

get("Unicode/data/scripts/singles.tab") for index, cols in ipairs(data.data) do if cols[1] and cols[2] then result.singles[tonumber(cols[1], 16)]=cols[2]...

Click to read more »
Module:Italic title
Rabu, 2016-05-18 16:17:36

parentheses = mw.ustring.match(title.text, '^(.+) (%([^%(%)]+%))$') local result if prefix and parentheses and args.all ~= 'yes' then result = string.format("<i>%s</i>...

Click to read more »
Module:Based on
Sabtu, 2019-05-18 11:13:29

lua_main(frame) local s = frame.args[1] if frame.args[3] then local args = {} for i, v in ipairs(frame.args) do if i >= 2 then args[#args+1] = v...

Click to read more »
Module:Ordnance Survey coordinates
Kamis, 2023-11-23 12:55:10

if T1>8 then T1 = T1-1 end local T2 = nil if mw.ustring.len(lett)>1 then T2 = mw.ustring.byte(mw.ustring.sub(lett,2))-65 if T2>8...

Click to read more »
Module:Sports color/doc
Rabu, 2020-11-25 10:01:58

various color cell2 templates {{#invoke:Sports color|check}} to check to see if a team has defined colors See: Module:Sports color/baseball Module:Sports...

Click to read more »
Module:Engvar
Minggu, 2016-03-27 15:56:23

if returnWord == nil then -- No hit so far. Search by words in the engvar entered, checking the list local useLang = engvarLang(args.engvar) if...

Click to read more »
Module:Graphical timeline
Selasa, 2024-04-23 00:46:41

[[:template:period end]]. -- Those templates must be implemented on the wiki. If the names are changed, they need to be changed here: local periodColor = "period...

Click to read more »
Module:Template invocation
Kamis, 2019-05-16 01:32:57

function p.name(title) if type(title) == 'string' then title = mw.title.new(title) if not title then error("invalid title in...

Click to read more »
Module:NUMBEROF/data
Selasa, 2020-05-19 02:50:22

ipairs(statistics.schema.fields) do -- Assume "site" is first entry and skip it. if i > 1 then map[v.name] = i - 1 -- name is lowercase end end return...

Click to read more »
Module:Unicode data/combining
Rabu, 2025-07-30 19:27:59

get("Unicode/data/combining/singles.tab") for index, cols in ipairs(data.data) do if cols[1] and cols[2] then result.singles[tonumber(cols[1], 16)]=cols[2]...

Click to read more »
Module:NYC bus link
Rabu, 2026-01-07 09:58:19

getArgs(frame); local result = {}; local city; args.city = args.city:lower(); if 'nyc' == args.city then city = 'New York City bus'; elseif 'li' == args...

Click to read more »
Module:DecodeEncode
Jumat, 2023-04-21 08:48:51

explicit true local boolean_value if type( boolean_str ) == 'string' then boolean_str = boolean_str:lower() if boolean_str == 'true' or boolean_str...

Click to read more »
Module:Namespace detect/data
Kamis, 2014-05-15 15:09:03

require('Module:Namespace detect/config') local function addKey(t, key, defaultKey) if key ~= defaultKey then t[#t + 1] = key end end -- Get a table of parameters...

Click to read more »
Module:Distinguish
Sabtu, 2025-03-01 17:37:42

_distinguish(args, text, selfref) checkType("_distinguish", 1, args, 'table') if #args == 0 and not text then return '' end local text = string.format( ...

Click to read more »
Module:ISO 3166/data/RO
Rabu, 2019-06-26 01:45:28

{name="Giurgiu"}, ["HD"] = {name="Hunedoara"}, ["HR"] = {name="Harghita"}, ["IF"] = {name="Ilfov"}, ["IL"] = {name="Ialomița"}, ["IS"] = {name="Iași"}...

Click to read more »
Module:Italian regions
Rabu, 2026-01-07 09:53:39

getArgs(frame) local p_data = data[args[1]] local config = frame.args if p_data then if config.link=='false' then return p_data.name else return...

Click to read more »
Module:Other uses
Selasa, 2024-07-23 09:46:31

emptyArgs = true for k, v in pairs(args) do if type(k) == 'number' then emptyArgs = false break end end if emptyArgs then args = { options.defaultPage...

Click to read more »
Module:Tree chart
Rabu, 2026-01-07 09:58:09

local trimmedVal = val:match('^%s*(.-)%s*$') if trimmedVal == '' then trimmedVal = '$' end if cells[trimmedVal] then table.insert(cell_args...

Click to read more »
Module:Navbox top and bottom
Minggu, 2025-03-02 13:11:19

{} for argName, value in pairs(parentArgs) do if value ~= '' then if type(argName) == 'string' then args[argName]...

Click to read more »
Module:Nihongo
Sabtu, 2020-11-14 20:58:11

([[Template:'); table.insert (msg, template); table.insert (msg, '|help]])</span>'); if 0 == mw.title.getCurrentTitle().namespace then table.insert (msg, '[[Category:Nihongo...

Click to read more »
Module:Category handler/config
Jumat, 2014-10-24 08:55:21

parameter. This skips the -- blacklist if set to the cfg.category2Yes value, and suppresses -- categorisation if present but equal to anything other than...

Click to read more »
Module:Uses Wikidata
Jumat, 2020-03-06 00:18:50

function p.usesProperty(frame) local args = frame.getParent(frame).args or nil if mw.text.trim(args[1] or '') == '' then args = frame.args end local result...

Click to read more »
Module:Userbox
Sabtu, 2022-03-26 16:09:16

greater than or equal to zero. If so, -- returns it as a number. If not, returns a default value. val = tonumber(val) if val and val >= 0 then return...

Click to read more »
Module:Protection banner/config
Rabu, 2025-12-03 09:39:33

the masterBanner table, which holds data for protection -- templates to use if no data has been found in the previous two tables. -- -- The values in the...

Click to read more »
Module:Submit an edit request
Rabu, 2019-03-06 18:23:19

local function message(key, ...) local params = {...} local msg = cfg[key] if #params < 1 then return msg else return mw.message...

Click to read more »
Module:Taxonbar/exists
Sabtu, 2020-02-22 08:52:48

_-]?[bB]ar') or --5 redirects as of 2019/9 string.match(content, '%{%{ *[Tt]axonIds') if found then return true end return false end return p...

Click to read more »
Module:Infobox road/color
Sabtu, 2019-06-15 03:04:55

self[headerType] if headerTypeColor then return headerTypeColor end local success, country = pcall(self.country, self, countryArg) if not(success) then...

Click to read more »
Module:Citation/CS1/Configuration
Rabu, 2026-02-25 10:55:13

assigned value if k then if k:find ('^display') then -- if <k> is one of the |display-<namelist>= parameters if v:match ('%d+') then...

Click to read more »
Module:NUMBEROF/other
Sabtu, 2020-06-13 03:53:54

local iSite, iArticles for i, v in ipairs(statistics.schema.fields) do if v.name == 'site' then iSite = i elseif v.name == 'articles' then iArticles...

Click to read more »
Module:NUMBEROF/rank
Sabtu, 2020-06-13 03:54:07

local iSite, iArticles for i, v in ipairs(statistics.schema.fields) do if v.name == 'site' then iSite = i elseif v.name == 'articles' then iArticles...

Click to read more »
Module:Tone superscript
Sabtu, 2025-01-11 14:33:09

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

Click to read more »
Module:Hatnote/styles.css
Sabtu, 2025-03-01 17:25:57

templatestyles element inserts a link element before hatnotes. * TODO: Remove link if/when WMF resolves T200206 */ .hatnote + link + .hatnote { margin-top: -0...

Click to read more »
Module:Cite web
Kamis, 2024-10-31 07:01:31

{CitationClass='web'} } setmetatable(newFrame, { __index = function(t, k) if type(frame[k]) == 'function' then return function(...) return frame[k](frame...

Click to read more »
Module:Labelled list hatnote
Sabtu, 2020-03-28 16:42:39

pairs(args) do if type(k) == 'number' then local display for i = 1, #prefixes do display = args[prefixes[i] .. k] if display then break...

Click to read more »
Module:About
Senin, 2022-08-15 08:32:36

list sectionString = 'section' } for k, v in pairs(defaultOptions) do if options[k] == nil then options[k] = v end end -- Set initial "about" string...

Click to read more »
Module:Unicode data/blocks
Selasa, 2025-07-29 01:23:37

result={} local write_index=1 for index, cols in ipairs(data.data) do if cols[1] and cols[2] and cols[3] then result[write_index]={tonumber(cols[1]...

Click to read more »
Module:Parameter validation/default config
Rabu, 2022-04-27 14:14:55

create_message(msg) end function create_message(msg) return require('Module:If preview')._warning({ mw.ustring.format("[[templatename]] used with %s."...

Click to read more »
Module:WikiProject banner/config
Kamis, 2024-10-24 12:59:24

page]]</b>. If this is a demonstration of the template, please set the parameter %s to prevent this page being miscategorised.', on_template_page = 'If this...

Click to read more »
Module:Sports color/basketball/doc
Sabtu, 2020-02-08 09:50:39

hexadecimal color values. To use the same color for more than one team name (e.g., if the team goes by more than one name, but the colors are the same), use ["SECONDARY...

Click to read more »
Module:Citation mode
Selasa, 2025-11-11 23:34:18

local cfg = mw.loadData ('Module:Citation/CS1/Configuration' .. sandbox) -- if cs1 config is set, return false, otherwise use supplied mode -- this prevents...

Click to read more »
Module:Wd/doc
Senin, 2020-11-16 14:12:33

arguments is marked. If multiple commands are given, then the applicable set is the union of the individual sets. For instance, if the commands properties...

Click to read more »
Module:SimpleDebug/doc
Minggu, 2020-06-07 03:32:31

function BigNum(num) SD.wtos ('big='..num) end for i, num in ipairs(tab) do if num > 9 then BigNum(num) else LittleNum() end end error (SD.s) end returns:...

Click to read more »
Module:Wd/i18n
Senin, 2025-09-01 01:57:19

function(num) if tostring(num):sub(-2,-2) == '1' then return "th" -- 10th, 11th, 12th, 13th, ... 19th end num = tostring(num):sub(-1) if num == '1'...

Click to read more »
Module:Template test case/config
Kamis, 2019-05-16 01:31:32

['columns-header'] = 'Side by side comparison', -- The error message to use if a templaten option is missing. -- $1 - the number of the missing template...

Click to read more »
Module:Category handler/blacklist
Jumat, 2014-10-24 08:54:49

categorise the following pages or their subpages. -- "%f[/\0]" matches if the next character is "/" or the end of the string. '^Wikipedia:Cascade%-protected...

Click to read more »
Module:Graph/doc
Jumat, 2020-03-06 00:28:48

FF=100% opacity, 80=50% opacity/transparency, etc. (The default color palette if n <= 10 is Category10:                                         else is Category20:...

Click to read more »
Module:Navbar/configuration
Kamis, 2022-01-20 11:05:39

['invalid_title'] = 'Invalid title ', ['classes'] = { -- set a line to nil if you don't want it ['navbar'] = 'navbar', ['plainlinks'] = 'plainlinks'...

Click to read more »
Module:Citation/CS1/Suggestions/sandbox
Senin, 2019-11-11 23:23:24

-- German ['originalort'] = 'location', -- German (if 'ort' is specified at the same time, the latter should be put in 'publication-place')...

Click to read more »
Module:Hatnote inline
Kamis, 2022-03-24 15:26:18

args = mArguments.getArgs(frame) local hatnote = mHatnote.hatnote(frame) if args.inline == nil or yesno(args.inline, true) then local subs = { ['<div']...

Click to read more »
Module:Documentation/config
Rabu, 2022-11-09 08:11:56

namespace we are in. -- -- Parameters: -- -- $1 is a link to the sandbox page. If the sandbox exists, it is in the following format: -- -- cfg['sandbox-link-display']...

Click to read more »
Module:Further
Selasa, 2016-03-22 20:12:21

{parentOnly = true}) local pages = mTableTools.compressSparseArray(args) if #pages < 1 then return mHatnote.makeWikitextError( 'no page names specified'...

Click to read more »
Module:Auto date formatter
Kamis, 2026-04-16 07:19:41

date as provided. ]] if date:match('^%d%d%d%d$') then -- YYYY return date end if date:match('^%a+%s+%d%d%d%d$')...

Click to read more »
Module:NUMBEROF/meta
Kamis, 2020-10-29 16:26:25

{} for _, v in ipairs(statistics.data) do local project = v[iProject] if v[iStatus] == 'active' then nrActive[project] = (nrActive[project] or 0)...

Click to read more »
Module:Stock tickers/NYSE
Senin, 2020-12-28 02:09:24

local exchange = args.exchange -- By default the exchange will be NYSE if not exchange then exchange = 'NYSE' end -- Get corrected ticker ticker...

Click to read more »
Module:Language/name/data
Rabu, 2018-05-02 14:43:42

pairs(langslist) do for _, langname in pairs(langnames) do if not coalesced[langcode] then coalesced[langcode] = {}...

Click to read more »
Module:Convert/extra
Rabu, 2021-07-14 15:27:25

-- should cause little server overhead and should propagate quickly. -- -- If a unit is defined in the data module, any definition here is ignored, -- so...

Click to read more »
Module:Flaglist
Sabtu, 2021-02-06 02:32:38

local p = {} function p.luawidth(size) --For use within Lua local w if string.find(size,"^%d+x%d+px$") then -- width and height (eg. 20x10px) --...

Click to read more »
Module:For
Senin, 2020-06-08 09:40:32

takes a manual arguments table function p._For (args) local use = args[1] if (not use) then return mHatnote.makeWikitextError( 'no context parameter...

Click to read more »
Module:College color/data/doc
Sabtu, 2020-02-15 17:40:56

may be deleted. To use the same color for more than one team name (e.g., if the team goes by more than one name, but the colors are the same), use ["SECONDARY...

Click to read more »
Module:Convert/wikidata/data
Sabtu, 2023-11-25 12:11:43

article that unit will be linked to when lk=on si = key for the SI base unit, if any The base unit for each SI unit here must have: symbol = symbol used...

Click to read more »
Module:Plain text
Rabu, 2019-06-19 23:52:47

local text = frame.args[1] return p._main(text) end function p._main(text) if not text then return end text = mw.text.killMarkers(text) :gsub('&nbsp;'...

Click to read more »
Module:Convert/doc
Sabtu, 2023-11-25 12:23:44

optional and are used only if required and if the module exists: Module:Convert/extra – extra (temporary) unit definitions; used if a unit is not found in...

Click to read more »
Module:Convert/text
Sabtu, 2025-08-02 18:03:29

for use on another wiki. -- See [[:en:Template:Convert/Transwiki guide]] if copying to another wiki. -- Some units accept an SI prefix before the unit...

Click to read more »
Module:Pagetype/config
Kamis, 2024-10-24 15:48:33

} -- This table holds the namespaces to be looked up from cfg.pagetypes if -- cfg.defaultnsExtended is set. cfg.extendedNamespaces = { [0] = true, ...

Click to read more »
Module:Ka-translit
Rabu, 2022-11-02 08:40:11

["ჶ"]="?", ["ჷ"]="?", ["?"]="ʾ" }; function p.tr(frame) text = frame.args[1] if text == nil or text == "" or mw.ustring.find(text, "[Ⴀ-ჼ]") == nil then ...

Click to read more »
Module:Citation/CS1/Configuration/sandbox
Senin, 2019-11-18 22:49:23

['help page label'] = 'tulong', -- Internal errors (should only occur if configuration is bad) ['undefined_error'] = 'Called with an undefined error...

Click to read more »
Module:Infobox road/meta/mask/country
Sabtu, 2019-06-15 03:07:21

string.upper(country) or countries[state] end function p.country(frame) if not getArgs then getArgs = require('Module:Arguments').getArgs end local...

Click to read more »
Module:Adjacent stations/i18n
Kamis, 2023-04-13 10:42:33

function(s) return s and ' or ' .. s end, ['via-first'] = false, -- If the «via» text comes before termini, change to «true» ['via'] = function(s)...

Click to read more »
Module:Sports results/doc
Kamis, 2021-11-25 18:36:33

listed as |team1=, |team2=, etc for however many teams you need in the table. If you set |showteam= to a team, then that team's results are highlighted as...

Click to read more »
Module:I18n/complex date
Selasa, 2023-11-07 17:21:09

decYear(state,lang,case) --Declension of word "year" in several languages if state.precision == 9 then yearCase = { fi={xxx='vuosien', gen='vuoden'...

Click to read more »
Module:Sports color/basketball
Selasa, 2022-04-05 21:16:57

= "BC Luleå", ["Djurgårdens IF Basket"] = {"203763", "FFFFFF", "5EB7EB", "FFFFFF"}, ["Djurgårdens IF"] = "Djurgårdens IF Basket", ["Köping Stars"] =...

Click to read more »
Module:Cite2
Rabu, 2026-02-11 18:27:34

template = template:lower(); -- lowercase for table indexes if not cfg.known_templates_t[template] then -- do we recognize this template...

Click to read more »
Module:Citation/CS1/Whitelist/sandbox
Senin, 2019-11-11 23:15:06

-- cite interview removed ['chapterlink'] = nil, -- if ever necessary to link to a chapter article, |chapter= can be wikilinked ...

Click to read more »
Module:Citation/CS1/Suggestions
Rabu, 2026-02-11 21:16:29

-- German ['originaltitel'] = 'title', -- German (if 'originaltitel' is specified, any possible contents of 'title' should be put...

Click to read more »
Module:Footnotes/anchor id list/data
Minggu, 2024-06-16 22:26:19

with cite ...) Because they 'look like' cs1 templates they are handled as if they were cs1 templates. These templates are NOT wrapper templates; names...

Click to read more »
Module:Navbox/configuration
Minggu, 2025-03-02 13:08:20

navbox_subgroup = 'navbox-subgroup', navbox_title = 'navbox-title', -- l10n only if you change pattern.navbox_title below navbox_odd_part = 'odd', -- do not...

Click to read more »
Module:Time/data
Rabu, 2021-12-22 17:12:29

empty string if not observed dst_ends = '', -- (required if dst_begins is set) daylight saving ends; e.g. 1st Sunday in November; ignored if dst_begins...

Click to read more »
Module:Flagg/Altvar data
Minggu, 2025-02-16 16:35:27

wrong_aliases = {} table.sort(alt_aliases) for k,v in pairs(alt_aliases) do if alt_map[v] then table.insert(alt_map[v].aliases,k) else table.insert(wrong_aliases...

Click to read more »
Module:Infobox multi-lingual name/data
Selasa, 2026-02-17 15:02:30

table are lower case versions of the header display text without punctuation (if any) TODO: add support for transl transliteration standard parameter; akin...

Click to read more »
Module:Taxonbar/conf
Senin, 2022-07-11 11:39:23

--------------------------------------------------------------------- --| If propertyId is... | then... ...

Click to read more »
Module:I18n/ordinal
Kamis, 2016-06-30 20:16:51

chain. For example, "de-formal" would fallback to scheme for "de", and only if that does not exist would the "period-scheme" be used. ]] p.SchemeFromLang...

Click to read more »
Module:Lang/data/sandbox
Kamis, 2025-04-24 10:20:32

data from this module; require() avoids metatable trap for variant data if 'var_sup' == src_type then for k, v in pairs (source_t) do out[k:lower()]...

Click to read more »
Module:Lang/data
Kamis, 2025-04-24 10:20:52

data from this module; require() avoids metatable trap for variant data if 'var_sup' == src_type then for k, v in pairs (source_t) do out[k:lower()]...

Click to read more »
Module:Val/units/sandbox
Minggu, 2017-04-23 20:04:04

ANGLE pi/648000 ]=] -- If val has "|long scale=on" the following definitions are used -- (then, if not found here, the normal definitions...

Click to read more »
Module:Val/units
Selasa, 2025-10-07 08:58:42

[[Milliarcsecond|mas]] pi/648000000 ]=] -- If val has "|long scale=on" the following definitions are used -- (then, if not found here, the normal definitions...

Click to read more »
Module:Transclusion count/data/C
Sabtu, 2022-03-26 09:44:29

["Category_see_also/Category_pair_check"] = 33000, ["Category_see_also_if_exists"] = 71000, ["Category_see_also_if_exists_2"] = 83000, ["Category_title"] = 2400, ["Catexp"]...

Click to read more »
Module:Shindo/data
Minggu, 2024-08-25 21:12:25

objectToWriteTo, objectToReadFrom) for k,v in pairs(objectToWriteTo) do if objectToReadFrom[k] ~= nil then v[nameOfField] = objectToReadFrom[k] end ...

Click to read more »
Module:Icon/data
Senin, 2025-08-25 08:28:53

ret= {} for code, iconData in pairs(data) do iconData.canonicalCode = code if iconData.aliases then for _, alias in ipairs(iconData.aliases) do ret[alias]...

Click to read more »
Module:Language/data
Selasa, 2023-11-07 07:52:31

= "𐍆", ["[Xx]"] = "𐍇", ["[Ƕƕ]"] = "𐍈", -- Not sure if "hw" and "hv" can safely be converted ["[OoŌō]"] = "𐍉", }, },...

Click to read more »
Module:Wikt-lang/data
Jumat, 2025-02-14 09:17:51

= "𐍆", ["[Xx]"] = "𐍇", ["[Ƕƕ]"] = "𐍈", -- Not sure if "hw" and "hv" can safely be converted ["[OoŌō]"] = "𐍉", }, },...

Click to read more »
Module:Portal/images/aliases
Kamis, 2020-09-10 13:43:20

case, and the "Portal:" namespace prefix -- should be omitted. For example, if you wanted "UK" to be an alias for "Portal:United Kingdom", then the -- alias...

Click to read more »
Module:I18n/date
Kamis, 2019-09-05 02:21:28

follows regular language fallback chain and would default to German, and only if that does not exist then to English. ]] p.DateLang = { ['be'] = 'ru-form'...

Click to read more »
Module:Interlinear/data
Rabu, 2025-10-08 17:39:27

table here is traversed by the function that expands glossing abbreviations. If the abbreviation isn't found in this list and it begins with an "N" then the...

Click to read more »
Module:Political party/I
Minggu, 2022-01-23 06:59:02

}, ["Idle Toad"] = {abbrev = "", color = "#DC143C", shortname = "",}, ["If You Want It, Chile Changes"] = {abbrev = "", color = "lightblue", shortname...

Click to read more »
Module:Calendar date/localfiles/Hanukkah
Rabu, 2022-06-29 11:32:04

limitation by calculating the end-date by adding 8 years to the start date, if this condition is encountered. Note 2: {{Calendar date}} requires dates...

Click to read more »
Module:Footnotes/whitelist
Minggu, 2024-06-16 22:27:56

wrapper_template_defaults table. article reader queries this table to see if template_name is a wrapper template ]] local wrapper_templates = { ...

Click to read more »
Module:Calendar date/events
Rabu, 2022-06-29 11:24:06

source = '' - Describe the source, used in creating citations. } If datatype = 'localfile' then addition entries should be added: citeurl...

Click to read more »
Module:Convert/data
Kamis, 2025-11-27 21:58:36

loaded only once per page. -- See [[:en:Template:Convert/Transwiki guide]] if copying to another wiki. -- -- These data tables follow: -- all_units ...

Click to read more »