Search Results: Module:Convert character width/data/sandbox

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


Module:Convert
Kamis, 2026-01-15 09:19:56

-- Convert a value from one unit of measurement to another. -- Example: {{convert|123|lb|kg}} --> 123 pounds (56 kg) -- See [[:en:Template:Convert/Transwiki...

Click to read more »
Module:Convert/doc
Senin, 2026-04-06 23:48:39

This module converts a value from one unit of measurement to another. For example: {{convert|123|lb|kg}} → 123 pounds (56 kg) The module is called using...

Click to read more »
Module:Convert/documentation/conversion data
Senin, 2026-03-02 10:32:53

used by Module:Convert, although more units may temporarily be at Module:Convert/extra. Units should be discussed at Template talk:Convert. This page is...

Click to read more »
Module:Convert character width/doc
Jumat, 2023-11-10 14:24:39

width|full|text to convert}} From full-width to half-width {{#invoke:convert character width|half|text to convert}} {{#invoke:convert character width|full|some...

Click to read more »
Module:Convert/extra
Minggu, 2026-05-17 13:34:23

data used by Module:Convert. -- -- [[Module:Convert/data]] defines all units and is transcluded in all pages -- where [[Module:Convert]] is used. Testing...

Click to read more »
Module:Convert/text
Minggu, 2025-10-05 14:15:45

by Module:Convert for enwiki. -- This is a separate module to simplify translation for use on another wiki. -- See [[:en:Template:Convert/Transwiki guide]]...

Click to read more »
Module:Convert/documentation/conversion data/introduction
Minggu, 2026-05-24 14:22:45

used by Module:Convert, although more units may temporarily be at Module:Convert/extra. Units should be discussed at Template talk:Convert. This page is...

Click to read more »
Module:Convert/wikidata
Kamis, 2021-05-06 12:08:27

-- Functions to access Wikidata for Module:Convert. local Collection = {} Collection.__index = Collection do function Collection:add(item) if item...

Click to read more »
Module:Convert/sandbox/testcases
Kamis, 2014-06-19 17:39:53

-- Tests for sandboxed convert. -- [[Module talk:Convert/sandbox/testcases]] contains: -- {{#invoke:convert/sandbox/testcases|run_tests}} local tests...

Click to read more »
Module:Convert/extra/sandbox
Rabu, 2024-10-23 10:32:27

data used by Module:Convert. -- -- [[Module:Convert/data]] defines all units and is transcluded in all pages -- where [[Module:Convert]] is used. Testing...

Click to read more »
Module:Convert/text/sandbox
Senin, 2026-03-02 10:38:54

by Module:Convert for enwiki. -- This is a separate module to simplify translation for use on another wiki. -- See [[:en:Template:Convert/Transwiki guide]]...

Click to read more »
Module:Convert/tester/doc
Senin, 2024-09-02 05:28:26

talk:Convert/sandbox/testcases) contains: {{#invoke:convert/sandbox/testcases|run_tests}} The testcases module page (for example, Module:Convert/sandbox/testcases)...

Click to read more »
Module:Convert/helper
Rabu, 2024-01-10 08:46:26

template parameters -- for use with Template:Convert. -- This module is not used by Template:Convert or Module:Convert. local function stripToNil(text) --...

Click to read more »
Module:Convert/sandbox
Senin, 2026-03-02 10:48:21

-- Convert a value from one unit of measurement to another. -- Example: {{convert|123|lb|kg}} → 123 pounds (56 kg) -- See [[:en:Template:Convert/Transwiki...

Click to read more »
Module:Convert/extra/doc
Jumat, 2024-08-30 03:51:17

quickly add a new unit for use with {{convert}}. When satisfied that a unit is working correctly, ask at Module talk:Convert for the unit to be moved to the...

Click to read more »
Module:Convert/tester
Selasa, 2026-03-03 13:50:15

'Countries/United Kingdom', }, convert = { 'Convert', 'Convert/data', 'Convert/text', 'Convert/extra', 'Convert/wikidata', 'Convert/wikidata/data', }...

Click to read more »
Module:Convert/wikidata/sandbox
Senin, 2020-12-14 13:00:27

-- Functions to access Wikidata for Module:Convert. local Collection = {} Collection.__index = Collection do function Collection:add(item) if item...

Click to read more »
Module:Convert/wikidata/data
Minggu, 2021-06-06 10:21:16

for Module:Convert. The codes should rarely change, and using a cache means that changing a unit at Wikidata will not cause lots of converts in articles...

Click to read more »
Module:Convert/show/doc
Jumat, 2024-08-30 03:54:25

obtained by calling Module:Convert. In addition, the module can be used to show {{convert}} usage examples. See Module talk:Convert/show for a list of unique...

Click to read more »
Module:Convert/sandbox/doc
Jumat, 2024-08-30 03:54:12

Module:Convert • Module:Convert/sandbox • different (diff) Module:Convert/data • Module:Convert/data/sandbox • different (diff) Module:Convert/text •...

Click to read more »
Module:Convert/show
Selasa, 2018-02-06 09:58:23

specified units. Data is obtained by calling Module:Convert. -- Also provides a function to show convert usage examples. local Collection -- a table to...

Click to read more »
Module:Convert/text/doc
Sabtu, 2024-10-19 10:07:38

This page defines text used by Module:Convert. All documentation (from Module:Convert/doc) is at that module. The text includes messages and categories...

Click to read more »
Module:Convert/data/doc
Sabtu, 2024-10-19 10:06:50

This page defines the conversion data used by Module:Convert. All documentation (from Module:Convert/doc) is at that page. Do not manually add units to...

Click to read more »
Module:Convert/makeunits/doc
Jumat, 2024-08-30 03:51:40

Module:Convert to allow conversion between units of measurement. Usage: Put one of the following lines (with nothing else) in a sandbox: {{#invoke:convert...

Click to read more »
Module:Convert/testcases/messages1
Minggu, 2013-09-22 02:41:39

-- *<code><nowiki>{{convert}}</nowiki></code> compared with <code><nowiki>{{convert/sandboxlua}}</nowiki></code> -- Unit Click talk page to run tests...

Click to read more »
Module:BaseConvert
Rabu, 2022-04-13 11:58:12

ustring.char(mw.ustring.codepoint(s, 1) - 0xFEE0) end) end local function _convert(n, base, from, precision, width, default, prefix, suffix) n = tostring(n)...

Click to read more »
Module:Convert/wikidata/data/sandbox
Minggu, 2021-05-23 13:57:38

for Module:Convert. The codes should rarely change, and using a cache means that changing a unit at Wikidata will not cause lots of converts in articles...

Click to read more »
Module:Convert default
Senin, 2024-12-23 01:00:46

getArgs local TableTools = require('Module:TableTools') local ConvertData = require('Module:Convert/data').all_units local p = {} function p.main(frame) ...

Click to read more »
Module:Unicode convert/doc
Selasa, 2021-05-25 19:05:29

Converts Unicode character codes, always given in hexadecimal, to their UTF-8 or UTF-16 representation in upper-case hex or decimal. Can also reverse this...

Click to read more »
Module:Convert/helper/doc
Jumat, 2024-08-30 03:51:30

module:Convert. It can be used in templates to preprocess input from regular written text into formatted input. For example: {{convert|{{#invoke:Convert/helper...

Click to read more »
Module:Convert to eastern arabic numerals
Selasa, 2023-12-05 21:14:18

['7'] = '٧', ['8'] = '٨', ['9'] = '٩', ['.'] = '٫' } function p._convert(args) if args == nil then return 'Error! Arguments provided are null'...

Click to read more »
Module:Convert character width
Sabtu, 2023-09-30 10:30:30

-- This module converts support characters from half-width to full-width, and vice versa. -- See [[Halfwidth and fullwidth forms]] for an explanation of...

Click to read more »
Module:Convert to eastern arabic numerals/testcases
Kamis, 2023-04-13 03:10:44

require('Module:Convert to eastern arabic numerals') -- Example unit test. function p:test_convert() self:preprocess_equals('{{#invoke:Convert to eastern...

Click to read more »
Module:Convert to eastern arabic numerals/doc
Jumat, 2025-07-25 19:51:03

{{#invoke:Convert to eastern arabic numerals|convert|3.1415}} Load the module with the following code: local mConvertNumerals = require('Module:Convert to eastern...

Click to read more »
Module:Convert character width/data
Rabu, 2021-10-27 00:25:21

-- This is the data page for [[Module:Convert character width]]. -- TODO: There are quite a few missing characters. See [[Halfwidth and Fullwidth Forms...

Click to read more »
Module:Convert/makeunits
Selasa, 2024-10-22 14:42:28

-- This module generates the wikitext required at Module:Convert/data -- by reading and processing the wikitext of the master list of units -- (see conversion_data...

Click to read more »
Module:BaseConvert/sandbox
Selasa, 2022-04-12 14:18:47

ustring.char(mw.ustring.codepoint(s, 1) - 0xFEE0) end) end local function _convert(n, base, from, precision, width, default, prefix, suffix) n = tostring(n)...

Click to read more »
Module:ConvertNumeric
Kamis, 2023-02-09 08:04:17

Module for converting between different representations of numbers. See talk page for user documentation. -- For unit tests see: [[Module:ConvertNumeric/testcases]]...

Click to read more »
Module:BaseConvert/doc
Jumat, 2024-08-30 03:24:36

require('Module:BaseConvert') BaseConvert.convert({n = 14600926, base = 16}) -- returns 'DECADE' Arguments: n - (required) the number to be converted, as a string...

Click to read more »
Module:ConvertIB/doc
Jumat, 2026-01-09 05:42:35

A Lua module that wraps {{convert}}, designed for infoboxes. It implements: {{convinfobox}} {{Infobox settlement/areadisp}} {{Infobox settlement/lengthdisp}}...

Click to read more »
Module:ConvertIB/testcases
Minggu, 2025-11-02 07:34:00

Unit tests for [[Module:ConvertIB]]. Click talk page to run tests. local p = require('Module:UnitTests') local function convert_tester(tester,sandbox)...

Click to read more »
Module:Convert to eastern arabic numerals/sandbox
Kamis, 2023-04-13 03:13:16

["7"] = "٧", ["8"] = "٨", ["9"] = "٩", ["."] = "," } function p._convert(args) if not args or not args[1] then return "Error! Arguments provided...

Click to read more »
Module:Infobox gridiron football person/convert/testcases
Rabu, 2015-08-26 03:53:19

self:preprocess_equals('{{#invoke:Infobox gridiron football person/convert|main}}', '{{Infobox gridiron football person}}') end function p:test_teamsYears()...

Click to read more »
Module:Sandbox/Ralvahkaset/a convert
Kamis, 2026-02-19 23:16:00

-- Module:Sandbox/Ralvahkaset/a convert -- Solar to Lunar conversion logic for Vietnamese calendar -- Based on the vietnamese-date library algorithm ...

Click to read more »
Module:Sandbox/Matroc/ConvertRomanDate
Rabu, 2013-06-26 14:59:13

-- The Main purpose is to convert ROMAN dates to Arabic numerals -- wjk - Matroc local p = {} function p.romantonum( frame ) local RN = { ["M"]...

Click to read more »
Module:Sandbox/trappist the monk/airports convert/doc
Senin, 2018-07-23 20:52:55

Results from this code are available at Module talk:Sandbox/trappist the monk/airports convert/data....

Click to read more »
Module:ConvertIB
Sabtu, 2025-10-04 11:35:37

-- Call {{convert}} with args local function callConvert(args) local frame = mw.getCurrentFrame() return frame:expandTemplate{title='Convert', args=args}...

Click to read more »
Module:ConvertNumeric/sandbox
Jumat, 2026-02-13 20:42:25

Module for converting between different representations of numbers. See talk page for user documentation. -- For unit tests see: [[Module:ConvertNumeric/testcases]]...

Click to read more »
Module:Spellnum per MOS
Senin, 2025-10-20 01:44:12

by other scripts. Takes arguments: -- - 1: string or number, value to convert -- - forcenum: string for Template:Yesno, forces a result in digits for...

Click to read more »
Module:User:Mr. Stradivarius/convertTime
Senin, 2013-06-17 16:27:43

-- First, define a table of text to search for, and what to convert it to. local conversionTable = { ['জানুয়ারি'] = 'January', ['ফেব্রুয়ারি']...

Click to read more »
Module:Coordinates
Senin, 2026-01-26 03:35:45

Simple function for converting decimal degree values to DMS format. {{#invoke:Coordinates | dms2dec }} : Simple function for converting DMS format to decimal...

Click to read more »
Module:ConvertIB/sandbox
Minggu, 2025-11-02 07:34:30

-- Call {{convert}} with args local function callConvert(args) local frame = mw.getCurrentFrame() return frame:expandTemplate{title='Convert', args=args}...

Click to read more »
Module:ConvertIB/data
Kamis, 2025-09-25 01:01:03

-- Units accepted by {{convert}} that come in groups (e.g., "5 ft 6 in") local multiple = {'mich', 'michlk', 'michainlk', 'miyd', 'miydftin', 'mift'...

Click to read more »
Module:Coordinates/sandbox
Senin, 2026-01-12 03:40:02

Simple function for converting decimal degree values to DMS format. {{#invoke:Coordinates | dms2dec }} : Simple function for converting DMS format to decimal...

Click to read more »
Module:German coord convert
Senin, 2020-02-03 01:14:30

-- This module converts German Wikipedia-style coordinates to a formatted -- invocation of the [[template:coord]] template local p = {} function p.main(frame)...

Click to read more »
Module:BaseConvert/Greek sandbox
Rabu, 2022-09-28 01:36:56

ustring.char(mw.ustring.codepoint(s, 1) - 0xFEE0) end) end local function _convert(n, base, from, precision, width, default, prefix, suffix) n = tostring(n)...

Click to read more »
Module:Convert/data
Kamis, 2026-01-15 16:43:54

[[Module:Convert]] which uses mw.loadData() for -- read-only access to this module so that it is loaded only once per page. -- See [[:en:Template:Convert/Transwiki...

Click to read more »
Module:Val
Minggu, 2025-06-01 12:39:35

symbol, result.link } use_convert = true end else result = {} use_convert = true end local convert_unit = convert_lookup(ucode, value, scaled_top...

Click to read more »
Module:Tropical cyclone season effects
Minggu, 2021-10-24 05:53:56

return tonumber(rangeA), nil else return nil, nil end end -- Module:Convert does not expose a module-friendly conversion system. -- For this reason...

Click to read more »
Module:Unicode convert
Minggu, 2021-04-11 20:12:30

local p = {} -- NOTE: all these functions use frame solely for its args member. -- Modules using them may therefore call them with a fake frame table...

Click to read more »
Module:ConvertNumeric/testcases
Senin, 2025-07-28 02:41:31

-- Unit tests for [[Module:ConvertNumeric]]. Click talk page to run tests. local p = require('Module:UnitTests') local frame = mw.getCurrentFrame() local...

Click to read more »
Module:Infobox body of water tracking
Rabu, 2025-05-14 03:11:21

ipairs(dim_list) do if hasnoconvert(args[param] or '') then no_convert_parameters = no_convert_parameters + 1 table.insert(warnmsg, 'Unconverted dimensions...

Click to read more »
Module:Sandbox/isaacl/ColourSpace/testcases
Senin, 2014-06-23 07:09:53

function me:test_Colour_convert_template_identity() self:preprocess_equals('{{User:Isaacl/Colour convert|127|0|255|to=sRGB24bit}}', ...

Click to read more »
Module:Lang-hbs/testcases
Minggu, 2014-06-29 00:45:52

p:test_convert_cyr() self:preprocess_equals('{{#invoke:lang-hbs/sandbox|convert|cyrillic=Краљевина Југославија}}', '{{#invoke:lang-hbs|convert|cyrillic=Краљевина...

Click to read more »
Module:Road data/util
Rabu, 2023-05-31 03:52:14

done in {{convert}}. prec = prec - order(multiplier / 0.2) end local converted = distance * multiplier local magnitude = order(converted) if prec...

Click to read more »
Module:Val/sandbox
Kamis, 2025-05-29 16:08:52

symbol, result.link } use_convert = true end else result = {} use_convert = true end local convert_unit = convert_lookup(ucode, value, scaled_top...

Click to read more »
Module:Person length
Rabu, 2019-10-09 00:59:50

'') return tonumber(s) end return nil end local function get_convert_length_args(s, prefer, enforce) local prefer_m = (prefer or '') == 'm'...

Click to read more »
Module:Infobox gridiron football person/convert
Kamis, 2015-09-10 10:55:34

-- [SublimeLinter luacheck-globals:mw] -- This module serves to convert <br>-delimited teams/years parameters in -- [[Template:Infobox gridiron football...

Click to read more »
Module:Tropical cyclone season effects/sandbox
Minggu, 2021-10-24 05:46:57

return tonumber(rangeA), nil else return nil, nil end end -- Module:Convert does not expose a module-friendly conversion system. -- For this reason...

Click to read more »
Module:Sandbox/isaacl/ColourSpace
Selasa, 2013-03-12 02:57:31

local me = { } local bc = require('Module:BaseConvert') local Tuple = require('Module:Sandbox/isaacl/ColourSpace/Tuple') local Formats =...

Click to read more »
Module:Person weight
Minggu, 2025-10-05 08:25:17

'%s*[–%-]%s*', '') return tonumber(s) end return nil end local function get_convert_weight_args(s, kg_stlb, lb_stlb) local prefer_m = (prefer or '') == 'm'...

Click to read more »
Module:Forward parameters to template call/doc
Jumat, 2024-08-30 04:30:19

it. To specify a prefix to convert to numbered parameters, set {{{_convert_prefix}}} (or {{{_convert_prefix1}}}, {{{_convert_prefix2}}}, etc.) The order...

Click to read more »
Module:ConvertNumeric/doc
Jumat, 2024-08-30 03:55:14

{{#invoke:ConvertNumeric|function_name}} {{Spellnum per MOS}} {{Number to word}} Module:Strip to numbers – extract a number from a string (supports negatives...

Click to read more »
Module:Val/units/doc
Senin, 2025-05-05 23:59:00

Val/list, you may decide to address it at Template talk:Convert. To override entries at Convert, make an entry here. If you're not in a hurry, you may...

Click to read more »
Module:Convert/data/sandbox
Senin, 2026-03-02 10:35:27

[[Module:Convert]] which uses mw.loadData() for -- read-only access to this module so that it is loaded only once per page. -- See [[:en:Template:Convert/Transwiki...

Click to read more »
Module:Sandbox/DePiep/uchar
Selasa, 2023-08-01 22:45:17

require('Module:Sandbox/DePiep/uchar-helper') local uBaseConvert = require('Module:BaseConvert') local yesno = require('Module:Yesno') local str...

Click to read more »
Module:Infobox body of water tracking/sandbox
Kamis, 2021-05-06 22:13:37

ipairs(dim_list) do if hasnoconvert(args[param] or '') then no_convert_parameters = no_convert_parameters + 1 table.insert(warnmsg, 'Unconverted dimensions...

Click to read more »
Module:Color/doc
Jumat, 2024-08-30 03:48:30

format. To convert a hexadecimal triplet to an RGB triplet as comma-separated values: {{#invoke:Color|hexToRgbTriplet|color}} To convert a hexadecimal...

Click to read more »
Module:Sandbox/Erutuon/Temperature arrays
Rabu, 2016-10-05 09:35:23

cannot be converted to a number.", 2) return "" end end local function convert(value, decimals, unit) -- Unit is the unit being converted from. It...

Click to read more »
Module:Person weight/sandbox
Minggu, 2025-10-05 08:25:27

'%s*[–%-]%s*', '') return tonumber(s) end return nil end local function get_convert_weight_args(s, kg_stlb, lb_stlb) local prefer_m = (prefer or '') == 'm'...

Click to read more »
Module:Person length/sandbox
Selasa, 2020-05-26 15:06:08

'') return tonumber(s) end return nil end local function get_convert_length_args(s, prefer, enforce) local prefer_m = (prefer or '') == 'm'...

Click to read more »
Module:ConvertNumeric/sandbox/testcases
Rabu, 2023-02-08 05:07:14

-- Unit tests for [[Module:ConvertNumeric/sandbox]]. Click talk page to run tests. local p = require('Module:UnitTests') local frame = mw.getCurrentFrame()...

Click to read more »
Module:Sandbox/Ans/CS1Local
Minggu, 2019-02-17 21:59:54

imported from slected Module:Citation/CS1/Configuration local function _convert_year(val, local_digits) val = mw.ustring.gsub (val, '%d', local_digits);...

Click to read more »
Module:NSW GNR
Selasa, 2019-11-12 03:27:14

"Mn", "It"}} function p.convert(frame) converted = "" for i=1,5 do if (#frame.args[1]>=i) then converted = converted .. digit[i][1+tonumber(string...

Click to read more »
Module:Forward parameters to template call
Kamis, 2022-12-15 10:10:06

function convert(args) local filter = {} local newParams = {} for arg, val in pairs(args) do if arg == tostring(arg) then if arg:match("^_convert_prefix")...

Click to read more »
Module:Sandbox/Elli/SignatureDateConvert/doc
Minggu, 2024-01-14 21:58:19

for converting dates that are in signatures to YYYY-MM-DD, so they can be used sort-ably in tables. {{#invoke:Sandbox/Elli/SignatureDateConvert|sigConv|timestamp=02:19...

Click to read more »
Module:HexShade
Senin, 2023-04-17 07:21:59

require('Module:BaseConvert') local s1 = baseconvert.convert({n = math.floor(r+0.5), base = 16}) local s2 = baseconvert.convert({n = math.floor(g+0...

Click to read more »
Module:Infobox AFL biography/convert
Minggu, 2017-02-12 06:01:55

-- [SublimeLinter luacheck-globals:mw] -- This module serves to convert <br>-delimited teams/years parameters in -- [[Template:Infobox AFL biography]]...

Click to read more »
Module:Wikidata table/doc
Senin, 2025-12-08 19:17:15

will work). A convenient function to convert a list of articles into a table. {{subst:#invoke:Wikidata table | convert | template = name of template | 1...

Click to read more »
Module:Pop density
Minggu, 2019-04-28 20:31:39

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

Click to read more »
Module:LuminanceChroma to sRGB/doc
Selasa, 2026-03-17 02:18:43

Converts: Luminance (percent) Chroma angle (degrees) Chroma (percent or signed custom range) into sRGB hexadecimal color. The module uses an HSL-style...

Click to read more »
Module:Sandbox/isaacl/ColourSpace/Formats/sRGB24bitHex
Selasa, 2013-03-12 02:59:17

local bc = require('Module:BaseConvert') local Tuple = require('Module:Sandbox/isaacl/ColourSpace/Tuple') local me = { } me.infoFor = { sRGB24bitHex...

Click to read more »
Module:Separated entries
Senin, 2025-10-13 23:33:18

dataPlural = args.dataPlural local separator = args.separator -- Decode (convert to Unicode) HTML escape sequences, such as "&#32;" for space. and mw...

Click to read more »
Module:Sandbox/RexxS/Units
Sabtu, 2016-04-30 00:12:22

of tables -- principally intended for converting the Wikidata QID of a unit into the code used by {{convert}} -- -- It is meant to be imported with...

Click to read more »
Module:Weather box/row
Minggu, 2023-12-10 12:26:45

0 return end local convert = self.converts[units] or error('Unknown units') local outnum = invalue.number * convert.factor local precision =...

Click to read more »
Module:Weather/sandbox
Jumat, 2022-10-21 17:06:22

cannot be converted to a number.", 2) return "" end end local function convert(value, unit, decimals) -- Unit is the unit being converted from. if...

Click to read more »
Module:British regnal year
Sabtu, 2023-09-30 10:29:27

-- This module implements {{British regnal year}}. It converts a year in the Gregorian -- calendar to the equivalent English or British regnal year. local...

Click to read more »
Module:Weather box/row/sandbox
Kamis, 2023-12-07 12:26:10

0 return end local convert = self.converts[units] or error('Unknown units') local outnum = invalue.number * convert.factor local precision =...

Click to read more »
Module:NSW GNR/testcases
Selasa, 2020-02-11 04:24:49

= require('Module:UnitTests') function p:test_convert() self:preprocess_equals("{{#invoke:NSW GNR|convert|12345}}", "JPqwwpWATR") end return p...

Click to read more »
Module:Color contrast
Senin, 2025-03-31 03:30:40

it up local L = HTMLcolor[c] if (L ~= nil) then return L end -- convert from hsl if mw.ustring.match(c,'^hsl%([%s]*[0-9][0-9%.]*[%s]*,[%s]*[0-9][0-9%...

Click to read more »
Module:Jctint
Kamis, 2024-09-19 07:57:41

true} --- -- Converts the distance specified in unit from `unit` specified in `unitdef` -- to the other supported unit. local function convert(unit, unitdef)...

Click to read more »
Module:Ancient Egypt kings
Sabtu, 2023-09-30 10:28:39

-- This module implements {{Ancient Egypt kings}}. It converts a year in the Gregorian -- calendar to the equivalent year of the ancient Egyptian era organized...

Click to read more »
Module:Sandbox/Erutuon/Temperature arrays/mw.html
Jumat, 2017-09-15 09:04:48

output_format.first then converted_units = interpret_format( output_format.convert_units, add_unit_names(convert(values[1], 1), format.output_unit)...

Click to read more »
Module:Sandbox/Ralvahkaset/amlich
Kamis, 2026-04-23 18:46:43

-- Vietnamese Lunar Calendar (Âm Lịch) converter for Wikipedia -- Converts Gregorian dates to Vietnamese lunar dates -- Usage:...

Click to read more »
Module:Coordinates/sandbox2
Selasa, 2023-05-02 13:56:45

Simple function for converting decimal degree values to DMS format. {{#invoke:Coordinates | dms2dec }} : Simple function for converting DMS format to decimal...

Click to read more »
Module:Color contrast/sandbox
Senin, 2025-03-31 03:29:26

it up local L = HTMLcolor[c] if (L ~= nil) then return L end -- convert from hsl if mw.ustring.match(c,'^hsl%([%s]*[0-9][0-9%.]*[%s]*,[%s]*[0-9][0-9%...

Click to read more »
Module:Separated entries/sandbox
Senin, 2025-10-13 23:32:53

dataPlural = args.dataPlural local separator = args.separator -- Decode (convert to Unicode) HTML escape sequences, such as "&#32;" for space. and mw...

Click to read more »
Module:Template wrapper
Sabtu, 2022-10-22 04:11:46

(_alias_map) local T = mw.text.split (_alias_map, '%s*,%s*'); -- convert the comma-separated list into a table of alias pairs local mapped_aliases...

Click to read more »
Module:Sandbox/Hike395/Convinfobox
Rabu, 2024-06-19 08:22:42

getArgs = require('Module:Arguments').getArgs -- Units accepted by {{convert}} that come in groups (e.g., "5 ft 6 in") local multiple = {'mich', 'michlk'...

Click to read more »
Module:Sandbox/trappist the monk/airports convert
Selasa, 2018-07-24 05:31:48

local master = mw.loadData ("Module:Sandbox/trappist_the_monk/airports_convert/data") local _master = master._master local out = {}; local result = {};...

Click to read more »
Module:CIE to BT2020/doc
Kamis, 2026-02-26 05:56:22

Converts CIE 1931 xy chromaticity coordinates to gamma-corrected BT.2020 RGB values. The module: Assumes Y = 1 (relative luminance normalisation) Converts...

Click to read more »
Module:Roman-cd
Minggu, 2019-02-24 21:44:56

--[[ This module converts Arabic numerals into Roman numerals. It currently works for any non-negative integer below 5 billions (up to 4 999 999 999)....

Click to read more »
Module:Object weight/sandbox
Jumat, 2025-10-03 16:35:03

tracking_category = '[[Category:Pages where weight is being automatically converted]]' end local function clean_weight(s) s = mw.ustring.gsub(s, 'grams'...

Click to read more »
Module:Sandbox/Erutuon/Climate
Rabu, 2024-04-17 18:48:21

convert(values, to, from) if to == from then return values elseif convert_functions[to] and convert_functions[to][from] then return map(convert...

Click to read more »
Module:Weather/stableSandbox
Kamis, 2016-10-06 07:51:52

cannot be converted to a number.", 2) return "" end end local function convert(value, decimals, unit) -- Unit is the unit being converted from. It...

Click to read more »
Module:Ancient Olympiads
Sabtu, 2023-09-30 10:27:27

inputYear ) -- Convert the input to an integer if possible. Return "N/A" if the input could -- not be converted, or if the converted input is too big...

Click to read more »
Module:Armenian
Sabtu, 2023-09-30 10:29:09

-- This module implements {{Armenian}}. It converts numbers to old Armenian -- numerals, for numbers from 1-29999. local p = {} function p.main( frame...

Click to read more »
Module:Sandbox/RexxS/Unitsdemo
Jumat, 2016-04-29 23:52:09

Wikidata unit entry -- and returns the code for that unit which [[Template:Convert]] can accept -- can also return the name of the unit, if required local...

Click to read more »
Module:Object weight
Jumat, 2025-10-03 16:28:54

'%s*[–%-]%s*', '') return tonumber(s) end return nil end local function get_convert_weight_args(s) local prefer_g = (prefer or '') == 'g' local force_g =...

Click to read more »
Module:Archives/bots
Senin, 2025-11-17 02:01:03

local p = {} -- reproduced from Module:Convert local scale = { second = 1, seconds = 1, minute = 60, minutes = 60, hour = 3600, hours = 3600, ...

Click to read more »
Module:CharToHexCodepoint
Jumat, 2023-11-24 20:41:14

ustring.codepoint(args[1]) local BaseConvert = require('Module:BaseConvert') local codepointhex = BaseConvert.convert({n = codepoint, base = 16}) return...

Click to read more »
Module:Ancient Egypt era
Sabtu, 2023-09-30 10:28:13

inputYear ) -- Convert the input to an integer if possible. Return "N/A" if the input could -- not be converted, or if the converted input is too big...

Click to read more »
Module:Pinyin/doc
Sabtu, 2019-11-02 03:35:47

This module converts Hanyu Pinyin input from the "lazy" numbers form (eg. Han4yu3 pin1yin1) to the proper form with tones marked on the correct vowels...

Click to read more »
Module:DemoTemplate/doc
Jumat, 2024-08-30 04:07:52

template. For example, {{#invoke:DemoTemplate|Convert|10|km|nmi|abbr=off}} yields the following: {{Convert|10|km|nmi|abbr=off}} → 10 kilometres (5.4 nautical...

Click to read more »
Module:Sandbox/RexxS/Watchlist
Kamis, 2020-02-27 06:38:33

--[[ Convert watchlist Module:Sandbox/RexxS/Watchlist --]] local p = {} function p.convert(frame) args = frame.args if not args then args = frame:getParent()...

Click to read more »
Module:Sandbox/Greenbreen/PPP
Jumat, 2026-05-01 03:07:42

year = tonumber(year) or 2016 return c[year] end function p.convert(value, country, year) value = tonumber(value) if not value or not...

Click to read more »
Module:Person height
Rabu, 2025-12-10 18:10:59

= mw.ustring.gsub(s, '★', '&nbsp;') return s end local function get_convert_args(s, prefer, enforce, ri) local prefer_m = (prefer or '') == 'm' local...

Click to read more »
Module:Sandbox/Polygnotus2
Minggu, 2025-03-30 09:18:33

cleanISBN:sub(13, 13) end end -- Convert between ISBN-10 and ISBN-13 (when possible) function p.convert(frame) local isbn = frame.args[1] or...

Click to read more »
Module:HexShade/sandbox
Senin, 2023-04-17 07:19:06

require('Module:BaseConvert') local s1 = baseconvert.convert({n = math.floor(r+0.5), base = 16}) local s2 = baseconvert.convert({n = math.floor(g+0...

Click to read more »
Module:Sandbox/Ralvahkaset/utils
Rabu, 2026-03-18 03:36:35

function Utils.mod(a, b) return a - Utils.floor(a / b) * b end -- Convert a number to Khmer numerals function Utils.toKhmerNumber(num) local...

Click to read more »
Module:Jctint/sandbox
Minggu, 2025-12-14 20:28:01

true} --- -- Converts the distance specified in unit from `unit` specified in `unitdef` -- to the other supported unit. local function convert(unit, unitdef)...

Click to read more »
Module:Sandbox/Ahecht/bartable
Rabu, 2025-07-30 23:45:23

args[2] else local convert = require('Module:Convert') local frame = frame:newChild{ title = 'Template:Convert', args = {titleparts[2]...

Click to read more »
Module:String2/doc
Kamis, 2026-02-05 22:33:45

novel functionality. The module contains three case-related calls that convert strings to first letter uppercase, sentence case or title case and two...

Click to read more »
Module:Diff days
Sabtu, 2022-10-22 04:35:01

date/time strings <t1>, and <t2>, in days to <precision> decimal places. Converts each date/time string to a unix timestamp (seconds), subtracts <t1> from...

Click to read more »
Module:Ancient Olympiads/doc
Jumat, 2024-08-30 03:13:55

This module is used by Module:Year in various calendars to convert a year in the Julian calendar to the equivalent year of the ancient Greek era organized...

Click to read more »
Module:Sandbox/TiiJ7/StringBuilder
Rabu, 2013-09-11 20:06:31

{} StringBuilder.__index = StringBuilder local StringBuilderModes = { convert = true, ignore = true, error = true } -- Creates a new string builder...

Click to read more »
Module:Strip to numbers/doc
Selasa, 2024-05-21 06:33:16

on arithmetically. Results for each string, respectively: 70 20 75.485 Converting layout table cell dimensions given in em, px, or % to the bare-number...

Click to read more »
Module:Sandbox/Chlod/Storm units
Jumat, 2023-05-12 20:34:01

local ConvertData = require("Module:Convert/data") local unitsDefault = { distance = "km", speed = "kn" -- knots } local unitsOut = { atl = { distance...

Click to read more »
Module:Sandbox/isaacl/ColourSpace/doc
Kamis, 2013-03-07 12:15:43

This module implements the template {{User:Isaacl/Colour convert}}. Module name: Module:Sandbox/isaacl/ColourSpace...

Click to read more »
Module:Sandbox/Squc/Roman/doc
Rabu, 2014-06-18 00:47:42

This module converts Roman numerals to decimal form, and rejects invalid ones. It can be used normally, or through another module. This is still under...

Click to read more »
Module:Module:LuminanceChroma to sRGB
Senin, 2026-03-02 15:37:57

-- Module:LuminanceChroma to sRGB -- Converts: -- Luminance (%) -- Chroma angle (degrees) -- Chroma (%) -- to sRGB hex -- Preserves luminance --...

Click to read more »
Module:Infobox dim/doc
Sabtu, 2026-01-24 18:21:24

Code to convert information about physical size of objects into parameters for geohack or mapframes. The following parameters describe the physical object...

Click to read more »
Module:Stock tickers/NYSE/sandbox
Sabtu, 2018-01-06 05:40:27

. ticker return url end function p.FormatTickerURL(ticker) -- Convert to upper case ticker = string.upper(ticker) -- NYSE.com formats for...

Click to read more »
Module:Hepburner
Senin, 2024-06-17 11:57:18

require('strict'); local utf8 = require("Module:Unicode data") -- Converts romanji kana to modified hepburn, I recommend subst:ing -- standard long vowel...

Click to read more »
Module:Sorted plain list/doc
Kamis, 2022-12-08 06:03:57

|propertyID= parameter, which will override any explicitly specified values. To convert a comma separated list to a sorted plainlist, use {{#invoke:sorted plain...

Click to read more »
Module:Object size
Sabtu, 2026-01-31 01:00:25

return '', original_string end function convert_length(frame, args) local targs, str = get_convert_length_args(args[1], args['prefer'] or '', args['enforce']...

Click to read more »
Module:YMD to ISO/doc
Senin, 2017-01-02 21:22:12

Module:YMD to ISO converts a date in YMD format (e.g. 2000 January 17) to ISO 8601 format (e.g. 2000-01-17). Any input which is not a valid DMY date is...

Click to read more »
Module:Format ISBN
Senin, 2025-09-29 01:00:37

sequence <index_t>. accepts one input <target_isbn> (a string) which it converts to a number returns index into <hyphen_pos_t> as a number when proper...

Click to read more »
Module:Format ISBN/sandbox
Sabtu, 2023-04-29 06:17:16

sequence <index_t>. accepts one input <target_isbn> (a string) which it converts to a number returns index into <hyphen_pos_t> as a number when proper...

Click to read more »
Module:Infobox road
Jumat, 2024-08-16 06:52:36

local arabicModule = require( "Module:Convert to eastern arabic numerals" ) local arabic = arabicModule._convert({route}) local translated = string...

Click to read more »
Module:Sandbox/trappist the monk/bearing
Senin, 2022-10-24 04:01:45

inputs in decimal degrees (degrees minutes seconds coordinates must be pre-converted) <from_lat> – latitude (north +, south -) of the starting point <from_long>...

Click to read more »
Module:Sandbox/DarmaniLink
Minggu, 2024-03-10 14:06:03

require('strict'); local utf8 = require("Module:Unicode data") -- Converts romanji kana to modified hepburn, I recommend subst:ing -- standard long vowel...

Click to read more »
Module:Currency
Sabtu, 2026-04-18 11:04:04

Converts quantified number/string combinations to a number e.g. 1 thousand to 1000. ]] local function convert_string_to_numeric (amount)...

Click to read more »
Module:ISO 639 name/ISO 639 name to code/make
Jumat, 2024-07-12 01:56:19

local function lang_add (lang, code, part) part = ({ -- convert string <part> to a numeric index ['1']=1, ['2']=2, ['2B']=3, ['3']=4...

Click to read more »
Module:Armenian/sandbox
Selasa, 2016-04-26 05:05:27

-- This module implements {{Armenian}}. It converts numbers to old Armenian -- numerals, for numbers from 1-29999. local p = {} function p.main( frame...

Click to read more »
Module:Pop density/sandbox
Minggu, 2014-01-05 02:10:17

(unit1) then str1 = '/' .. unitstr[unit1] if(unit2) then -- convert local mult = unitmult[unit2]/unitmult[unit1] prec2 = prec1 - math...

Click to read more »
Module:LuminanceChroma to sRGB
Senin, 2026-03-02 16:00:00

-- Module:LuminanceChroma to sRGB -- Converts: -- Luminance (%) -- Chroma angle (degrees) -- Chroma (% or signed custom range) -- to sRGB hex --...

Click to read more »
Module:Person height/sandbox
Jumat, 2025-12-05 13:01:04

= mw.ustring.gsub(s, '★', '&nbsp;') return s end local function get_convert_args(s, prefer, enforce, ri) local prefer_m = (prefer or '') == 'm' local...

Click to read more »
Module:Bar
Senin, 2025-08-11 23:01:06

or '', abbr= 'on' } local convert = require('Module:Convert')._convert output(convert({}, cvtArgs)) end else -- If unit is...

Click to read more »
Module:Citation/CS1/Date validation
Minggu, 2026-01-18 02:25:14

= pcall (lang_object.formatDate, lang_object, 'U', accessdate ); -- convert accessdate value to Unix timestamp good2, tomorrow_ts = pcall (lang_object...

Click to read more »
Module:Clade/converter
Minggu, 2022-10-23 11:16:44

============================= Function p.newickConverter() convert Newick strings to clade format Usage: {{#invoke:Module:Sandbox/Jts18...

Click to read more »
Module:Sandbox/Favonide
Jumat, 2025-03-28 21:50:27

Simple function for converting decimal degree values to DMS format. {{#invoke:Coordinates | dms2dec }} : Simple function for converting DMS format to decimal...

Click to read more »
Module:Sandbox/Ahecht/coords
Jumat, 2025-09-05 00:59:56

'(%s*[NE])$', '') end -- attempt to convert text to number coords[k] = tonumber(v) -- attempt to convert dms to decimal if not coords[k] and string...

Click to read more »
Module:Ancient Olympiads/sandbox
Rabu, 2019-11-13 07:01:53

inputYear ) -- Convert the input to an integer if possible. Return "N/A" if the input could -- not be converted, or if the converted input is too big...

Click to read more »
Module:Sandbox/Vestrian24Bio/JSON table
Sabtu, 2024-07-20 23:01:40

local cjson = require "cjson" -- Function to convert JSON table to HTML table local function jsonToHtmlTable(jsonStr) local jsonTable = cjson.decode(jsonStr)...

Click to read more »
Module:Infobox dim
Minggu, 2025-11-16 01:59:08

mm / pixel from https://wiki.openstreetmap.org/wiki/Zoom_levels -- To convert to OSM zoom level, we need to know meters per pixel at zoom level 9 --...

Click to read more »
Module:Sandbox/40bus/Climate
Selasa, 2025-08-05 01:02:12

convert(values, to, from) if to == from then return values elseif convert_functions[to] and convert_functions[to][from] then return map(convert...

Click to read more »
Module:Infobox road/sandbox
Rabu, 2024-09-04 21:31:36

local arabicModule = require( "Module:Convert to eastern arabic numerals" ) local arabic = arabicModule._convert({route}) local translated = string...

Click to read more »
Module:Sandbox/trappist the monk/diff time
Senin, 2022-10-24 04:02:14

date/time strings <t1>, and <t2>, in days to <precision> decimal places. Converts each date/time string to a unix timestamp (seconds), subtracts <t1> from...

Click to read more »
Module:Infobox dim/sandbox
Minggu, 2025-11-16 01:56:27

mm / pixel from https://wiki.openstreetmap.org/wiki/Zoom_levels -- To convert to OSM zoom level, we need to know meters per pixel at zoom level 9 --...

Click to read more »
Module:Template wrapper/sandbox
Jumat, 2022-10-21 16:56:15

(_alias_map) local T = mw.text.split (_alias_map, '%s*,%s*'); -- convert the comma-separated list into a table of alias pairs local mapped_aliases...

Click to read more »
Module:Archives/bots/sandbox
Sabtu, 2025-12-06 14:30:02

local p = {} -- reproduced from Module:Convert local scale = { second = 1, seconds = 1, minute = 60, minutes = 60, hour = 3600, hours = 3600, ...

Click to read more »
Module:Stock tickers/NYSE
Sabtu, 2019-03-02 11:19:02

. ticker return url end function p.FormatTickerURL(ticker) -- Convert to upper case ticker = string.upper(ticker) -- NYSE.com formats for...

Click to read more »
Module:Charmap
Selasa, 2021-12-14 03:45:26

local p = {} local unicode_convert = require('Module:Unicode convert') local numcr2namecr = mw.loadData('Module:Numcr2namecr') local yesno = require('Module:Yesno')...

Click to read more »
Module:Transliterate Korean
Kamis, 2024-08-01 03:57:55

of a character local tocodepoint = mw.ustring.codepoint -- Function to convert the index of a Hangul syllable into jamo indices local function...

Click to read more »
Module:Sandbox/Szqecs/New Taiwan dollar
Minggu, 2018-03-11 19:30:10

== false then year = '' else year = ' in ' .. year end if args.convert == true then conversion = table.concat({' (US$', MinC, MaxC, magC, today...

Click to read more »
Module:Sandbox/Johnuniq/unit
Rabu, 2016-05-11 10:46:31

-- Test the helper function in Module:Convert to get unit information. -- Usage: {{#invoke:sandbox/Johnuniq/unit|main}} -- See [[Module talk:Sandbox/Johnuniq/unit]]...

Click to read more »
Module:Georgian to IPA
Selasa, 2023-09-19 14:13:37

["ჭ"] = "tʃʼ", ["ხ"] = "χ", ["ჯ"] = "dʒ", ["ჰ"] = "h" } function export.convert(text) if type(text) == "table" then text = text.args[1] end return...

Click to read more »
Module:Citation/CS1/Date validation/sandbox
Minggu, 2026-03-29 21:38:23

access_ts = pcall (lang_obj.formatDate, lang_obj, 'U', accessdate ); -- convert accessdate value to Unix timestamp good2, tomorrow_ts = pcall (lang_obj...

Click to read more »
Module:Sandbox/User:Waddie96
Minggu, 2025-10-05 11:15:48

["false"] = false, ["f"] = false, ["off"] = false, ["0"] = false } -- Converts numeric strings or numbers to boolean local function num(s) local n...

Click to read more »
Module:In5
Jumat, 2019-01-25 04:24:24

in5(frame) local indent = frame.args[1] -- Trim whitespace and convert to number. Default to 5 if not present, -- as per the template title...

Click to read more »
Module:Math/doc
Senin, 2026-04-06 23:54:17

Returns the maximum value from the values specified. Values that cannot be converted to numbers are ignored. {{#invoke:math|median|v1|v2|v3|...}} mm._median(v1...

Click to read more »
Module:List
Senin, 2026-03-02 12:52:06

type = args['type'] -- Detect invalid type attributes and attempt to convert them to -- list-style-type CSS properties. if data.type and not...

Click to read more »
Module:Sandbox/Jbzdarkid/NecroTable
Minggu, 2023-02-19 09:28:39

color) or '')-- Convert color into a style attribute local contents = image and ('[[File:' .. image .. '|24x24px]]') or text -- Convert image into a wiki...

Click to read more »
Module:Greek numeral
Sabtu, 2022-02-05 21:34:18

-- Convert standard numbers to greek numerals, and vice versa -- Gts-tg@el wiki, Aug. 2017 local p = {} local greek_numerals = { ["α"] = 1, --...

Click to read more »
Module:Climate chart/sandbox 1
Rabu, 2024-04-24 02:38:12

local function convert_inplace(t, convert_temperature, convert_precipitation) for _, month in ipairs(t) do month.minimum = convert_temperature(month...

Click to read more »
Module:Complex date
Sabtu, 2020-05-16 02:21:05

'' elseif operation == 'julian' then if not date2 and date1 then -- Convert from Julian to Gregorian calendar date if Calendar == nil then Calendar...

Click to read more »
Module:List/sandbox
Senin, 2026-03-02 12:57:07

type = args['type'] -- Detect invalid type attributes and attempt to convert them to -- list-style-type CSS properties. if data.type and not...

Click to read more »
Module:Charmap/sandbox
Selasa, 2021-12-14 03:42:33

local p = {} local unicode_convert = require('Module:Unicode convert') local numcr2namecr = mw.loadData('Module:Numcr2namecr') local yesno = require('Module:Yesno')...

Click to read more »
Module:Sandbox/Andy M. Wang/Sandbox/testcases
Minggu, 2016-04-24 08:53:12

suite:getInvokeResult(funcName, args, convertNumber) -- Unless convertNumber is false, the number is converted to a number, if possible, on re-entry to...

Click to read more »
Module:LightDarkColor
Senin, 2025-06-23 01:14:22

require("Module:Arguments").getArgs --- Converts hex to dec -- @function hex2dec -- @param {string} hex hex to convert -- @return Decimal value local...

Click to read more »
Module:Chessboard
Rabu, 2026-05-27 08:20:26

{ src = 'Module:Chessboard/styles.css' } ) end function convertFenToArgs( fen ) -- converts FEN notation to 64 entry array of positions, offset by 2...

Click to read more »
Module:Bar/sandbox
Jumat, 2025-08-01 21:53:51

'', abbr= 'on' } local convert = require('Module:Convert/sandbox')._convert output(convert({}, cvtArgs)) end else -- If unit...

Click to read more »
Module:IsAdmin
Sabtu, 2025-05-24 05:50:58

title:getContent() if not jsonText or jsonText == '' then return {} end -- Convert JSON → Lua table local ok, data = pcall(mw.text.jsonDecode, jsonText)...

Click to read more »
Module:String2
Rabu, 2025-02-19 19:24:59

a string, passed as either the first unnamed parameter or |txt= -- it converts each number it finds into a percentage and returns the resultant string...

Click to read more »
Module:Adjacent stations/Metro Trains Melbourne
Jumat, 2026-06-05 15:42:09

padding-top: calc(0.45em + 7px); white-space: nowrap; margin: 0.25em;" end -- Convert style2 input to draw top bar local function styleFromNames(styleText) ...

Click to read more »
Module:Climate chart
Sabtu, 2024-12-21 06:23:59

local function convert_inplace(t, convert_temperature, convert_precipitation) for _, month in ipairs(t) do month.minimum = convert_temperature(month...

Click to read more »
Module:Template test case/testcases
Selasa, 2026-02-03 20:55:48

|_format=inline |_showcode=yes |_template1=Height |m=1.51 |_addline=Output of Convert template: {{Cvt|1.51|m|frac=2}} }}', '{{#invoke:Template test case...

Click to read more »
Module:Interval
Kamis, 2018-11-29 08:11:27

lowpos, highpos = nil, nil, 0, #numbers + 1 -- If comparing times, convert them all to seconds after the epoch if format == 'time' then ...

Click to read more »
Module:Yesno/doc
Senin, 2025-09-29 16:46:33

A nil value always returns nil: yesno(nil) yesno() String values are converted to lower case before they are matched: -- These always return true: yesno('Yes')...

Click to read more »
Module:Shindo/doc
Rabu, 2024-11-20 05:43:50

whether the parameter "format" is "wikitable". {{#invoke:Shindo|convert}} will convert a given peak ground acceleration into a seismic intensity....

Click to read more »
Module:Time ago
Rabu, 2021-02-03 01:35:13

require('Module:Yesno') return yesno(arg) end local p = {} -- Table to convert entered text values to numeric values. local timeText = { ['seconds']...

Click to read more »
Module:Excerpt/portals
Rabu, 2026-05-13 00:55:29

end return nil end -- Helper function to convert imagemaps into standard images local function convertImageMap(imagemap) local image = matchAny(imagemap...

Click to read more »
Module:Roman/testcases
Rabu, 2018-02-21 05:05:06

suite:getInvokeResult(funcName, args, convertNumber) -- Unless convertNumber is false, the number is converted to a number, if possible, on re-entry to...

Click to read more »
Module:Math/testcases
Jumat, 2026-01-30 20:57:23

suite:getInvokeResult(funcName, args, convertNumber) -- Unless convertNumber is false, the number is converted to a number, if possible, on re-entry to...

Click to read more »
Module:Graph/doc
Rabu, 2025-12-10 00:26:18

the graph, used by User:GraphBot when converting. name: The name of the graph, required by User:GraphBot to convert the graph. Creates a JSON object for...

Click to read more »
Module:Check height
Kamis, 2025-12-25 00:01:09

regular and converted heights local function extractHeights(str) if not str then return nil, nil, false end local regular, converted = str:match('^(...

Click to read more »
Module:Citation/CS1/Identifiers
Senin, 2026-01-19 22:36:14

rxiv_ts = pcall (lang_object.formatDate, lang_object, 'U', rxiv_date); -- convert rxiv_date value to Unix timestamp good2, tomorrow_ts = pcall (lang_object...

Click to read more »
Module:Ko-translit/sandbox
Sabtu, 2026-05-02 06:16:36

[ᅡ-ᅵ] because MediaWiki uses Unicode Normalization Form C (NFC), which converts any sequence of [ᄀ-ᄒ][ᅡ-ᅵ] into a precomposed character. Use square brackets...

Click to read more »
Module:Time
Kamis, 2025-11-27 22:12:59

start string and convert to digits else ord, weekday_num, month = decode_dst_event (tz.dst_ends); -- get end string and convert to digits end ...

Click to read more »
Module:Sandbox/TiiJ7/StringBuilder/doc
Minggu, 2019-10-20 18:01:51

happen if the user tries to append a non-string and non-number: convert (default) - Converts the argument to a string by calling tostring() on it. ignore...

Click to read more »
Module:Currency/sandbox
Senin, 2024-05-20 00:17:36

Converts quantified number/string combinations to a number e.g. 1 thousand to 1000. ]] local function convert_string_to_numeric (amount)...

Click to read more »
Module:Box-header
Senin, 2025-06-02 12:08:25

hexToDecimal(R_hex), hexToDecimal(G_hex), hexToDecimal(B_hex) end -- per [[HSL and HSV#Converting_to_RGB]] local function HSVtoRGB(H, S, V) local C = V * S local H_prime...

Click to read more »
Module:Clade/doc
Jumat, 2024-08-30 03:44:16

code for template {{clade newick converter}}, which is a basic utility to convert Newick strings into nested clade structures. This is not to be used in...

Click to read more »
Module:Adjacent stations/Mumbai Metro
Sabtu, 2026-01-17 23:16:07

background-repeat:no-repeat; padding-bottom:calc(0.3em + "..total.."px);" end -- Convert input text to stacked bottom bars local function styleFromNames(styleText)...

Click to read more »
Module:Adjacent stations/MTR
Sabtu, 2026-05-09 14:10:55

background-repeat:no-repeat; padding-bottom:calc(0.3em + "..total.."px);" end -- Convert input text to stacked bottom bars local function styleFromNames(styleText)...

Click to read more »
Module:Spellnum per MOS/sandbox
Jumat, 2021-06-11 06:20:07

by other scripts. Takes arguments: -- - 1: string or number, value to convert -- - forcenum: string for Template:Yesno, forces a result in digits for...

Click to read more »
Module:CS1 identifiers
Minggu, 2025-08-03 21:15:05

>---------------------------------------- converts cs1|2 error message to a message suitable for this module. converted error messages do not name a parameter...

Click to read more »
Module:YPbPr to sRGB
Minggu, 2026-02-22 00:03:29

-- Module:YPbPr to sRGB -- Converts YPbPr to sRGB hex -- Preserves luminance -- Supports: -- • normal normalized range -- • unit chroma (-1 to 1) --...

Click to read more »
Module:Sandbox/Greenbreen/Minimum wage/USD
Selasa, 2026-05-12 06:34:01

function trim(s) return s and s:match("^%s*(.-)%s*$") end function p.convert(frame) local args = frame.args if not args[1] then args...

Click to read more »
Module:Lang/langx
Sabtu, 2024-11-16 02:17:00

being deleted; convert to something like {{lang-sr-latn-cyrl}}? ['est-sea'] = true, -- {{Language with name}} wrapper; convert to private use...

Click to read more »
Module:Citation/CS1/Identifiers/sandbox
Kamis, 2026-06-04 20:26:17

rxiv_ts = pcall (lang_object.formatDate, lang_object, 'U', rxiv_date); -- convert rxiv_date value to Unix timestamp good2, tomorrow_ts = pcall (lang_object...

Click to read more »
Module:Diacritics/doc
Jumat, 2024-08-30 04:08:07

convertChar returns the non-diacritic version of the supplied character. stripDiacrits replaces words containing diacritical characters with their non-diacritic...

Click to read more »
Module:Time ago/sandbox
Jumat, 2022-02-04 09:27:52

require('Module:Yesno') return yesno(arg) end local p = {} -- Table to convert entered text values to numeric values. local timeText = { ['seconds']...

Click to read more »
Module:Time/sandbox
Senin, 2025-05-05 00:40:57

start string and convert to digits else ord, weekday_num, month = decode_dst_event (tz.dst_ends); -- get end string and convert to digits end ...

Click to read more »
Module:Sandbox/Johnuniq/debug
Senin, 2019-04-22 10:44:38

94321,name='hello','{{convert|12|kg}}'}}) f3 = mw.getCurrentFrame():newChild({title='MyTitle', args={120,94321,name='hello','{{convert|12|kg}}'}}) =mw.logObject(f2...

Click to read more »
Module:Sister project logo/sandbox
Kamis, 2026-04-02 09:40:51

metadata local data = mw.loadData('Module:Sister project logo/data') -- Convert table of arguments into wiki image markup local function imageMarkup(args)...

Click to read more »
Module:Sister project logo
Senin, 2026-05-11 17:07:57

metadata local data = mw.loadData('Module:Sister project logo/data') -- Convert table of arguments into wiki image markup local function imageMarkup(args)...

Click to read more »
Module:Transclusion count/data/C
Minggu, 2026-05-31 12:12:32

["Module:Convert"] = 1500000, ["Module:Convert/data"] = 1500000, ["Module:Convert/helper"] = 12000, ["Module:Convert/text"] = 1500000, ["Module:Convert/wikidata"]...

Click to read more »
Module:Plain text
Selasa, 2024-12-24 08:02:36

--converts text with wikilinks to plain text, e.g "[[foo|gah]] is [[bar]]" to "gah is bar" --removes anything enclosed in tags that isn't nested, mediawiki...

Click to read more »
Module:Shindo/sandbox
Rabu, 2026-02-25 08:09:31

return out end -- uses binary search to convert a peak ground acceleration to a seismic intensity function convert(pga, ranks, ranksSorted, left, right)...

Click to read more »
Module:Sandbox/Wnt/WikiLink/doc
Minggu, 2023-11-19 19:34:55

{{#invoke:WikiLink|function|parameters}}. The functions that can be invoked are: dewiki: converts [[Link]] to Link, [[Link|Text]] to Text. keepfile: Use before dewiki (i...

Click to read more »
Module:String
Selasa, 2025-08-12 06:48:56

tonumber( new_args['j'] ) or -1 local len = mw.ustring.len( s ) -- Convert negatives for range checking if i < 0 then i = len + i + 1 end if...

Click to read more »
Module:Example/sandbox
Senin, 2025-02-24 12:31:25

--------------------------------- function p.count_fruit(frame) -- Convert the named parameters to numbers; default to 0 if conversion fails. ...

Click to read more »
Module:Wikidata table
Kamis, 2026-02-12 20:56:00

if amount and unitsymbol[unit] then if colunit then -- attempt to convert to default unit local unit_label = mw.wikibase.label(unit) or unitsymbol[unit]...

Click to read more »
Module:Domino Unicode/doc
Selasa, 2025-09-16 13:26:49

of Domino tiles. Note: This module only outputs the HEX codepoint. To convert it to the Unicode character in HTML, write &#x<some_codepoint>;. For example:...

Click to read more »
Module:Adjacent stations/convert
Kamis, 2019-03-07 11:36:30

local p = {} function p.adjacent(frame) local args = frame.args local code = mw.text.split(mw.ustring.gsub(args[1], '^%s*{{(.*)}}%s*$', '%1'), '%s*}}%s*{{%s*')...

Click to read more »
Module:Object weight/testcases
Jumat, 2025-10-03 16:43:29

com}}</ref>'} }, {nowiki = 1}) end function p:test_weight_should_not_convert() self:preprocess_equals_preprocess_many('{{#invoke:object weight/sandbox|weight|'...

Click to read more »
Module:Sandbox/DreamRimmer
Selasa, 2025-09-02 20:51:46

local p = {} -- Convert a timestamp string like 20250826113511 to os.time table local function parseTimestamp(ts) local year = tonumber(ts:sub(1...

Click to read more »
Module:Set
Sabtu, 2021-01-23 16:48:08

-- contain different values for the same table key, the table value is converted -- to an array holding all of the different values....

Click to read more »
Module:Sandbox/Vestrian24Bio/JSON table 2
Minggu, 2024-07-21 01:45:19

>---------------------------------------------------------------------- Function to convert JSON table to HTML table ]] local function main (frame) local jsonTable...

Click to read more »
Module:Shindo
Senin, 2025-06-23 07:12:53

return out end -- uses binary search to convert a peak ground acceleration to a seismic intensity function convert(pga, ranks, ranksSorted, left, right)...

Click to read more »
Module:Sandbox/Daimona Eaytoy/FontToSpan
Kamis, 2018-01-25 20:28:17

style impacchettato return string.gsub(d, ";+$", "") end local function convert(a,type) if type=="size" then --riporto valori fantasiosi di size a quelli...

Click to read more »
Module:Formatnum
Sabtu, 2021-02-20 22:49:21

~= nil and mw.language.isKnownLanguageTag(lang) == true then -- Convert number to localized digits, decimal separator, and group separators ...

Click to read more »
Module:Chessboard mxn
Rabu, 2026-05-27 11:25:15

caption .. '</div></div>' end end function convertFenToArgs( fen ) -- converts FEN notation to an array of positions, offset by 2 ...

Click to read more »
Module:Stock tickers/NYSE/sandbox/testcases
Rabu, 2021-09-29 22:52:45

. ticker return url end function p.FormatTickerURL(ticker) -- Convert to upper case ticker = string.upper(ticker) -- NYSE.com formats for...

Click to read more »
Module:Lua banner
Jumat, 2024-04-05 09:45:24

'Templates based on the Math Lua module', ['Module:BaseConvert'] = 'Templates based on the BaseConvert Lua module', ['Module:Citation/CS1'] = 'Templates...

Click to read more »
Module:Ordnance Survey coordinates
Senin, 2026-06-01 06:48:41

local b2 = param.semiminor_dst local e2 = param.ecc_dst -- convert latitude and longitude to cartesian coordinates -- math in Annex B...

Click to read more »
Module:Citation/CS1
Sabtu, 2026-02-28 22:14:46

mask then local n = tonumber (mask); -- convert to a number if it can be converted; nil else if n then one = 0 ~= n and string.rep("&mdash;"...

Click to read more »
Module:NewDYKnomination
Senin, 2024-10-21 15:14:24

'Moved to mainspace' -- Converted from a redirect elseif status == 'convert' or status == 'converted' or status ==...

Click to read more »
Module:Duration
Senin, 2020-05-11 21:05:19

for k, v in ipairs(duration) do duration[k] = tonumber(v) or 0 end -- convert values to numbers end if duration[3] then if (duration[1] + duration[2]...

Click to read more »
Module:Ko-translit
Rabu, 2025-11-26 04:57:46

[ᅡ-ᅵ] because MediaWiki uses Unicode Normalization Form C (NFC), which converts any sequence of [ᄀ-ᄒ][ᅡ-ᅵ] into a precomposed character; write ᄀ[ᅡ] or...

Click to read more »
Module:Adjacent stations/convert/doc
Minggu, 2022-02-20 14:33:46

...

Click to read more »
Module:Average change
Sabtu, 2024-07-27 19:25:12

args[3], args[4], args[5], args[6] } -- Filter out nil values and convert to numbers local values = {} for _, v in ipairs(params) do ...

Click to read more »
Module:Clade
Kamis, 2024-03-28 23:33:49

while s[i] do local restoredString = string.gsub(s[i],"XXX", ",") -- convert back to commas --restoredString = s[i] local outerTerm = string.gsub(restoredString...

Click to read more »
Module:Ordinal
Senin, 2019-03-18 02:44:32

require('Module:Yesno') -- boolean value interpretation --[[ This function converts an integer value into a numeral followed by ordinal indicator. The output...

Click to read more »
Module:Sandbox/Skratata69
Jumat, 2024-04-26 14:37:00

local final_value = tonumber(frame.args[4]) -- Final value -- Convert dates to timestamps local start_timestamp = os.time{year=tonumber(start_date:sub(1...

Click to read more »
Module:Ancient Greek/typing
Kamis, 2020-01-09 04:14:10

from turning into final sigma -- pipe ["!"] = "|", } local function convert_s_to_sigma(text) text = string.gsub(text, "s(" .. one_UTF8_char_or_none...

Click to read more »
Module:String/sandbox
Selasa, 2025-08-12 06:46:44

tonumber( new_args['j'] ) or -1 local len = mw.ustring.len( s ) -- Convert negatives for range checking if i < 0 then i = len + i + 1 end if...

Click to read more »
Module:Sandbox/Gonnym/date
Rabu, 2025-02-26 23:56:19

"005", etc., but allows "01", "05", "09", etc. -- The function works by converting the value to a string and checking if it starts -- with one or more zeros...

Click to read more »
Module:SortName
Selasa, 2013-04-16 04:58:27

-- the following table and roman_to_numeral function came from Module:ConvertNumeric, created by User:Dcoetzee roman_numerals = { I = 1, V =...

Click to read more »
Module:Easter
Sabtu, 2025-05-31 01:00:39

original calculation, with the Julian date converted to the equivalent Gregorian calendar ...

Click to read more »
Module:Sandbox/Matroc/ASCII code
Senin, 2013-07-01 15:01:30

= "0" end num = tonumber(num) -- convert string to be a number if num == nil then num = 32 end ...

Click to read more »
Module:Webarchive
Selasa, 2026-02-24 05:19:36

through table table.insert (out, make_wikilink (key)); -- and convert category names to links end end return table.concat (out); ...

Click to read more »
Module:Sandbox/Masoud.h1368/Wikidata.Ca
Selasa, 2021-03-23 18:25:35

"/Units") if exist and units.convert_default and next(units.convert_default) ~= nil then convert_to = units.convert_default[unit_id] end elseif...

Click to read more »
Module:Check bibcode
Sabtu, 2022-10-22 04:03:05

number and add one for next year year = tonumber (year); -- convert year portion of bibcode to a number if (1000 > year) or (year > next_year)...

Click to read more »
Module:Svara
Kamis, 2025-10-16 21:50:42

local svaraResolve = mw.loadData('Module:Svara/resolve') -- Convert shorthand notation into standard notation. function p.resolve(input, type)...

Click to read more »
Module:Ancient Greek/typing/doc
Jumat, 2024-08-30 03:13:44

This module allows easy typing of Greek. It converts a variation of Beta Code to Ancient Greek. Diacritics can be entered in any order and they will be...

Click to read more »
Module:Ordnance Survey coordinates/sandbox
Jumat, 2026-06-05 20:48:06

local b2 = param.semiminor_dst local e2 = param.ecc_dst -- convert latitude and longitude to cartesian coordinates -- math in Annex B...

Click to read more »
Module:Adjacent stations/doc
Selasa, 2025-06-03 23:16:39

for documentation on how to use those templates. (Instructions for the convert function of this module are in the {{Adjacent stations}} documentation...

Click to read more »
Module:Urltowiki/doc
Jumat, 2019-11-08 12:05:32

This module converts URLs from Wikimedia projects into interwiki links. Please see the corresponding template {{urltowiki}} for documentation....

Click to read more »
Module:Clade/sandbox
Jumat, 2026-01-16 16:14:49

while s[i] do local restoredString = string.gsub(s[i],"XXX", ",") -- convert back to commas --restoredString = s[i] local outerTerm = string.gsub(restoredString...

Click to read more »
Module:Sandbox/Greenbreen/MinimumWage
Selasa, 2026-05-05 06:38:00

return "Error: unknown frequency" end local result = PPP.convert(annual, country, a.year) if not result then return "Error:...

Click to read more »
Module:Ko-translit/data
Selasa, 2025-12-02 05:45:31

[ᅡ-ᅵ] because MediaWiki uses Unicode Normalization Form C (NFC), which converts any sequence of [ᄀ-ᄒ][ᅡ-ᅵ] into a precomposed character; write ᄀ[ᅡ] or...

Click to read more »
Module:Make emoji zwj table
Jumat, 2025-08-29 05:08:11

point> pair local code_point_dec = tonumber ('0x' .. code_point); -- convert hex code point to decimal for output table key if not code_points_t[code_point]...

Click to read more »
Module:TrainingPages
Senin, 2023-04-03 04:47:58

currentpage=pp.fullText end currentpage=anonymize(currentpage) --- convert "Wikipedia:, "Meta:" etc. into "Project: local index={} if mw.ustring...

Click to read more »
Module:TNT
Minggu, 2020-08-30 14:28:25

{link(dataset)})) end end return data end -- Given a dataset name, convert it to a title with the 'commons:data:' prefix link = function(dataset)...

Click to read more »
Module:Sandbox/Jts1882/CladeN
Senin, 2022-10-24 04:14:07

while s[i] do local restoredString = string.gsub(s[i],"XXX", ",") -- convert back to commas --restoredString = s[i] local outerTerm = string.gsub(restoredString...

Click to read more »
Module:Citation/CS1/sandbox
Minggu, 2026-04-26 21:34:02

mask then local n = tonumber (mask); -- convert to a number if it can be converted; nil else if n then one = 0 ~= n and string.rep("&mdash;"...

Click to read more »
Module:Armenian/doc
Senin, 2025-07-28 03:27:31

This module converts Arabic numerals into Armenian numerals. It currently works for any whole number between 1 and 29999. To use it, enter...

Click to read more »
Module:Chessboard mxn/sandbox
Rabu, 2026-05-27 11:27:45

caption .. '</div></div>' end end function convertFenToArgs( fen ) -- converts FEN notation to an array of positions, offset by 2 ...

Click to read more »
Module:LightDarkColor/doc
Kamis, 2025-06-19 12:16:46

(table) Returns: Inverted RGB table lightdarkcolor._RGB( rgb ) (function) Converts from (R, G, B) to (r, g, b, a) while preserving actual color in light mode...

Click to read more »
Module:Lang
Rabu, 2026-05-13 06:20:12

automatic italic markup. Individual leading/trailing apostrophes are converted to their HTML numeric entity equivalent so that the new italic markup...

Click to read more »
Module:Sandbox/Ralvahkaset/khmer date
Minggu, 2026-04-26 11:54:10

-- Main module for converting Gregorian dates to Khmer Lunar Calendar dates -- Usage: {{#invoke:Sandbox/Ralvahkaset/khmer date|main|year=2024|month=4|day=14}}...

Click to read more »
Module:Svara/sandbox
Kamis, 2025-10-16 21:56:28

local svaraResolve = mw.loadData('Module:Svara/resolve') -- Convert shorthand notation into standard notation. function p.resolve(input, type)...

Click to read more »
Module:External links
Selasa, 2024-05-28 13:09:32

pval[qualid].types.datatype if valid then -- we'll have to convert the regex to Lua-style local regex = regexConverter(qualsnak.datavalue...

Click to read more »
Module:Pagetype
Rabu, 2024-05-22 00:35:20

local function lookUpNamespaceArg(args, key) local arg = args[key] -- Convert "yes", "1" etc. to true, "no", "0" etc. to false, and leave -- other values...

Click to read more »
Module:Lang/sandbox
Rabu, 2026-05-13 06:17:18

automatic italic markup. Individual leading/trailing apostrophes are converted to their HTML numeric entity equivalent so that the new italic markup...

Click to read more »
Module:Sandbox/Thisasia
Rabu, 2024-05-08 06:54:32

then --local ft=convertedValue --convertedValue =convertValue:gsub("^ft[%a%d]+$", "" .. ft) --ftToCm(value)...

Click to read more »
Module:Georgian to IPA/doc
Jumat, 2024-08-30 04:33:13

This module converts Georgian characters to IPA characters....

Click to read more »
Module:Str find word/doc
Sabtu, 2026-03-28 19:20:34

|casesensitive=false, |case=false Not case-sensitive (A=a) |booleans= |booleans=true will convert all boolean words into "True/False". per module:Yesno (Yes, true, yes,...

Click to read more »
Module:Signpost/index/doc
Rabu, 2025-04-30 03:35:31

series templates, and partially by text-matching the subpage name and the long title (converted to lower case) against the following Python dictionary:...

Click to read more »
Module:Sandbox/Johnuniq/grosstonnage
Rabu, 2013-09-25 08:17:47

-- Test idea from Wnt to convert GT (gross tonnage) to/from volume. -- Usage: {{#invoke:Sandbox/Johnuniq/grosstonnage | run_tests | vol1 | vol2 | step}}...

Click to read more »
Module:Sandbox/Philipnelson99
Kamis, 2024-03-21 05:36:56

by_number_of_edits/1–1000") r1000string = parseString(r1000) r1000rank=convertToDict(r1000string) r2000 = getPage("Wikipedia:List_of_Wikipedians_by_n...

Click to read more »
Module:Category main article
Selasa, 2025-12-09 01:37:11

hatnote templates targeting a non-existent page' or nil }, pages) -- Convert to plain strings local links = {} for i, link in ipairs(rawLinks or {})...

Click to read more »
Module:Ko-translit/clean
Sabtu, 2026-05-02 06:30:17

replacements) text = mw.text.killMarkers(text) return text end -- Converting escaped special chars to HTML tags to preserve them function p.escaped_to_html(text)...

Click to read more »
Module:Routelist row/sandbox
Jumat, 2024-08-23 11:38:56

mi .. ref .. format("||align=right|") .. frame:expandTemplate{ title = 'convert', args = { mi, "mi", "km", disp = "output number only"}} else return...

Click to read more »
Module:Adjacent stations
Jumat, 2025-10-03 10:27:24

getArgs(frame, {frameOnly = true}) return p._style(args, frame) end function p.convert(frame) local args = frame.args local code = mw.text.split(mw.ustring...

Click to read more »
Module:X-SAMPA to IPA/doc
Jumat, 2024-09-13 03:37:02

This module converts X-SAMPA to IPA, and is accessible through {{x2i}}. See there for more. [ɛɡˈzɑmpɫ̩]...

Click to read more »
Module:Gapnum
Rabu, 2025-07-23 08:10:07

tonumber(n, 36) then -- Validates any number with base ≤ 36 error('Unable to convert "' .. args[1] .. '" to a number') end local gap = args.gap local precision...

Click to read more »
Module:Ancient Egypt kings/doc
Jumat, 2024-07-26 00:06:42

This module converts a year in the Gregorian calendar to the equivalent year of the ancient Egyptian era organized by pharaohs and kings....

Click to read more »
Module:Location map
Selasa, 2026-05-26 13:47:54

and true for everything else -- if useWikidata is present but blank, convert it to false instead of nil -- p.top, p.bottom, and their callers need to...

Click to read more »
Module:Asbox stubtree/doc
Jumat, 2024-08-30 03:18:51

and served the same function via {{Asbox/templatepage}} prior to being converted to Lua. In addition to the contributors listed in the contribution histories...

Click to read more »
Module:Chessboard/sandbox
Rabu, 2026-05-27 11:27:47

'Module:Chessboard/sandbox/styles.css' } ) end function convertFenToArgs( fen ) -- converts FEN notation to 64 entry array of positions, offset by 2...

Click to read more »
Module:InfoboxNonEmergencyNumber
Senin, 2025-09-29 02:38:05

required = {"name", "organisation", "country"} -- Helper function: trim and convert to string local function trimmed(args, key) if not args[key] then return...

Click to read more »
Module:Ancient Egypt era/doc
Selasa, 2025-06-03 23:08:02

This module converts a year in the Gregorian calendar to the equivalent year of the ancient Egyptian era organized by dynasties and kings. It is used by...

Click to read more »
Module:Sandbox/Aseleste/Indexer
Kamis, 2021-01-21 09:45:11

result[key] = as_value_content_function(value) end return result end -- converts text to key content function -- magic words: '__M_CONTENT__' as_key_content_function...

Click to read more »
Module:Cite tweet
Minggu, 2026-03-15 18:04:49

value that can't be converted to a number; invalid err_msg_index = 3; -- error: invalid number (couldn't convert to number) elseif not...

Click to read more »
Module:Complex date/sandbox
Jumat, 2020-05-15 22:46:05

'' elseif operation == 'julian' then if not date2 and date1 then -- Convert from Julian to Gregorian calendar date if Calendar == nil then Calendar...

Click to read more »
Module:String2/sandbox
Rabu, 2025-02-19 19:23:52

a string, passed as either the first unnamed parameter or |txt= -- it converts each number it finds into a percentage and returns the resultant string...

Click to read more »
Module:Urltowiki
Jumat, 2019-11-08 12:05:32

history, etc., are stripped, and percent-encoded characters -- are converted to normal text. local p = {} local current_lang = mw.language.getContentLanguage()...

Click to read more »
Module:Footnotes/anchor id list/data
Kamis, 2024-07-18 00:28:51

-- for each patern in *_template_patterns pattern_convert (pattern, t[2]) -- convert and store in known_templates_* end end ...

Click to read more »
Module:Sandbox/Yupik
Rabu, 2019-08-14 22:32:16

tonumber(frame.args.celsius) or 0 --this is a string; if tonumber can't convert str into number, it returns nil, not the orig value, so it will fail. ...

Click to read more »
Module:Graphical timeline
Jumat, 2025-10-10 19:34:46

Utility function to convert between units -- Currently only supports em and px, -- assume M size of 13.3 pixels local function convertUnits(value,srcUnit...

Click to read more »
Module:Duration/sandbox
Senin, 2020-05-11 13:21:32

for k, v in ipairs(duration) do duration[k] = tonumber(v) or 0 end -- convert values to numbers end if not duration[3] and duration[1] >= 60...

Click to read more »
Module:British regnal year/doc
Jumat, 2024-08-30 03:28:03

This module implements the {{British regnal year}} template. It converts a year in the Gregorian calendar into a British regnal year. {{#invoke:British...

Click to read more »
Module:Television episode disambiguation description/doc
Jumat, 2020-01-10 20:57:15

Module:Television episode disambiguation creates an entry in a disambiguation page by converting a plain text episode article name into a correctly formatted link and...

Click to read more »
Module:Ordnance Survey coordinates/doc
Jumat, 2026-05-22 18:49:32

Converts a OS grid ref to a lat/long hyperlink to geohack. {{#invoke:Ordnance Survey coordinates|main|SK135733}} ← Two-letter code interpreted as OS grid...

Click to read more »
Module:Dump/doc
Sabtu, 2026-02-07 11:36:35

the wikitext passed to a module would actually contains strip markers. {{convert|1+2/3<ref>Example</ref>|ft|in}} ExpandTemplates output, rearranged on multiple...

Click to read more »
Module:Array
Selasa, 2023-08-22 22:32:32

new_arr[k] = self[index] end return new_arr end -- A function to convert string key-table modules such -- as [[Module:languages/data2]] into arrays...

Click to read more »
Module:Probox
Selasa, 2023-06-13 00:55:51

string.len(args[k]) > 0 and type(data.templates[k]) == "table") then --convert args to lowercase before checking them against cats for tmplt_key,...

Click to read more »
Module:Cs1 documentation support
Rabu, 2026-02-25 02:24:53

-- ... so don't convert the '2' to '#' else param_i = param:gsub ('%d+', '#'); -- for enumerated parameters, convert the enumerator digits...

Click to read more »
Module:Mountains Prism/sandbox
Minggu, 2025-07-06 06:48:47

{{convert}} *** local function convert(frame, value, unit) debug("Converting "..value..unit) local result = frame:expandTemplate{title='convert'...

Click to read more »
Module:Mountains Prism
Minggu, 2025-07-06 07:59:27

{{convert}} *** local function convert(frame, value, unit) debug("Converting "..value..unit) local result = frame:expandTemplate{title='convert'...

Click to read more »
Module:Routelist row
Jumat, 2025-01-03 10:31:57

mi .. ref .. format("||align=right|") .. frame:expandTemplate{ title = 'convert', args = { mi, "mi", "km", disp = "output number only"}} else return...

Click to read more »
Module:Sandbox/Wnt/ColorAlphabet/doc
Jumat, 2020-09-18 22:22:30

parameter/the function is "letter", if it is "blank" it does produce colors, but converts the letters to non-breaking spaces. {{#invoke:Sandbox/Wnt/ColorAlphabet|letter|foo...

Click to read more »
Module:Category series navigation
Selasa, 2025-12-09 01:35:27

toarabic = require('Module:ConvertNumeric').roman_to_numeral local toroman = require('Module:Roman').main --sterilize/convert rom/num local num =...

Click to read more »
Module:Sandbox/Aseleste/Indexer/sandbox
Rabu, 2021-01-20 21:25:54

result[key] = as_value_content_function(value) end return result end -- converts text to key content function -- magic words: '__M_CONTENT__' as_key_content_function...

Click to read more »
Module:Plain text/sandbox
Minggu, 2023-07-23 22:39:29

--converts text with wikilinks to plain text, e.g "[[foo|gah]] is [[bar]]" to "gah is bar" --removes anything enclosed in tags that isn't nested, mediawiki...

Click to read more »
Module:Unicode data
Selasa, 2025-09-16 09:46:49

require "libraryUtil".checkType("get_best_script", 1, str, "string") -- Convert HTML character references (including named character references, -- or...

Click to read more »
Module:Word count/doc
Sabtu, 2026-04-18 01:19:58

to trim at the word count limit (boolean) frame.args.unsubst Whether to convert substitutions into transclusions (boolean) frame.args.prepend What to prepend...

Click to read more »
Module:Hepburner/doc
Minggu, 2026-03-08 07:42:26

this *very* costly module. Any double vowels will get converted to a long vowel; ou will get converted to ō. {{#invoke:Hepburner|toHepburn|Kinou}} => Kinō...

Click to read more »
Module:Epi
Selasa, 2018-10-16 00:33:50

local function ntsh(outvalue) -- This code was copied from [[Template:Convert]] if outvalue == 0 then sortkey = '5000000000000000000' else local...

Click to read more »
Module:Japanese calendar
Sabtu, 2023-09-30 10:29:55

calendar/data' ) local halfToFull = require( 'Module:Convert character width' ).full -- Converts half-width characters to full-width characters. ...

Click to read more »
Module:Chessboard/Euroxiangqi
Rabu, 2026-05-27 11:28:01

:wikitext(footer) end return tostring(root) end function convertFenToArgs( fen ) -- converts FEN notation to 64 entry array of positions, offset by...

Click to read more »
Module:Countdown-ymd/sandbox
Jumat, 2026-05-08 05:08:45

the remaining years' days end return days * 86400; -- convert <days> to seconds elseif unit:match (cfg.unit_patterns_t.month) then ...

Click to read more »
Module:Sandbox/Ralvahkaset/a utils
Kamis, 2026-02-19 23:14:25

Math.floor in JS) local function Int(a) return math.floor(a) end -- Convert Gregorian date to Julian Day number -- Trả về số ngày tính từ ngày 1 tháng...

Click to read more »
Module:Excerpt/portals/sandbox
Jumat, 2026-02-06 20:41:50

end return nil end -- Helper function to convert imagemaps into standard images local function convertImageMap(imagemap) local image = matchAny(imagemap...

Click to read more »
Module:Urltowiki/sandbox
Kamis, 2023-04-13 03:15:12

history, etc., are stripped, and percent-encoded characters -- are converted to normal text. local p = {} local current_lang = mw.language.getContentLanguage()...

Click to read more »
Module:Change
Selasa, 2023-04-11 10:52:07

sortkey .. '♠"></span>' end -- This code was copied from [[Template:Convert]] if outvalue == 0 then sortkey = '5000000000000000000' else local...

Click to read more »
Module:Naval Vessel Register URL
Senin, 2025-08-11 23:02:19

(hull):upper():gsub ('[ _%-]+', '-'); -- no leading/trailing whitespace, uppercase; convert spaces, underscores, hyphens to hyphens local patterns_t = { ...

Click to read more »
Module:Celestial object quadrangle
Kamis, 2022-06-09 22:46:32

quad_name(lat, lon, globe) -- lower case globe = globe:lower() or '' -- convert to numbers lat = tonumber(lat) or '' lon = tonumber(lon) or '' -- get...

Click to read more »
Module:Lua banner/sandbox
Jumat, 2025-11-28 13:29:11

'Templates based on the Math Lua module', ['Module:BaseConvert'] = 'Templates based on the BaseConvert Lua module', ['Module:Citation/CS1'] = 'Templates...

Click to read more »
Module:Sandbox/Trappist the monk/Competition word count table
Sabtu, 2024-05-11 04:56:24

(args_t[i]); -- even numbered parameters are counts; unformat and convert to number end if word and count then word_table:node (mw.html.create...

Click to read more »
Module:Wikidata
Sabtu, 2023-03-04 11:35:36

following code replaces the UTC suffix with the given negated timezone to convert the global time to the given local time timezone = tonumber(timezone)...

Click to read more »
Module:Graphical timeline/sandbox
Jumat, 2025-10-10 11:13:11

Utility function to convert between units -- Currently only supports em and px, -- assume M size of 13.3 pixels local function convertUnits(value,srcUnit...

Click to read more »
Module:CIE to BT2020
Kamis, 2026-02-26 05:54:48

else return 1.099 * (L ^ 0.45) - 0.099 end end function p.convert(frame) local args = frame.args local input = args[1] or "" ...

Click to read more »
Module:Road data/util/doc
Selasa, 2024-08-27 00:20:43

functions for use within Module:Road data modules. See the code for function usages. Exported functions are: addAll, arrayToString, convertLengths and err....

Click to read more »
Module:Sandbox/Qwerfjkl/graph
Senin, 2025-01-20 02:22:08

local canvas = require('Module:Sandbox/Bawolff/canvas') local function convertToPixelHoriz(value, minValue, maxValue, minPixel, maxPixel) return ((value...

Click to read more »
Module:Easter/sandbox
Senin, 2016-07-25 10:18:13

original calculation, with the Julian date converted to the equivalent Gregorian calendar ...

Click to read more »
Module:Graph
Sabtu, 2025-07-12 23:57:01

first series as radius values data = convertXYToSingleSeries(x, y, xType, yType, { "y", "r" }) else data = convertXYToManySeries(x, y, xType, yType, seriesTitles)...

Click to read more »
Module:Normalize volume and edition
Rabu, 2026-03-18 01:01:05

"%1") s = mw.ustring.gsub(s, "(%d+)th%f[%s%p]", "%1") -- CONVERT PARENTHESIZED PARTS TO DECIMALS: "3(1)" -> "3.1" s = mw.ustring.gsub(s...

Click to read more »
Module:Location map/sandbox
Selasa, 2026-06-02 04:25:47

and true for everything else -- if useWikidata is present but blank, convert it to false instead of nil -- p.top, p.bottom, and their callers need to...

Click to read more »
Module:Find sources/doc
Kamis, 2024-10-17 00:11:21

as a search term. Alternatively the following can be used, which will convert any title to a search query, with the main portion of the title in quotation...

Click to read more »
Module:Webarchive/sandbox
Selasa, 2026-02-24 05:18:57

through table table.insert (out, make_wikilink (key)); -- and convert category names to links end end return table.concat (out); ...

Click to read more »
Module:Message box
Senin, 2025-10-20 01:19:52

-- So we shortcut and return the empty string. return "" end -- Convert category tables to strings and pass them through -- [[Module:Category...

Click to read more »
Module:Object weight/doc
Jumat, 2025-10-03 16:13:57

This module is intended to aid in converting weights in {{Infobox mobile phone}}. {{#invoke:Object weight|weight|123 g}} Module:Object size...

Click to read more »
Module:Sidebar
Selasa, 2025-12-30 01:10:22

templates and modules with a 'style' parameter of any sort for tracking to convert to TemplateStyles. TODO after a long cleanup: Catch sidebars in other...

Click to read more »
Module:Wikidata/sandbox
Sabtu, 2023-03-04 11:34:03

following code replaces the UTC suffix with the given negated timezone to convert the global time to the given local time timezone = tonumber(timezone)...

Click to read more »
Module:Country alias
Senin, 2026-04-20 17:47:33

revisited French Polynesia PYF, TAH - TAH has been converted to Tahiti per SILENCE ]] local function stripToNil(text) -- If text...

Click to read more »
Module:NewDYKnomination/sandbox
Minggu, 2025-11-09 04:51:52

'Moved to mainspace' -- Converted from a redirect elseif status == 'convert' or status == 'converted' or status ==...

Click to read more »
Module:WP
Sabtu, 2022-10-22 05:02:57

pagename:match ('^%a+'):upper(); -- extract canonical namespace; convert to upper case for indexing pagename = pagename:gsub ('^%a+', namespaces[namespace]);...

Click to read more »
Module:Sandbox/Mdowdell/Coins
Selasa, 2015-01-06 17:59:59

to false -- @return {string} -- function p._amount ( a, rusty ) -- convert used globals to locals where possible to improve performance local...

Click to read more »
Module:Archives/bots/doc
Sabtu, 2025-12-06 14:30:58

This module converts a duration into a form with units which leave the value easier to read. It should be invoked through the template {{human readable...

Click to read more »
Module:Params/ChangeLog
Rabu, 2026-04-22 22:05:15

The modifiers † converting_values_to_lowercase, † converting_values_to_uppercase, † converting_names_to_lowercase, and † converting_names_to_uppercase...

Click to read more »
Module:Sandbox/trappist the monk/airports convert/data
Senin, 2023-06-26 22:11:20

---------------------------------- This is redundant form data to be converted to the new style ]] local master= { {'Africa','Algeria','AZR','DAUA'...

Click to read more »
Module:JSONutil/sandbox
Rabu, 2026-01-28 01:21:41

-- flip() JSONutil.Encoder.Array = function(apply, adapt, alert) -- Convert table to JSON array. -- Parameter: -- apply -- table, with sequence...

Click to read more »
Module:Sandbox/Bawolff/graph
Senin, 2025-01-13 21:38:44

local canvas = require( 'Module:Sandbox/Bawolff/canvas' ) local function convertToPixelHoriz( value, minValue, maxValue, minPixel, maxPixel ) return...

Click to read more »
Module:Infobox body of water tracking/doc
Rabu, 2025-05-14 03:08:44

065) Category:Pages using infobox body of water with a non-automatically converted dimension (0) Category:Pages using infobox body of water with duplicate...

Click to read more »
Module:Excerpt
Jumat, 2026-03-06 19:56:17

-999 ) ) end return text:gsub( pattern, '' ) end -- Helper method to convert a comma-separated list of numbers or min-max ranges into a list of booleans...

Click to read more »
Module:Object size/doc
Selasa, 2025-09-23 05:51:47

This module is intended to aid in converting dimensions in {{Infobox mobile phone}}. It is implemented by {{Infobox mobile phone/size}}. {{#invoke:Object...

Click to read more »
Module:Episode list
Sabtu, 2025-10-11 08:47:09

data from the numbered serial parameters (Title1, Aux1, etc.), and then convert them to use the non-numbered parameter names (Title, Aux). The function...

Click to read more »
Module:Probox/sandbox
Senin, 2016-11-21 03:06:08

string.len(args[k]) > 0 and type(data.templates[k]) == "table") then --convert args to lowercase before checking them against cats for tmplt_key,...

Click to read more »
Module:Current leader/sandbox
Jumat, 2026-06-05 07:22:49

local leader_t = 'string' == type (leader) and {leader} or leader; -- convert simple string to sequence or point to the sequence local parsedLeader...

Click to read more »
Module:Sports table/Badminton team
Kamis, 2022-12-15 01:00:24

yesno(Args['show_matches'] or 'yes') local hide_for_against = false -- First convert to lower case if it is a string for_against_style = string.lower(for_against_style)...

Click to read more »
Module:Citation/CS1/COinS
Sabtu, 2025-04-12 20:48:47

value; end rendering = mw.text.unstripNoWiki (rendering); -- convert stripmarker into rendered value (or nil? ''? when math render error) ...

Click to read more »
Module:Television episode short description
Minggu, 2025-10-19 06:32:02

if (seasonNumber) then local convertOrdinal = require("Module:Ordinal") return convertOrdinal._ordinal(seasonNumber) end return nil...

Click to read more »
Module:Citation/CS1/Utilities
Minggu, 2026-01-18 02:25:10

N _ T O _ D A S H >-------------------------------------------------- Converts a hyphen, endash, emdash to endash under certain conditions. The hyphen/en/em...

Click to read more »
Module:Sandbox/Boboquack/Dates
Rabu, 2018-11-07 16:47:17

return p.valid(frame.args.day,frame.args.month,frame.args.year) end p.convert=function(frame) local indate=frame.args.date local day,month,year,era...

Click to read more »
Module:Category main article/sandbox
Kamis, 2025-11-20 17:16:52

hatnote templates targeting a non-existent page' or nil }, pages) -- Convert to plain strings local links = {} for i, link in ipairs(rawLinks or {})...

Click to read more »
Module:YCbCr to RGB
Sabtu, 2026-02-14 06:34:59

else return 1.055 * (c ^ (1/2.4)) - 0.055 end end function p.convert(frame) local args = frame:getParent().args local Y = tonumber(args...

Click to read more »
Module:Sandbox/S-1-5-7/versiontests
Jumat, 2020-03-13 14:56:05

Year -- Month Day, Year -- Day Month Year -- TODO -- and convert it to the -- done return "TODO" end end function module...

Click to read more »
Module:Sandbox/trappist the monk/wrapper doc
Jumat, 2025-11-21 00:40:09

template wikitext, converts from 'wrap' to 'list' and then preprocesses to get a rendering of only the default parameters. Converts that rendering to...

Click to read more »
Module:Diacritics
Sabtu, 2018-11-17 20:26:08

--[[ convertChar returns the non-diacritic version of the supplied character. stripDiacrits replaces words with diacritical characters with their non-diacritic...

Click to read more »
Module:Extract short description
Sabtu, 2022-10-22 04:19:43

in as a string template_names_tbl = {template_names_tbl}; -- convert to a table end local templateName for _, template_name in ipairs...

Click to read more »
Module:Sandbox/Ralvahkaset/sankrant
Jumat, 2026-02-27 01:05:31

local Core = require('Module:Sandbox/Ralvahkaset/calcore') -- Convert a number to Khmer numerals with optional zero-padding local function toKhmerNumber(num...

Click to read more »
Module:WikidataIB
Sabtu, 2025-12-27 18:46:46

conversions - only for en-wiki local conv = parseParam(args.conv or args.convert, false) -- if we have conversions, we won't have formatted numbers or...

Click to read more »
Module:Television episode disambiguation description/sandbox
Sabtu, 2020-01-18 02:38:43

page', -- 78, these should be converted. 'DAB', -- 55, these should be converted. 'Disam', -- 35, these should be converted. } -- Tracking category list...

Click to read more »
Module:Cite tweet/sandbox
Jumat, 2026-05-15 21:58:42

args_t.number then -- |number= with a value that can't be converted to a number; invalid cite_args_t.date = args_t.date; -- use...

Click to read more »
Module:Calendrical Calculations/doc
Minggu, 2026-05-03 15:01:42

Reingold from Lisp to Lua. When finished, it will allow any date to be converted between any two of the roughly 30 calendars in the book. I will write...

Click to read more »
Module:Sandbox/Jts1882/CladeN/doc
Jumat, 2019-11-29 00:49:10

[User:Jts1882/sandbox/templates/NewickConverter|NewickConverter] template, which converts Newick strings into clade structure. This is not to be used in wikipedia...

Click to read more »
Module:Flags
Kamis, 2013-08-22 10:50:39

global namespace local commonsName local flagOf = "Flag_of_" -- Converts "Flag of" in a variable in order to accept images that don't follow this...

Click to read more »
Module:Import table
Kamis, 2023-05-18 03:58:50

= string.match(val,"%d+%.?%d*") -- extract value, possibly from inside convert template if val then if string.upper(string.sub(config[cn][3]...

Click to read more »
Module:NumberSpell
Selasa, 2014-01-28 19:43:00

-- This module converts a number into its written English form. -- For example, "2" becomes "two", and "79" becomes "seventy-nine". local getArgs =...

Click to read more »
Module:Lang/data/make is latn data
Kamis, 2025-01-16 21:01:40

('0x' .. range_t[1]); -- convert hex index to decimal range_t[2] = tonumber ('0x' .. range_t[2]); -- convert hex index to decimal table...

Click to read more »
Module:Sports rbr table/matchup/doc
Rabu, 2023-05-10 17:44:14

rnd parameters (0) (pages where the |rnd1= parameter is used and may be converted to |firstround=) Category:Pages using sports rbr table with unsupported...

Click to read more »
Module:Adjacent stations/Réseau Express Régional/doc
Jumat, 2024-08-09 07:52:22

by either IdFM or RATP. Instead, use RGB values that were generated by converting official CMYK values in Adobe Illustrator, under the European General...

Click to read more »
Module:Adjacent stations/Tramways in Île-de-France/doc
Jumat, 2024-08-09 08:01:15

by either IdFM or RATP. Instead, use RGB values that were generated by converting official CMYK values in Adobe Illustrator, under the European General...

Click to read more »
Module:Multiple image
Rabu, 2026-05-27 20:25:05

assume a single row if (#pr < 1) then pr = {tostring(ic)} end -- convert the array of strings to an array of numbers, -- adding any implied/missing...

Click to read more »
Module:Text/doc
Jumat, 2025-04-25 22:36:11

unterminated. ucfirstAll The first letter of every recognized word is converted to upper case. This contrasts with the parser function {{ucfirst:}} which...

Click to read more »
Module:Sandbox/Innesw/Infobox Australian place
Kamis, 2025-09-25 15:21:57

-- This is Template:Infobox_Australian_place converted to Lua local p = {} local lframe local shortDescription = require('Module:GetShortDescription')...

Click to read more »
Module:Exponential search/doc
Kamis, 2025-11-20 08:29:34

find the highest one using this module; all we need is a function that converts from an integer to the corresponding archive name. local expSearch =...

Click to read more »
Module:High-use
Kamis, 2025-10-09 03:24:46

fails if count == nil and args[1] ~= nil and args[1] ~= '' then -- convert local language number string to a number understandable by Lua count...

Click to read more »
Module:Signpost/aliases
Selasa, 2023-01-31 05:34:35

the canonical tag name, and the values are arrays -- of aliases to be converted to the canonical tag name. -- -- ["canonicaltag"] = {"alias1", "alias2"...

Click to read more »
Module:URL to diff
Jumat, 2020-09-11 08:12:03

-- This module converts Wikipedia diff URLs to the {{diff}} template format. local newBuffer = require('Module:OutputBuffer') local p = {} local function...

Click to read more »
Module:Pagetype/sandbox
Jumat, 2026-06-05 02:43:41

local function lookUpNamespaceArg(args, key) local arg = args[key] -- Convert "yes", "1" etc. to true, "no", "0" etc. to false, and leave -- other values...

Click to read more »
Module:EFloras/doc
Rabu, 2024-10-23 17:04:34

the flora_id and the name of the family (or tribe of Asteraceae) and converting them to the corresponding volume numbers for the Floras of North America...

Click to read more »
Module:Sandbox/Ralvahkaset/calcore
Minggu, 2026-04-26 00:30:37

calcMonth, calcDay = Utils.toProlepticGregorian(year, month, day) -- Convert date to days since Unix epoch (1970-01-01) -- We use proleptic Gregorian...

Click to read more »
Module:ImportProtein/doc
Jumat, 2024-08-30 04:50:20

each in quotes, separated by a colon. "binding":"ATP binding site" will convert a feature labelled "binding" to display the second name instead. This affects...

Click to read more »
Module:Template wrapper/doc
Senin, 2025-09-08 02:26:17

positional parameters but {{citation}} does not so the wrapper template must convert the positional parameters to named parameters which it does using the |_alias-map=...

Click to read more »
Module:Footnotes
Minggu, 2025-03-02 10:29:01

N _ T O _ D A S H >-------------------------------------------------- Converts a hyphen to a dash under certain conditions. The hyphen must separate...

Click to read more »
Module:User:AnomieBOT/LanguageCategoryCreator
Jumat, 2025-10-31 02:08:24

list_cat_likes() local keys = {} for k, v in pairs( cats ) do -- Convert pattern to LIKE syntax. k = k:gsub( '%%', '' ):gsub( ' ', '\\_' ):gsub(...

Click to read more »
Module:Parameter validation
Jumat, 2026-05-15 20:39:27

capture = capture and mw.ustring.gsub( capture, '"(%d+)"', tonumber ) -- convert "1": {} to 1: {}. frame.args uses numerical indexes for order-based params...

Click to read more »
Module:Soccerway
Kamis, 2019-07-11 15:43:49

local p = {} p.ConvertScoresway = function(frame) local parentArgs = mw.getCurrentFrame():getParent().args -- get arguments from template local...

Click to read more »
Module:SortName/sandbox
Selasa, 2023-04-11 10:31:17

-- the following table and roman_to_numeral function came from Module:ConvertNumeric, created by User:Dcoetzee roman_numerals = { I = 1, V =...

Click to read more »
Module:WLink/doc
Sabtu, 2024-07-06 05:58:54

be returned. The result does not begin or end with a space. ansiPercent Convert string by ANSI encoding rather than UTF-8 encoding Required for some 20th...

Click to read more »
Module:FindYDCportal
Sabtu, 2026-02-14 05:40:38

doesPortalExist(myCenturyString) then return myCenturyString end return "" end -- converts a string number to an string ordinal -- e.g. 21 → 21st -- 17 → 17th...

Click to read more »
Module:Wikt-lang/data
Rabu, 2026-01-14 15:11:12

"𐍇", ["[Ƕƕ]"] = "𐍈", -- Not sure if "hw" and "hv" can safely be converted ["[OoŌō]"] = "𐍉", }, }, ["gsw"] = { ["name"] = "Alemannic...

Click to read more »
Module:DateI18n/sandbox
Jumat, 2022-10-21 17:07:23

are the only supported format starting with 'YMD'. All others will be converted to 'YMD' elseif datecode == 'YM' then timeStamp = string.format('%04i-%02i'...

Click to read more »
Module:Citation/CS1/Configuration
Sabtu, 2026-02-28 22:14:44

= '5', ['6'] = '6', ['7'] = '7', ['8'] = '8', ['9'] = '9'}, -- used to convert local language digits to Western 0-9 ['xlate_digits'] = {}, } if...

Click to read more »
Module:Year in various calendars/doc
Kamis, 2023-12-28 21:57:18

obj ) - an alias for myCalendarBox:addCalendar(). calendarBox:export() - converts the calendar box object to wikicode. This calls calendar:export() and...

Click to read more »
Module:Jf-JSON
Kamis, 2016-12-08 10:48:33

AND STRICT TYPES -- -- Because both JSON objects and JSON arrays are converted to Lua tables, -- it's not normally possible to tell which original...

Click to read more »
Module:Solar eclipse
Minggu, 2025-10-05 01:05:44

s:match('^%s*[%d][%d.]*%s*$')) then return frame:expandTemplate{ title = 'convert', args = {s, 'km', 'mi', abbr = 'on'} } else if(s and s ~= '') then...

Click to read more »
Module:Co-op profile
Jumat, 2015-03-27 06:05:28

-- converts spaces to underscores in a string return mw.ustring.gsub(value, " ", "_") end function stringFirstCharToUpper(str) -- converts the...

Click to read more »
Module:Sandbox/BrownHairedGirl/IrelandByCountyCatNav3
Minggu, 2018-04-01 09:55:15

return value end function p.main(frame) -- getArgs -- In all cases, convert to blank (i.e. '') -- * a nil value -- * a value consisting only of...

Click to read more »
Module:Ko-translit/data/sandbox
Sabtu, 2026-05-02 06:20:11

[ᅡ-ᅵ] because MediaWiki uses Unicode Normalization Form C (NFC), which converts any sequence of [ᄀ-ᄒ][ᅡ-ᅵ] into a precomposed character. Use square brackets...

Click to read more »
Module:Date/doc
Jumat, 2025-10-03 14:56:48

an optional time, can be specified in a variety of formats, and can be converted for display using a variety of formats, for example, 1 April 2016 or April...

Click to read more »
Module:CountryData/doc
Jumat, 2024-08-30 03:58:17

and {{getalias2}}, because it transcludes the data template from Lua and converts it to a Lua table using the above function, picks the wanted parameter...

Click to read more »
Module:Extensive archives
Senin, 2026-04-27 04:43:01

tonumber(n) unit = unit:lower() if unit == "h" then -- convert hours to days, round to nearest half-day local days = n / 24 ...

Click to read more »
Module:Sandbox/BrownHairedGirl/IrelandByCountyCatNav2
Sabtu, 2018-03-31 23:02:45

local p_nocounty = frame.args.nocounty -- parse parameters, if any -- convert boolean parameters to a boolean value p_nocounty = (boolify(p_nocounty))...

Click to read more »
Module:Wd
Rabu, 2025-07-23 02:53:47

valuesArray[i][1] end end return outString end function Config:convertUnit(unit, raw, link, short, unitOnly) local space = " " local label =...

Click to read more »
Module:Political party/testtable
Jumat, 2025-12-26 22:54:43

isColorValid(color) if not color or color == "" then return '' end -- Convert to lowercase. color = color:lower() -- Check if color is using an HTML...

Click to read more »
Module:Countdown-ymd
Rabu, 2026-04-29 06:56:18

requirement is |year= return static_text.invalid; end -- convert event time parameters to seconds; use default January 1 @ 0h for defaults...

Click to read more »
Module:Citation/CS1/Utilities/sandbox
Kamis, 2026-01-22 22:00:17

N _ T O _ D A S H >-------------------------------------------------- Converts a hyphen, endash, emdash to endash under certain conditions. The hyphen/en/em...

Click to read more »
Module:Sidebar/sandbox
Selasa, 2025-12-30 01:00:41

templates and modules with a 'style' parameter of any sort for tracking to convert to TemplateStyles. TODO after a long cleanup: Catch sidebars in other...

Click to read more »
Module:TaxonItalics
Selasa, 2021-10-05 13:34:24

itself; prevent the hybrid symbol being treated as -- a 'word' by converting a following space to the HTML entity local italMarker = "''" name...

Click to read more »
Module:Rugby league match squad/sandbox
Kamis, 2024-11-07 22:01:19

or center, defaults to right if not set) align = string.lower(align) --convert to lower case local squadsize = args['squadsize'] or 18 --number of players...

Click to read more »
Module:UserLinks
Minggu, 2024-09-01 00:20:30

from a snippet function, as nil and false values are -- automatically converted into the blank string by the metatable. -- -- If you add a new snippet...

Click to read more »
Module:Current events calendar
Selasa, 2021-11-02 23:07:23

table-layout-based Archive pages look good. When the Archives -- have been converted to a grid-based layout, this logic can be removed, -- and the corressponding...

Click to read more »
Module:Request for permission links/doc
Minggu, 2024-06-16 22:11:45

'New page reviewer' then l[#l+1] = end The functional difference since converting to a module is primarily that this checks each permission subpage to see...

Click to read more »
Module:Ref info/data
Sabtu, 2022-05-07 00:06:16

cs12_stripped_list[name] = true; end end local function pattern_convert (name) if name:match ('(.-)%[(%a)(%a)%](.*)') then -- mixed case...

Click to read more »
Module:Message box/div/doc
Selasa, 2025-11-04 01:46:29

Module:Message box/div/configuration ombox minor coordination Have to convert Module:Archives to use its own TemplateStyles sheet I think is probably...

Click to read more »
Module:Country alias/sandbox
Selasa, 2025-12-09 01:59:46

revisited French Polynesia PYF, TAH - TAH has been converted to Tahiti per SILENCE ]] local function stripToNil(text) -- If text...

Click to read more »
Module:Message box/sandbox
Rabu, 2026-01-14 07:04:32

-- So we shortcut and return the empty string. return "" end -- Convert category tables to strings and pass them through -- [[Module:Category...

Click to read more »
Module:Birth based on age as of dates/sandbox
Senin, 2025-12-22 00:14:55

date_earliest) .. " or " .. os.date("%Y", date_latest) end --then we convert back to a time table to see if the person is past their birthday birthday_earliest...

Click to read more »
Module:Template test case
Kamis, 2025-08-07 00:01:43

bridge.nowiki(args, cfg) cfg = cfg or mw.loadData(DATA_MODULE) -- Convert args beginning with _ for consistency with the normal bridge local newArgs...

Click to read more »
Module:Sandbox/Ahecht/navboxtolua/doc
Rabu, 2023-12-27 21:20:55

Replace any child navboxes with ####. Brackets can be converted back to wikitext using the following regex: (【)|(】)|(<\/*i>) (?1[)(?2])(?3'') { group1...

Click to read more »
Module:Chess viewer
Rabu, 2026-05-27 08:27:14

might be cleaner if it worked directly on the PGN notation instead of the converted form. -- A future todo might be to have some sort of changing caption...

Click to read more »
Module:Sandbox/BU Rob13
Selasa, 2019-02-19 10:01:34

-- [SublimeLinter luacheck-globals:mw] -- This module serves to convert [[Template:WikiProject Central America]] from -- using country task forces to...

Click to read more »
Module:Citation/CS1/COinS/sandbox
Jumat, 2025-11-21 02:45:55

value; end rendering = mw.text.unstripNoWiki (rendering); -- convert stripmarker into rendered value (or nil? ''? when math render error) ...

Click to read more »
Module:Sandbox/AlphaZeta/test3
Senin, 2013-12-30 08:44:20

local function trim(s) return (s:gsub("^%s*(.-)%s*$", "%1")) end -- convert month from string to number local function convertmonth( month ) month...

Click to read more »
Module:Sandbox/Matthiaspaul/Citation/CS1/Date validation
Rabu, 2024-09-18 03:24:52

= pcall (lang_object.formatDate, lang_object, 'U', accessdate ); -- convert accessdate value to unix timesatmp good2, tomorrow_ts = pcall (lang_object...

Click to read more »
Module:Category series navigation/sandbox
Kamis, 2025-12-04 03:48:08

toarabic = require('Module:ConvertNumeric').roman_to_numeral local toroman = require('Module:Roman').main --sterilize/convert rom/num local num =...

Click to read more »
Module:High-use/sandbox
Kamis, 2025-10-09 03:17:31

fails if count == nil and args[1] ~= nil and args[1] ~= '' then -- convert local language number string to a number understandable by Lua count...

Click to read more »
Module:Odot control
Kamis, 2013-12-12 15:59:41

special treatment to handle the spaces. --Everything else just gets converted to lower case. if county == "Le Flore" then countyProcessed = "leflore"...

Click to read more »
Module:Sandbox/Hike395/OS coordinates
Senin, 2019-08-19 06:14:05

local cartzb=542.06+roty*cartxa-rotx*cartya+(1.0+scale)*cartza -- convert Cartesian to long/lat local awgs84=6378137.0 local bwgs84=6356752...

Click to read more »
Module:Sandbox/trappist the monk/airports convert/data/doc
Minggu, 2023-11-26 21:40:26

duplicate code check: {{#invoke:IATA and ICAO code|duplicate_check}}...

Click to read more »
Module:Repr/doc
Minggu, 2021-03-14 09:27:07

Full syntax: mRepr.repr(value, options) Parameters: value: The value to convert to a string. This can be any Lua value. This parameter is optional, and...

Click to read more »
Module:Ancient Greek
Selasa, 2021-10-12 01:38:22

question mark, except after an ASCII alphanumeric character (to avoid converting semicolons in HTML entities). --]] text = mw.ustring.gsub(text, "([^A-Za-z0-9])[;"...

Click to read more »
Module:Sandbox/Paweł Ziemian/test
Selasa, 2016-04-12 00:47:42

getContentLanguage() local number = lang:formatNum(count) local articles = lang:convertPlural(count, { frame.args[4] or pf.args[4] or "article", frame.args[5]...

Click to read more »
Module:Format TemplateData/global
Rabu, 2026-01-28 00:43:31

end return storage, r end -- find() local function flat(apply) -- Convert tabular data into TemplateData. -- Parameter: -- apply -- table...

Click to read more »
Module:BattleHonour
Selasa, 2023-04-18 20:31:47

require('Module:Arguments').getArgs function p.BattleHonourTable(frame) -- Convert key-value pairs into a list of {code, data[code]} pairs local pairsList...

Click to read more »
Module:WikidataIB/sandbox
Senin, 2025-12-22 06:49:07

conversions - only for en-wiki local conv = parseParam(args.conv or args.convert, false) -- if we have conversions, we won't have formatted numbers or...

Click to read more »
Module:SST/hosts/doc
Sabtu, 2026-03-07 03:53:06

(switching the endpoint from /details/ to /stream/). HathiTrust (Hathi): Converts the machine leaf into a seq= parameter and passes search terms to q1=....

Click to read more »
Module:Graph/sandbox
Minggu, 2025-07-13 00:29:11

first series as radius values data = convertXYToSingleSeries(x, y, xType, yType, { "y", "r" }) else data = convertXYToManySeries(x, y, xType, yType, seriesTitles)...

Click to read more »
Module:Arguments/doc
Kamis, 2026-02-26 17:42:19

}) This might be necessary for some templates' operation. Note: When converting MediaWiki templates to Lua, keep in mind that in Lua, blank strings and...

Click to read more »
Module:Age
Rabu, 2025-12-10 15:08:14

dmy) or 'mf' (month first = mdy) ['txt-module-convertnumeric'] = 'Module:ConvertNumeric', ['txt-module-date'] = 'Module:Date', ['txt-sandbox']...

Click to read more »
Module:Infobox television
Selasa, 2026-04-28 18:25:24

-- Assuming 00:00:00 for simplicity min = 0, sec = 0 } -- Convert the date table to a Unix timestamp local start_date_timestamp = os.time(date_table)...

Click to read more »
Module:Box-header/sandbox
Senin, 2025-06-02 12:04:31

hexToDecimal(R_hex), hexToDecimal(G_hex), hexToDecimal(B_hex) end -- per [[HSL and HSV#Converting_to_RGB]] local function HSVtoRGB(H, S, V) local C = V * S local H_prime...

Click to read more »
Module:TrainingPages/sandbox
Jumat, 2014-03-21 02:12:03

currentpage=pp.fullText end currentpage=anonymize(currentpage) --- convert "Wikipedia:, "Meta:" etc. into "Project: local index={} if mw.ustring...

Click to read more »
Module:Footballer positions
Sabtu, 2025-12-27 04:46:02

trim(str), refs end -- Normalize for lookup: lowercase, remove dashes/spaces, convert center->centre local function normalizeForLookup(str) local s = str:lower()...

Click to read more »
Module:WPSHIPS utilities
Selasa, 2026-04-07 00:38:23

args_t[3] or ''; -- empty positional parameters are nil so convert nil to empty string local control = args_t[4]; local unlinked_prefix...

Click to read more »
Module:Sports table/Badminton team/sandbox
Selasa, 2021-10-19 21:40:46

fa_word_sing, fa_word_plur local hide_for_against = false -- First convert to lower case if it is a string for_against_style = string.lower(for_against_style)...

Click to read more »
Module:Video game wikidata
Kamis, 2023-08-31 21:42:41

updateLinkStyle = nil; local entities = {}; -- Translation table for converting numeric-IDs to shorthand aliases. local systemAliases = { [10677] = 'PS1'...

Click to read more »
Module:IA Citation/data/I/doc
Senin, 2026-03-02 14:18:15

`['docIdoc4']` Use a unique yet recognizable name, all caps, spaces converted to "_", and that starts with "doc". Engine Parameters (Top-level): template...

Click to read more »
Module:IA Citation/data/A/doc
Senin, 2026-03-02 11:57:30

`['docIdoc4']` Use a unique yet recognizable name, all caps, spaces converted to "_", and that starts with "doc". Engine Parameters (Top-level): template...

Click to read more »
Module:IA Citation/data/F/doc
Senin, 2026-03-02 12:22:01

`['docIdoc4']` Use a unique yet recognizable name, all caps, spaces converted to "_", and that starts with "doc". Engine Parameters (Top-level): template...

Click to read more »
Module:Change/sandbox
Selasa, 2023-04-11 10:46:23

sortkey .. '♠"></span>' end -- This code was copied from [[Template:Convert]] if outvalue == 0 then sortkey = '5000000000000000000' else local...

Click to read more »
Module:Jf-JSON/sandbox
Minggu, 2018-02-18 02:54:37

AND STRICT TYPES -- -- Because both JSON objects and JSON arrays are converted to Lua tables, -- it's not normally possible to tell which original...

Click to read more »
Module:IA Citation/data/B/doc
Senin, 2026-03-02 11:57:01

`['docIdoc4']` Use a unique yet recognizable name, all caps, spaces converted to "_", and that starts with "doc". Engine Parameters (Top-level): template...

Click to read more »
Module:IA Citation/data/H/doc
Selasa, 2026-03-03 11:30:48

`['docIdoc4']` Use a unique yet recognizable name, all caps, spaces converted to "_", and that starts with "doc". Engine Parameters (Top-level): template...

Click to read more »
Module:IA Citation/data/OTHER/doc
Senin, 2026-03-02 11:58:09

`['docIdoc4']` Use a unique yet recognizable name, all caps, spaces converted to "_", and that starts with "doc". Engine Parameters (Top-level): template...

Click to read more »
Module:IA Citation/data/G/doc
Selasa, 2026-03-03 10:17:46

`['docIdoc4']` Use a unique yet recognizable name, all caps, spaces converted to "_", and that starts with "doc". Engine Parameters (Top-level): template...

Click to read more »
Module:IA Citation/data/N/doc
Senin, 2026-03-02 11:57:50

`['docIdoc4']` Use a unique yet recognizable name, all caps, spaces converted to "_", and that starts with "doc". Engine Parameters (Top-level): template...

Click to read more »
Module:IA Citation/data/E/doc
Selasa, 2026-03-03 09:46:00

`['docIdoc4']` Use a unique yet recognizable name, all caps, spaces converted to "_", and that starts with "doc". Engine Parameters (Top-level): template...

Click to read more »
Module:Weather
Jumat, 2017-03-10 10:22:20

'\n' end local function process_temperature(intext, inunit, swap) --[[ Convert °C to °F or vice versa, assuming the temperature is for a habitable...

Click to read more »
Module:Lua call/doc
Minggu, 2025-12-14 21:53:19

interpreted as strings unless tonumber(value) isn't nil, i.e. numbers should be converted to the numeric type. No effort is made to interpret tables. The parameters...

Click to read more »
Module:OSM Location map/sandbox
Rabu, 2026-05-27 10:03:23

'Q35852' then unitConvert=100 areaUnits = ' '..sqkm -- if its hectares, convert to sq km elseif punit == 'Q232291' then unitConvert = (1/2.59) areaUnits...

Click to read more »
Module:Chessboard mxn/Sandbox
Rabu, 2026-05-27 11:28:17

caption .. '</div></div>' end end function convertFenToArgs( fen ) -- converts FEN notation to an array of positions, offset by 2 ...

Click to read more »
Module:TaxonItalics/sandbox
Rabu, 2025-05-21 17:40:51

itself; prevent the hybrid symbol being treated as -- a 'word' by converting a following space to the HTML entity local italMarker = "''" name...

Click to read more »
Module:Import table/sandbox
Senin, 2023-05-22 17:25:13

ustring.match(val,"%d+%.?%d*") -- extract value, possibly from inside convert template if val then if mw.ustring.upper(mw.ustring.sub(config[cn][3]...

Click to read more »
Module:Table
Minggu, 2025-10-12 09:25:44

else return nil end end --- ---Convert to integer >= 0 --- ---@param input any Input to convert ---@return integer|nil integer Non-negative...

Click to read more »
Module:Sandbox/Innesw/Infobox Australian place-upgrade
Senin, 2025-09-29 18:11:43

-- This is Template:Infobox_Australian_place converted to Lua -- With changes for the proposed upgrade. local p = {} local lframe local infobox =...

Click to read more »
Module:Sports table/WDL
Kamis, 2025-04-24 06:03:07

fa_word_sing, fa_word_plur local hide_for_against = false -- First convert to lower case if it is a string for_against_style = string.lower(for_against_style)...

Click to read more »
Module:Set/doc
Selasa, 2021-11-16 10:03:12

tables contain different values for the same table key, the table value is converted to an array holding all of the different values. For example, for the...

Click to read more »
Module:Birth based on age as of dates
Rabu, 2025-12-24 01:00:32

date_earliest) .. " or " .. os.date("%Y", date_latest) end --then we convert back to a time table to see if the person is past their birthday birthday_earliest...

Click to read more »
Module:Sandbox/SD0001/Chess2
Senin, 2025-01-20 21:26:14

div:addClass('calculator-value-false') end local args = convertFenToArgs( moves[ply] ) for trow = 1,nrows do local...

Click to read more »
Module:Sandbox/Nihiltres/Category manager
Rabu, 2020-01-08 15:19:19

end --Remove category from category list catList[name] = nil end --Converts a category list to a string containing its categories as wikitext function...

Click to read more »
Module:Infobox/utilities
Senin, 2025-11-17 01:00:39

-- parameter values that are emptyspace or only white space are converted to nil local orig_lang_code = args_t[1]; -- 'all of them sensible...

Click to read more »
Module:College color/data
Kamis, 2026-06-04 03:28:59

University Brand Standards Guide |access-date=April 27, 2016}}"}, --RGB converted ["Lasell Lasers"] = {"13294b", "FFFFFF", "69b3e7", name1="navy", name3="blue"...

Click to read more »