Search Results: Module:Parameter names example/doc
Sorry, the article you're looking for isn't specifically available. Here are related topics:
Module:Parameter names example
Rabu, 2018-02-14 05:59:59-- This module implements {{parameter names example}}. local p = {} local function makeParam(s) local lb = '{' local rb = '}' return lb:rep(3)...
Click to read more »Module:Asbox
Sabtu, 2021-01-30 20:55:31WRAPPER_TEMPLATE }), page or mw.title.getCurrentTitle() --Ensures demo parameter will never affect category() output for articles self.demo = self.demo...
Click to read more »Module:ParameterCount
Sabtu, 2017-03-11 00:57:17{{#invoke:ParameterCount|main}} -- Users can specify a list of parameters to check, and a list of Lua -- Ustring patterns to check each parameter against...
Click to read more »Module:Citation/CS1
Minggu, 2022-10-23 22:19:13whitelist = {}; -- table of tables listing valid template parameter names; defined in Module:Citation/CS1/Whitelist --[[--------------------------<...
Click to read more »Module:Template wrapper
Minggu, 2022-10-23 22:19:44local function add_parameter (k, v, args, list) if list then table.insert( args, table.concat ({k, '=', v})); -- write parameter names and values...
Click to read more »Module:Namespace detect/config
Jumat, 2022-01-28 01:50:10-- -- cfg.foo = {'parameter name 1', 'parameter name 2', 'parameter name 3'} -- ---------------------------------...
Click to read more »Module:Category handler/config
Jumat, 2022-01-28 01:49:58handler]] configuration data -- -- Language-specific parameter names and values can be set here. -- -- For blacklist config...
Click to read more »Module:Families/templates
Senin, 2020-04-27 08:06:26fam = args[1] or error("Family code has not been specified. Please pass parameter 1 to the module invocation.") fam = require("Module:families").getByCode(fam)...
Click to read more »Module:Etymology languages/templates
Senin, 2020-04-27 08:06:22or error("Etymology language code has not been specified. Please pass parameter 1 to the module invocation.") etymlang = require("Module:etymology...
Click to read more »Module:Settlement short description
Selasa, 2019-12-17 09:29:15and other checks function p.validate (parameter, cat) if not parameter then return nil end parameter = parameter:gsub('%b()', '') --remove things in brackets...
Click to read more »Module:Authority control
Minggu, 2022-10-23 22:18:48this property-->value before adding it local reqs = {} -- Parameter format: { 'parameter name', 'label', propertyId # in Wikidata, formatting/validation...
Click to read more »Module:Language utilities
Senin, 2020-04-27 08:07:48= args[1] or error("Language code has not been specified. Please pass parameter 1 to the module invocation.") local langinfo = languages[lang] or...
Click to read more »Module:Zh-hanzi-box
Senin, 2020-04-27 08:11:35The first parameter represents the simplified form of an entry. If the characters are the same in both scripts, then only the first parameter is used....
Click to read more »Module:Homophones
Senin, 2020-04-27 08:06:44tostring(i)] if parameter == "" then text = text .. alt else text = text .. m_links.full_link({lang = lang, term = parameter, alt = alt, tr =...
Click to read more »Module:EditAtWikidata
Sabtu, 2017-03-11 01:25:25a local_parameter is not supplied -- i.e. when called from a template, it can be coded not to display the message -- when a local parameter is in use...
Click to read more »Module:StringReplace
Sabtu, 2017-02-25 09:26:56and replace operations on strings. local p = {} -- Takes one string parameter, and returns the string with all characters with special meaning for Lua...
Click to read more »Module:Shortcut/config
Jumat, 2022-01-28 01:50:38The heading at the top of the shortcut box. It accepts the following parameter: -- $1 - the total number of shortcuts. (required) ['shortcut-heading']...
Click to read more »Module:Languages/templates
Senin, 2020-04-27 08:08:20= args[1] or error("Language code has not been specified. Please pass parameter 1 to the module invocation.") lang = require("Module:languages").getByCode(lang)...
Click to read more »Module:File link
Kamis, 2022-01-20 20:04:00'%s' parameter of '_main' (expected string, got %s)", key, type(val) ), level) end end local ret = {} -- Adds a positional parameter to the...
Click to read more »Module:Flags
Minggu, 2013-08-18 02:53:31local master = mw.loadData("Module:Flags/MasterData") -- Assigning the parameter to a flag and a link function p.flag(territory) -- Searching in the...
Click to read more »Module:Category handler
Jumat, 2022-01-28 01:49:57CategoryHandler) -- Set the title object do local pagename = obj:parameter('demopage') local success, titleObj if pagename then success, titleObj...
Click to read more »Module:Namespace detect/data
Jumat, 2022-01-28 01:50:10each default parameter name. -- This allows wikis to customise parameter names in the cfg table while -- ensuring that default parameter names will always...
Click to read more »Module:Pn
Sabtu, 2020-07-04 11:34:21returns one value from a list of unnamed parameters Named parameter idx is the index of the parameter that is to be returned Negative indices count backward...
Click to read more »Module:Location map/data/Scotland East Dunbartonshire/doc
Rabu, 2021-12-22 20:24:29These definitions are used by the following templates when invoked with parameter "Scotland East Dunbartonshire": {{Location map|Scotland East Dunbartonshire |...
Click to read more »Module:Location map/data/Scotland Glasgow/doc
Rabu, 2021-12-22 20:13:03These definitions are used by the following templates when invoked with parameter "Scotland Glasgow": {{Location map|Scotland Glasgow |...}} {{Location...
Click to read more »Module:Location map/data/Scotland South Ayrshire/doc
Kamis, 2022-01-20 19:24:52These definitions are used by the following templates when invoked with parameter "Scotland South Ayrshire": {{Location map|Scotland South Ayrshire |.....
Click to read more »Module:Location map/data/Scotland Clackmannanshire/doc
Kamis, 2022-01-20 20:06:13These definitions are used by the following templates when invoked with parameter "Scotland Clackmannanshire": {{Location map|Scotland Clackmannanshire |...
Click to read more »Module:Location map/data/Scotland West Lothian/doc
Kamis, 2021-12-16 05:14:31These definitions are used by the following templates when invoked with parameter "Scotland West Lothian": {{Location map|Scotland West Lothian |...}} {{Location...
Click to read more »Module:Location map/data/Scotland West Dunbartonshire/doc
Rabu, 2021-12-22 18:01:55These definitions are used by the following templates when invoked with parameter "Scotland West Dunbartonshire": {{Location map|Scotland West Dunbartonshire |...
Click to read more »Module:Location map/data/Scotland Midlothian/doc
Rabu, 2021-12-22 20:27:40These definitions are used by the following templates when invoked with parameter "Scotland Midlothian": {{Location map|Scotland Midlothian |...}} {{Location...
Click to read more »Module:Location map/data/Scotland Dundee/doc
Rabu, 2021-12-22 20:16:12These definitions are used by the following templates when invoked with parameter "Scotland Dundee": {{Location map|Scotland Dundee |...}} {{Location map...
Click to read more »Module:Location map/data/Scotland East Ayrshire/doc
Kamis, 2022-01-20 20:06:27These definitions are used by the following templates when invoked with parameter "Scotland East Ayrshire": {{Location map|Scotland East Ayrshire |...}}...
Click to read more »Module:Location map/data/Scotland North Ayrshire/doc
Selasa, 2021-12-21 19:29:26These definitions are used by the following templates when invoked with parameter "Scotland North Ayrshire": {{Location map|Scotland North Ayrshire |.....
Click to read more »Module:Location map/data/United Kingdom Edinburgh/doc
Selasa, 2021-12-21 19:01:53These definitions are used by the following templates when invoked with parameter "United Kingdom Edinburgh": {{Location map|United Kingdom Edinburgh |...
Click to read more »Module:Location map/data/Europe/doc
Minggu, 2021-02-07 07:20:53These definitions are used by the following templates when invoked with parameter "Europe": {{Location map|Europe |...}} {{Location map many|Europe |.....
Click to read more »Module:Location map/data/Scotland Angus/doc
Selasa, 2021-12-21 19:07:09These definitions are used by the following templates when invoked with parameter "Scotland Angus": {{Location map|Scotland Angus |...}} {{Location map...
Click to read more »Module:Location map/data/Scotland Orkney/doc
Kamis, 2022-01-20 20:03:46These definitions are used by the following templates when invoked with parameter "Scotland Orkney": {{Location map|Scotland Orkney |...}} {{Location map...
Click to read more »Module:Location map/data/United Kingdom Kent/doc
Rabu, 2021-12-22 23:37:45These definitions are used by the following templates when invoked with parameter "United Kingdom Kent": {{Location map|United Kingdom Kent |...}} {{Location...
Click to read more »Module:Location map/data/Scotland East Renfrewshire/doc
Rabu, 2021-12-22 20:04:11These definitions are used by the following templates when invoked with parameter "Scotland East Renfrewshire": {{Location map|Scotland East Renfrewshire |...
Click to read more »Module:Location map/data/Scotland Scottish Borders/doc
Kamis, 2022-01-20 20:07:30These definitions are used by the following templates when invoked with parameter "Scotland Scottish Borders": {{Location map|Scotland Scottish Borders |...
Click to read more »Module:Location map/data/Scotland Shetland/doc
Kamis, 2022-01-20 20:04:02These definitions are used by the following templates when invoked with parameter "Scotland Shetland": {{Location map|Scotland Shetland |...}} {{Location...
Click to read more »Module:Location map/data/Scotland Inverclyde/doc
Rabu, 2021-12-22 20:19:00These definitions are used by the following templates when invoked with parameter "Scotland Inverclyde": {{Location map|Scotland Inverclyde |...}} {{Location...
Click to read more »Module:Location map/data/Scotland Highland/doc
Jumat, 2020-12-25 04:08:38These definitions are used by the following templates when invoked with parameter "Scotland Highland": {{Location map|Scotland Highland |...}} {{Location...
Click to read more »Module:Location map/data/Edinburgh/doc
Jumat, 2021-12-17 05:35:29These definitions are used by the following templates when invoked with parameter "Edinburgh": {{Location map|Edinburgh |...}} {{Location map many|Edinburgh |...
Click to read more »Module:Location map/data/Scotland Fife/doc
Selasa, 2021-12-21 19:12:12These definitions are used by the following templates when invoked with parameter "Scotland Fife": {{Location map|Scotland Fife |...}} {{Location map many|Scotland...
Click to read more »Module:Location map/data/Scotland Sutherland/doc
Jumat, 2020-12-25 04:15:49These definitions are used by the following templates when invoked with parameter "Scotland Sutherland": {{Location map|Scotland Sutherland |...}} {{Location...
Click to read more »Module:Location map/data/Scotland Falkirk/doc
Rabu, 2021-12-22 20:21:20These definitions are used by the following templates when invoked with parameter "Scotland Falkirk": {{Location map|Scotland Falkirk |...}} {{Location...
Click to read more »Module:Location map/data/Scotland South Lanarkshire/doc
Rabu, 2021-12-22 20:07:03These definitions are used by the following templates when invoked with parameter "Scotland South Lanarkshire": {{Location map|Scotland South Lanarkshire |...
Click to read more »Module:Location map/data/Scotland Stirling/doc
Kamis, 2022-01-20 20:05:59These definitions are used by the following templates when invoked with parameter "Scotland Stirling": {{Location map|Scotland Stirling |...}} {{Location...
Click to read more »Module:Location map/data/Scotland Outer Hebrides/doc
Kamis, 2021-12-16 04:53:53These definitions are used by the following templates when invoked with parameter "Scotland Outer Hebrides": {{Location map|Scotland Outer Hebrides |.....
Click to read more »Module:Uk-headword
Senin, 2020-04-27 08:11:26args[1] or error("Part of speech has not been specified. Please pass parameter 1 to the module invocation.") local data = {lang = lang, pos_category...
Click to read more »Module:Pagetype/config
Senin, 2018-04-23 02:44:14'category', 'help', 'portal', 'module', 'book', 'draft' } -- The parameter name to set which default namespace values to be looked up from -- cfg...
Click to read more »Module:Unsubst-infobox
Senin, 2017-07-03 04:42:02parameters', ['$set1'] = 'parameter set 1', ['$set2'] = 'parameter set 2', ['$set3'] = 'parameter set 3', ['$aliases'] = 'parameter aliases', ['$indent']...
Click to read more »Module:Coxeter–Dynkin diagram
Selasa, 2019-12-17 11:29:38-- module to turn a parameter list into a list of [[Coxeter–Dynkin diagram]] images. -- See the template documentation or any example for how it is used...
Click to read more »Module:Columns
Senin, 2020-04-27 08:06:03number of columns, and no columns -- parameter is available on the template. Otherwise, the columns -- parameter is the first available numbered param...
Click to read more »Module:Location map/data/Scotland Dumfries and Galloway/doc
Jumat, 2020-12-25 04:26:17These definitions are used by the following templates when invoked with parameter "Scotland Dumfries and Galloway": {{Location map|Scotland Dumfries and...
Click to read more »Module:Location map/data/Scotland Perth and Kinross/doc
Sabtu, 2021-03-13 06:26:44These definitions are used by the following templates when invoked with parameter "Scotland Perth and Kinross": {{Location map|Scotland Perth and Kinross |...
Click to read more »Module:Location map/data/Scotland Ross an Cromarty/doc
Selasa, 2021-12-21 19:19:35These definitions are used by the following templates when invoked with parameter "Scotland Ross an Cromarty": {{Location map|Scotland Ross an Cromarty |...
Click to read more »Module:Location map/data/Scotland Argyll and Bute/doc
Sabtu, 2021-03-13 06:12:14These definitions are used by the following templates when invoked with parameter "Scotland Argyll and Bute": {{Location map|Scotland Argyll and Bute |...
Click to read more »Module:Navseasoncats/navyear
Kamis, 2020-01-02 12:30:07local displaytext = catname if disp and disp ~= '' then -- use 'disp' parameter, but strip any trailing disambiguator displaytext = mw.ustring.gsub(disp...
Click to read more »Module:Biota infobox/param
Minggu, 2022-10-23 22:23:18in order -- call parameter checking independently of taxobox display function p.main(frame) p._getArgs(frame) return info.parameterCategory end -- get...
Click to read more »Module:Mapframe
Rabu, 2020-07-08 09:38:43modules which require this module are not using globals. -- Template parameter names (unnumbered versions only) -- Specify each as either a single...
Click to read more »Module:Parameters
Senin, 2020-04-27 08:11:01This is for use with lists -- where the first item is a numbered parameter and the -- subsequent ones are named, such as 1, pl2, pl3. if...
Click to read more »Module:Roa-jer-headword
Senin, 2020-04-27 08:11:09category that -- entries go in. However, the two are separate (the "cat" parameter) -- because you sometimes want something to behave as an adjective...
Click to read more »Module:Wd/i18n
Rabu, 2020-07-08 09:42:08["missing-required-parameter"] = "Na required parameters defined, needin at least ane", ["extra-required-parameter"] = "Parameter '$1' maun be defined...
Click to read more »Module:Location map/data/Chile/doc
Minggu, 2020-12-27 05:42:15These definitions are used by the following templates when invoked with parameter "Chile": {{Location map|Chile |...}} {{Location map many|Chile |...}}...
Click to read more »Module:Unsubst
Senin, 2018-06-04 23:35:27BODY_PARAM = '$B' local specialParams = { ['$params'] = 'parameter list', ['$aliases'] = 'parameter aliases', ['$flags'] = 'flags', ['$B'] = 'template...
Click to read more »Module:En-headword
Sabtu, 2020-09-19 13:00:28tostring(poscat) } for parameter, value in pairs(unknown_args) do require "Module:debug".track("en-headword/unknown args/param/" .. tostring(parameter)) mw.log("unknown...
Click to read more »Module:Alternative forms
Senin, 2020-04-27 08:05:571, maxindex do -- If the previous parameter was empty and we're not on the first parameter, -- this parameter and any others contain dialect or other...
Click to read more »Module:Team appearances list
Sabtu, 2017-04-29 09:25:54end error('Parameter ' .. name .. ' is missing') end arg = tonumber(arg) if type(arg) ~= 'number' then error('Parameter ' .. name .. ' is...
Click to read more »Module:R:Perseus
Senin, 2020-04-27 08:05:53if not latin and args[2] and not args[1] then error('Parameter 2 should be placed in parameter 1.') end local title = mw.title.getCurrentTitle()...
Click to read more »Module:Template invocation
Selasa, 2019-12-17 11:15:14title in parameter #1 of function 'name'", 2) end elseif type(title) ~= 'table' or type(title.getContent) ~= 'function' then error("parameter #1 of...
Click to read more »Module:Requested move
Kamis, 2023-11-23 17:20:00-- it is the only parameter used. For single the parameter name is the first -- positional parameter, and for multi the parameter name is "new1". --]]...
Click to read more »Module:Location map/data/Scotland Renfrewshire/doc
Sabtu, 2020-12-26 05:08:17These definitions are used by the following templates when invoked with parameter "Scotland Renfrewshire": {{Location map|Scotland Renfrewshire |...}} {{Location...
Click to read more »Module:Preview warning
Senin, 2018-06-04 02:53:33local p = {} --[[ main This function returns parameter 1 as a warning if the page containing it is being previewed. Usage: {{#invoke:Preview...
Click to read more »Module:Gazette util
Minggu, 2022-10-23 22:23:08Determine the value to be assigned to the specified cs1|2 |page= or |pages= parameter in {{London Gazette}}. The arguments |param=page and |param=pages specify...
Click to read more »Module:Citation/CS1/Suggestions
Selasa, 2019-12-24 08:09:09suggesting the wrong parameter name. For instance, the pattern 'a[utho]+r' matches 'author' in the no-longer-supported parameter |author-separator= so...
Click to read more »Module:Protection banner
Rabu, 2026-02-18 15:57:12_makeEditRequestParameter parameterFuncs.EXPIRY = self._makeExpiryParameter parameterFuncs.EXPLANATIONBLURB = self._makeExplanationBlurbParameter ...
Click to read more »Module:Infobox
Kamis, 2020-10-15 03:06:03preprocessSingleArg(v.prefix) -- Only parse the depend parameter if the prefix parameter is present and not blank. if args[v.prefix] and v.depend...
Click to read more »Module:UserLinks/shared
Senin, 2018-04-23 02:06:50are optional. If a namespace parameter is -- specified it must be a valid key to mw.site.namespaces. The query -- parameter can be a string or a table...
Click to read more »Module:WikidataIdentifiers
Senin, 2017-12-18 01:54:39be returned is passed in named parameter |qual= local qualifierID = frame.args.qual -- Can take a named parameter |qid which is the Wikidata ID for...
Click to read more »Module:CountryData
Kamis, 2017-04-20 12:28:47{}) if bool and string.find(s,"^%{%{ *%{%{%{1") then --Replace parameter delimiters with arbitrary control characters --to avoid clashes if...
Click to read more »Module:WikidataIB
Senin, 2023-02-13 20:06:53use of a blacklist and whitelist for infobox fields -- Can take a named parameter |qid which is the Wikidata ID for the article -- if not supplied, it will...
Click to read more »Module:Namespace detect
Senin, 2017-01-30 09:29:14corresponding subject namespace value if it is -- -- used on a talk page. Parameter names can be configured for different wikis -- -- by altering the values...
Click to read more »Module:Infobox multi-lingual name/data
Sabtu, 2020-02-08 11:25:50--------------------- Table to map |showflags= value to the |labeln= parameter value for {{Infobox}} TODO: convert showflag to a comma delimited list...
Click to read more »Module:Letters
Senin, 2020-04-27 08:08:20close_par) end else letterParameter = linkNoTag(letterParameter, lang, sc) table.insert(list, letterParameter) end else --[[ If script...
Click to read more »Module:Citation/CS1/Configuration
Kamis, 2020-10-15 03:34:35meta parameter key local params = aliases[meta_param]; -- get the parameter or the table of parameters associated with the meta parameter name...
Click to read more »Module:Sl-headword
Senin, 2020-04-27 08:11:20args[1] or error("Part of speech has not been specified. Please pass parameter 1 to the module invocation.") local data = {lang = lang, pos_category...
Click to read more »Module:Location map/data/Scotland Edinburgh/doc
Minggu, 2021-01-31 07:02:34These definitions are used by the following templates when invoked with parameter "Scotland Edinburgh": {{Location map|Scotland Edinburgh |...}} {{Location...
Click to read more »Module:Geor-translit
Sabtu, 2017-03-11 01:21:55style="color: red; font-size: 85%;">Please place Georgian text in the first parameter of {{[[Template:grc-transl|ka-transl]]}}.</span>' else return (mw.ustring...
Click to read more »Module:Biota infobox
Minggu, 2022-10-23 22:23:26require( 'Module:Biota infobox/core' ) -- ######################### PARAMETER HANDLING ############################ local templateArgs = {} -- contains...
Click to read more »Module:Links/templates
Senin, 2020-04-27 08:08:24Wikipedia parameter is set to true. Forward the information to full_link. | Add a language name, linked to Wikipedia if the Wikipedia parameter is set...
Click to read more »Module:Error
Selasa, 2015-08-11 08:39:09passed in directly. args = frame end -- if the message parameter is present but blank, change it to nil so that Lua will -- consider...
Click to read more »Module:TemplatePar
Rabu, 2023-04-19 21:20:37template * parameter too long", tooShort = "Error in template * parameter too short", unavailable = "Error in template * parameter name missing"...
Click to read more »Module:Hu-nominals
Senin, 2020-04-27 08:06:44args[1] or error("Inflection type has not been specified. Please pass parameter 1 to the module invocation") local args = frame:getParent().args if...
Click to read more »Module:Gutenberg
Senin, 2019-12-23 07:57:06id = trimArg(args[1]) or trimArg(args.id) if not id then error("Parameter id is missing. See [[Template:" .. tname .. "]] documentation") else...
Click to read more »Module:Sl-noun
Senin, 2020-04-27 08:11:20nsText == "Template" then stem_noending = "-" else error("1st parameter (stem) has not been specified.") end end if not stem then stem...
Click to read more »Module:Respell
Rabu, 2017-11-01 10:52:06tostring(small) -- For documentation: Disable linking by adding a blank parameter at the end if args[j] ~= '' then ret = string.format('[[Help:Pronunciation...
Click to read more »Module:Webarchive
Minggu, 2022-10-23 22:20:36local-language parameter names to their English equivalents TODO: return error message if multiple aliases of the same canonical parameter name are found...
Click to read more »Module:Unicode data
Kamis, 2025-07-24 17:48:21or errorf(2, "Parameter %s is required", tostring(arg)) local codepoint = tonumber(codepoint_string, 16) or errorf(2, "Parameter %s is not a code...
Click to read more »Module:FindYDCportal
Kamis, 2020-01-02 12:30:41find the most specific portal which actually exists. Takes one parameter, which must be either a year (e.g. "1879", "1123") or a decade (e.g...
Click to read more »Module:Fi-nominals
Senin, 2020-04-27 08:06:26args[1] or error("Inflection type has not been specified. Please pass parameter 1 to the module invocation") local args = frame:getParent().args if...
Click to read more »Module:Dsb-headword
Senin, 2020-04-27 08:06:09args[1] or error("Part of speech has not been specified. Please pass parameter 1 to the module invocation.") local genders = {} local inflections...
Click to read more »Module:Grc-utilities
Senin, 2020-04-27 08:06:38")) .. " || " .. err else error("Provide text to tokenize in first parameter.") end end --[=[ Places diacritics in the following order: 1. breathings...
Click to read more »Module:NUMBEROF
Kamis, 2023-09-07 04:56:00arg = mw.text.trim(arg or '') if arg == '' then if i then error('Parameter ' .. i .. ' is missing. See template documentation') end return nil...
Click to read more »Module:Es-conj
Senin, 2020-04-27 08:06:11local parameter = paradigm .. "_" .. aspect .. "_" .. k2 if (result[parameter]) then result[parameter] = result[parameter] .. ',' .....
Click to read more »Module:Pt-headword
Senin, 2020-04-27 08:11:06args[1] or error("Part of speech has not been specified. Please pass parameter 1 to the module invocation.") local data = {lang = lang, pos_category...
Click to read more »Module:Effective protection expiry
Kamis, 2022-12-29 06:19:19'move' and action ~= 'create' and action ~= 'upload' then error( 'First parameter must be one of edit, move, create, upload, autoreview', 2 ) end local...
Click to read more »Module:Category relatit
Jumat, 2020-10-23 03:30:06getSequenceLength(args) if nLinks < 1 then return makeWikitextError('at least one parameter required') end local yesno = require('Module:Yesno') local makeCategoryLink...
Click to read more »Module:String
Jumat, 2022-01-28 01:50:39error. An error is also generated if no match is found. If one adds the parameter ignore_errors=true, then the error will be suppressed and an empty string...
Click to read more »Module:Lang/sandbox
Minggu, 2022-10-23 22:19:28both cases the 'other' sense (and non-sense) is not accepted and the parameter is treated as if it were not set in the template. Sets args.nocat to...
Click to read more »Module:Redirect hatnote
Sabtu, 2017-10-28 02:50:21error if a redirect parameter is missing. if not args[i] then return mHatnote.makeWikitextError( 'missing redirect parameter', 'Template:Redirect#Errors'...
Click to read more »Module:Singles
Selasa, 2017-08-01 01:14:37if not frame.args['$B'] then error( '{{#invoke:Singles|}} requires parameter $B (template content)' ) end if mw.isSubsting() then ---- substing...
Click to read more »Module:Pagelist
Sabtu, 2014-01-18 06:14:45else return pageObject end end -- Process the separator parameter. local function getSeparator( sep ) if sep and type(sep) == 'string'...
Click to read more »Module:Fr-headword
Senin, 2020-04-27 08:06:33args[1] or error("Part of speech has not been specified. Please pass parameter 1 to the module invocation.") local params = { ["head"] = {list =...
Click to read more »Module:Infobox multi-lingual name
Minggu, 2022-10-23 22:22:35support translit / transcription parameter(s) every child infobox should have a literal meaning parameter revise parameter names to be IETF language code...
Click to read more »Module:Pagetype
Senin, 2018-04-23 02:43:31Gets the pagetype from a class specified from the first positional -- parameter. param = yesno(param, param) if param ~= false then -- No check if specifically...
Click to read more »Module:Protection banner/config
Kamis, 2022-12-29 06:19:20These are specified -- using ${TEXTLIKETHIS} (a dollar sign preceding a parameter name -- enclosed in curly braces). -- -- Available...
Click to read more »Module:Lang
Minggu, 2022-10-23 22:19:23both cases the 'other' sense (and non-sense) is not accepted and the parameter is treated as if it were not set in the template. Sets args.nocat to...
Click to read more »Module:Compound/templates
Senin, 2023-03-27 01:26:54args["lang"] then error('The |lang= parameter is not used by this template. Place the language code in parameter 1 instead.') end local lang = allow_compat...
Click to read more »Module:WPSHIPS utilities
Minggu, 2022-10-23 22:24:15message, the original parameter value and, if appropriate a category. The error message precedes the existing value of the parameter. If the first non-whitespace...
Click to read more »Module:Coordinates
Minggu, 2022-10-23 22:18:54{{#invoke:Coordinates | coord2text | {{Coord}} | parameter }} Valid values for the second parameter are: lat (signed integer), long (signed integer)...
Click to read more »Module:Infobox3cols
Selasa, 2016-08-23 00:02:58preprocessSingleArg(v.prefix) -- Only parse the depend parameter if the prefix parameter is present and not blank. if args[v.prefix] and v...
Click to read more »Module:Pi-headword
Senin, 2020-04-27 08:11:02args[1] or error('Part of speech has not been specified. Please pass parameter 1 to the module invocation.') local data = {lang = lang, sc = currentScript...
Click to read more »Module:Ru-headword
Senin, 2020-04-27 08:11:11used) uses the entry point noun_multi(). When calling show(), the first parameter of the #invoke call is the part of speech. Other parameters are taken...
Click to read more »Module:Armenian
Rabu, 2017-04-26 05:41:40number is the first positional -- argument. If not, it is the frame parameter. local num if frame == mw.getCurrentFrame() then num =...
Click to read more »Module:Citation/CS1/Utilities
Kamis, 2020-10-15 01:12:54markup frame can be empty like (()) to distinguish an empty template parameter from the specific condition "has no applicable value" in citation-context...
Click to read more »Module:TimeAgo
Selasa, 2016-06-21 23:49:55Add a purge link if something (usually "yes") is entered into the purge parameter if purge then purge = ' <span class="plainlinks">([' .. mw.title...
Click to read more »Module:Wikidata
Senin, 2020-09-28 23:19:08if parameter and string.find(parameter, '$lat', 1, true) and string.find(parameter, '$lon', 1, true) then local ret = mw.ustring.gsub(parameter, '$l[ao][tn]'...
Click to read more »Module:Val
Minggu, 2018-02-18 08:42:20if which == 'e' then description = 'exponent parameter (<b>e</b>)' else description = 'parameter ' .. which end return description .. ' ' ....
Click to read more »Module:Catalog lookup link
Minggu, 2022-10-23 22:22:13list item instead of the default whitespace which is added without this parameter. This may be necessary if |list-separator= is used not only to define...
Click to read more »Module:Navseasoncats
Jumat, 2020-01-03 10:35:20[[Category:Navseasoncats uisin cat parameter]]' '', -- [2] placeholder for [[Category:Navseasoncats uisin testcase parameter]]' '', -- [3] placeholder for...
Click to read more »Module:Iucn
Minggu, 2022-10-23 22:24:46these parameters. returns seven values: identifyier parts (or nil when parameter not used) and a message (nil on success, error message else) the identifier...
Click to read more »Module:Ro-headword
Senin, 2020-04-27 08:11:08args[1] or error("Part of speech has not been specified. Please pass parameter 1 to the module invocation.") local params = { ["head"] = {}, ["suff"]...
Click to read more »Module:TNT
Minggu, 2025-12-28 01:06:08<!-- optional parameter --> -- -- -- The "doc" function will generate the <templatedata> parameter documentation for templates. --...
Click to read more »Module:Labels/templates
Sabtu, 2020-09-19 03:06:19not been specified. Please provide it to the template using the first parameter.") end end lang = require("Module:languages").getByCode(lang) or...
Click to read more »Module:Languages
Senin, 2023-03-06 07:19:41param = ordinal .. ' parameter' elseif paramType == "string" then param = 'parameter "' .. param .. '"' else error("The parameter name is " .. (paramType...
Click to read more »Module:Convert
Rabu, 2020-09-02 02:10:55for Module:Val to look up a unit. -- Parameter unitcode must be a string to identify the wanted unit. -- Parameter options must be nil or a table with...
Click to read more »Module:Script utilities
Senin, 2020-04-27 08:11:15and "und") or error("Language code has not been specified. Please pass parameter 1 to the template.") lang = require("Module:languages").getByCode(lang)...
Click to read more »Module:Citation/CS1/Date validation
Kamis, 2020-10-15 01:12:54happens, the date parameter is (DEBUG: not?) used in the COinS metadata and the CITEREF identifier gets its year from the year parameter if present otherwise...
Click to read more »Module:Rhymes
Senin, 2023-03-27 01:39:17and "und") or error("Language code has not been specified. Please pass parameter 1 to the template.") lang = require("Module:languages").getByCode(lang)...
Click to read more »Module:British regnal year
Rabu, 2017-04-26 05:42:18year is the first positional -- argument. If not, it is the frame parameter. local inputYear if frame == mw.getCurrentFrame() then ...
Click to read more »Module:Language
Minggu, 2022-10-23 22:24:19-- A three- or two-letter lowercase sequence at beginning of first parameter languageCode = find(codes, "^%s*%a%a%a?") and ( match(codes,...
Click to read more »Module:Es-headword
Senin, 2020-04-27 08:06:15args[1] or error("Part of speech has not been specified. Please pass parameter 1 to the module invocation.") local params = { ["head"] = {list =...
Click to read more »Module:Transclusion count
Kamis, 2022-12-29 06:19:21fetch(frame) local template = nil local return_value = nil -- Use demo parameter if it exists, otherswise use current template name local namespace =...
Click to read more »Module:Utilities
Senin, 2020-04-27 08:11:31return "" end error("Language code has not been specified. Please pass parameter 1 to the template.") end local lang = require("Module:languages")...
Click to read more »Module:Location map/multi
Minggu, 2022-10-23 22:20:53local marks = {} local markhigh if args.markhigh then mw.log('Removed parameter markhigh used.') local parent = frame:getParent() if parent then ...
Click to read more »Module:Pt-noun
Senin, 2020-04-27 08:11:06plural of [[example]] (qualifier)"). If the plural is not -- present as a parameter, [[Module:pt-plural]] is used to automatically figure -- it out from the...
Click to read more »Module:Video gemme wikidata
Jumat, 2017-08-11 00:06:43nil; end; function p.setDateFormat(iDf) -- Check for a date format parameter. Default to mdy if missing. if(iDf ~= nil and iDf ~= "") then df =...
Click to read more »Module:Wikipedia
Sabtu, 2020-09-19 04:11:28or args["dab"])) and "[[Category:Wt/sco/wikipedia wi redundant first parameter]]" or "") .. "</div>" end end function export.projectlink(frame)...
Click to read more »Module:Form of/cats
Senin, 2020-04-27 08:06:29"lang": the structure describing the language (usually the first parameter); "tags": the list of tags (canonicalized to their full forms); "term":...
Click to read more »Module:Etymology/templates
Sabtu, 2020-09-19 07:19:07local function fetch_lang(lang, parameter) return m_languages.getByCode(lang) or m_languages.err(lang, parameter) end local function fetch_source(code...
Click to read more »Module:Age
Kamis, 2018-05-31 13:57:06text:match('(%S.-)%s*$') end return text end local function yes(parameter) -- Return true if parameter should be interpreted as "yes". -- Do not want to accept...
Click to read more »Module:Protected edit request
Rabu, 2014-02-19 07:07:51'The edit may be made by any %s. ' .. [[Remember to change the %s parameter to "'''yes'''" when the request has been accepted, rejected or on hold...
Click to read more »Module:Automated taxobox
Minggu, 2022-10-23 22:23:22youngestFossil) -- use the base page name as the taxon if the taxon parameter is missing local currentPagename = mw.title.getCurrentTitle() if pagename...
Click to read more »Module:Taxonbar/conf
Selasa, 2019-07-09 03:33:16local p = {} --Database entry format: { parameter name, label to display, propertyId in Wikidata or URL } -- ---------------------------------------...
Click to read more »Module:Pi-decl/noun
Senin, 2020-04-27 08:11:02"ᩔ") term = gsub(term, 'Ⓙ', '') term2 = term else error('Parameter aa has undefined value "'..aa..'".') end if term ~= term2 then table...
Click to read more »Module:Ja-headword
Senin, 2020-04-27 08:06:48error("No kana detected in the unnamed parameters, |hira= and |kata= parameter. See template documentation for details.") end -- go through args and...
Click to read more »Module:Nl-headword
Senin, 2020-04-27 08:08:28category that -- entries go in. However, the two are separate (the "cat" parameter) -- because you sometimes want something to behave as an adjective without...
Click to read more »Module:Type in location
Senin, 2018-06-04 03:11:13--return last two entries seperated by commas end end --validate type parameter function p.validateTyp (typ, args) checkpatterns = args['check-patterns']...
Click to read more »Module:Citation
Jumat, 2014-04-18 20:48:59parameter has led -- to several cases of a spurious dot ". ." because the original -- design had treated the title as a mandatory parameter...
Click to read more »Module:ISO 3166
Kamis, 2020-10-15 03:12:42return catnocountry, '<span style="font-size:100%" class="error">"No parameter for the country given"</span>' end if not args[2] then ...
Click to read more »Module:Infobox road/locations
Rabu, 2018-03-07 15:11:22return nil end end local function cities(args, country, parameter) local data = {USA = "yes", default = "no"} local yesOrNo = data[country]...
Click to read more »Module:Form of/templates
Senin, 2020-04-27 08:06:32list of either bare parameter names or specifications of the form "PARAM:list" to specify that the parameter is a list parameter. def=, def2=, ...: ...
Click to read more »Module:IPA/templates
Senin, 2020-04-27 08:05:49["n"] = {list = true, allow_holes = true}, ["lang"] = {}, -- This parameter is not used and does nothing, but is allowed for futureproofing. } ...
Click to read more »Module:Debug
Senin, 2020-04-27 08:06:08insert(arg_list, ("|%s=%s"):format(arg, value)) end mw.log( ("Unrecognized parameter%s in {{%s}}: %s."):format( arg_list[2] and "s" or "", template_name...
Click to read more »Module:Autovirusbox
Minggu, 2022-10-23 22:24:37if autoTaxonType == 'ERROR' then name = '<span class="error">ERROR: parameter(s) specifying taxon are incorrect; see [[Template:Virusbox/doc#Usage|...
Click to read more »Module:Message box
Selasa, 2025-07-15 09:49:30args.demospace and args.demospace ~= '' then -- implement demospace parameter of mbox local demospace = string.lower(args.demospace) if DEMOSPACES[demospace]...
Click to read more »Module:Et-nominals
Senin, 2020-04-27 08:06:16args[1] or error("Inflection type has not been specified. Please pass parameter 1 to the module invocation") local args = frame:getParent().args if...
Click to read more »Module:Effective protection level
Kamis, 2022-01-20 20:04:00and action ~= 'upload' and action ~= 'undelete' then error( 'First parameter must be one of edit, move, create, upload, undelete, autoreview', 2 )...
Click to read more »Module:Episode list
Minggu, 2015-11-08 07:52:44OriginalAirDate,AltDate,ProdCode, Viewers,Aux4,return_table -- Need just this parameter removed if blank, no others if args.ShortSummary then if not args...
Click to read more »Module:IrelandBiCoontyCatNav
Sabtu, 2018-05-12 23:09:26local displaytext if (disp ~= "") and (disp ~= nil) then -- use 'disp' parameter, but strip any trailing disambiguator displaytext = mw.ustring.gsub(disp...
Click to read more »Module:Sports table
Minggu, 2022-10-23 22:19:49do N_teams = N_teams+1 -- Sneakily add it twice to the team_list parameter, once for the actual -- ranking, the second for position lookup in sub-tables...
Click to read more »Module:Hms
Senin, 2017-07-03 04:45:15tonumber(args[1]) or args[2] or args[3] then if args[4] then return p._error('Parameter number 4 should not be specified') end if not args[1] or args[1] ==...
Click to read more »Module:Redirect
Jumat, 2022-01-28 01:50:33page link. -- -- Returns page name as plain text, or when the bracket parameter is given, as a -- page link. Returns an error message when page does not...
Click to read more »Module:Ja-kanjitab
Senin, 2020-04-27 08:06:49local single_kanji = "" -- hold a reading passed from the first unnamed parameter local reading = "" local actual_reading = "" local okurigana = "" ...
Click to read more »Module:Gallery
Selasa, 2019-12-17 11:36:57insert(tracking, '[[Category:Pages using gallery with the captionstyle parameter]]') end else -- invalid local vlen = mw.ustring.len(k) k...
Click to read more »Module:Hatnote
Sabtu, 2020-10-03 05:17:02the link by default. To skip colon -- trimming, set the removeColon parameter to false. checkType('findNamespaceId', 1, link, 'string') checkType('findNamespaceId'...
Click to read more »Module:Vep-nominals
Senin, 2020-04-27 08:11:32args[1] or error("Inflection type has not been specified. Please pass parameter 1 to the module invocation") local args = frame:getParent().args if...
Click to read more »Module:Gapnum
Rabu, 2016-04-13 03:24:20{wrappers = 'Template:Gapnum'}) local n = args[1] if not n then error('Parameter 1 is required') elseif not tonumber(n) and not tonumber(n, 36) then --...
Click to read more »Module:Headword
Sabtu, 2023-04-08 08:22:19categories, data.lang:getCanonicalName() .. " terms with redundant head parameter") end end data.heads[i] = head end --[[ Try to detect the...
Click to read more »Module:Random
Kamis, 2014-06-05 20:18:52relevant if the |same= parameter is set. cfg.lowTraffic = false -- If cfg.lowTraffic is set to true, and the |same= parameter is set, this value is used...
Click to read more »Module:Lb-headword
Senin, 2020-04-27 08:08:20args[1] or error("Part of speech has not been specified. Please pass parameter 1 to the module invocation.") local data = {lang = lang, pos_category...
Click to read more »Module:Location map
Rabu, 2023-03-01 08:34:39decimal = decimal * multiplier end return decimal end -- Finds a parameter in a transclusion of {{Coord}}. local function coord2text(para,coord)...
Click to read more »Module:Wd
Rabu, 2020-07-08 09:39:07required parameter has been defined if not next(root.req) then throwError("missing-required-parameter") end -- make sure that the separator parameter "%s"...
Click to read more »Module:Lang/data
Kamis, 2020-10-15 02:38:04standard 'NO_STD' is a construct to allow for the cases when no |std= parameter value is provided. ]] local translit_title_table = { ['ahl'] = { ...
Click to read more »Module:Section link
Minggu, 2022-10-23 22:23:54in pairs(args) do -- replace underscores in the positional parameter values if 'number' == type(k) then if not yesno (args['keep-underscores'])...
Click to read more »Module:Geobox map
Rabu, 2017-04-26 02:13:40return f['width'] / f['height'] else return 1 end end -- Finds a parameter in a transclusion of {{Coord}}. local function coord2text(para,coord)...
Click to read more »Module:WikidataCoord
Minggu, 2022-10-23 22:21:50-- coordinate parameters are in second unnammed positional parameter if is_set (lat_long[5]) then -- set when args[1] format is...
Click to read more »Module:Transcluder
Jumat, 2026-02-06 21:33:43["|"]="@@:@@", ["="]="@@_@@"}) ) end for parameter in mw.text.gsplit(params, '|') do parts = mw.text.split(parameter, '=') key = mw.text.trim(parts[1])...
Click to read more »Module:Webarchive/data
Kamis, 2020-07-09 07:30:58O N A L I Z A T I O N >------------------ this table holds tables of parameter names and their non-English aliases. In the enum_params table '#' is...
Click to read more »Module:Pt-adjectives
Senin, 2020-04-27 08:11:05getCurrentTitle().nsText == "Template" and "{{{1}}}"); if not base then error("Parameter 1 (base stem) may not be empty.") end local infl_type = args[2] or (mw...
Click to read more »Module:Ca-headword
Senin, 2020-04-27 08:06:01args[1] or error("Part of speech has not been specified. Please pass parameter 1 to the module invocation.") local params = { ["head"] = {list =...
Click to read more »Module:Number list
Senin, 2020-04-27 08:08:29and "und") or error("Language code has not been specified. Please pass parameter 1 to the template.") local sc = args["sc"]; local headlink = args["headlink"]...
Click to read more »Module:Zh
Minggu, 2022-10-23 22:22:48semicolon and space else --no named parameters; see if there's a first parameter, ignoring its name if (args[1]) then -- if there is treat it as Chinese...
Click to read more »Module:Gridiron color
Senin, 2019-11-04 13:49:54end end if year and year > 0 then --code for handling year parameter colors = get_year(color_data[team], year) else colors = color_data[team]...
Click to read more »Module:Sv-nouns
Senin, 2020-04-27 08:11:21args[1] or error("Inflection type has not been specified. Please pass parameter 1 to the module invocation") local args = frame:getParent().args if...
Click to read more »Module:Pl-IPA
Senin, 2020-04-27 08:11:03. mw.title.getCurrentTitle().fullText .. "/") end -- add language parameter if not ipa_args["lang"] then ipa_args["lang"] = "pl" end -- allow...
Click to read more »Module:Currency
Minggu, 2022-10-23 22:24:55upper case end if args[3] then -- this is the |first= parameter TODO: make this value meaningful? y, yes, true? long_form = true; ...
Click to read more »Module:Autotaxobox
Minggu, 2022-10-23 22:21:34|always_display= |link_target=value of 'link' parameter in taxonomy template |link_text=value of parameter 2 in taxonomy template |same_as= }}...
Click to read more »Module:Ro-adjective
Senin, 2020-04-27 08:11:08valid = true end end if not valid then error("The parameter \"" .. arg .. "\" is not used by this template.") end end end local...
Click to read more »Module:Links
Senin, 2023-03-06 07:20:09findBestScript(data.alt or data.term, data.lang) else -- Track uses of sc parameter local best = require("Module:scripts").findBestScript(data.alt or data...
Click to read more »Module:SportsRankings
Minggu, 2022-10-23 22:22:43local country = templateArgs[2] -- country name or county code passed as parameter local rank, move if string.len( country) == 3 then -- if...
Click to read more »Module:Year in various calendars
Senin, 2018-05-07 13:11:31First, see if the year parameter is a number. self.year = yearNum elseif yearBC then -- Second, see if the year parameter is a "yyyy BC" string. ...
Click to read more »Module:Complex date
Senin, 2023-02-13 21:49:35style="background-color:red;">Error in [[Module:Complex date]]: input parameter "%s" is not recognized.</span>', operation or 'nil') return '' end...
Click to read more »Module:Category described in year
Minggu, 2022-10-23 22:23:29local parentArg = frame:getParent().args[1] --accept 1 unnamed category parameter if not in category namespace; required for testing/doc/etc. purposes ...
Click to read more »Module:Citation/CS1/COinS
Kamis, 2020-10-15 01:12:53N U P >---------------------------------------------------- Cleanup parameter values for the metadata by removing or replacing invisible characters...
Click to read more »Module:Hatnote list
Sabtu, 2020-10-03 05:14:07> maxArg then maxArg = k end end -- Structure the data out from the parameter list: -- * forTable is the wrapper table, with forRow rows -- * Rows...
Click to read more »Module:Portal
Jumat, 2019-12-20 08:40:54default. -- It is disabled if any of the following is true -- 1/ the parameter "tracking" is set to 'no, 'n', or 'false' -- 2/ the current page fails...
Click to read more »Module:WikitextParser
Rabu, 2026-02-11 21:55:10Required. Wikitext of the template to parse. -- @return Map from parameter names to parameter values, NOT IN THE ORIGINAL ORDER. -- @return Order in which...
Click to read more »Module:Infobox military conflict
Minggu, 2022-10-23 22:22:29'{{{place}}}') -- hack so that people who don't know Lua know that this parameter is required :done() if self.args.coordinates then builder:wikitext('<br...
Click to read more »Module:Sidebar
Minggu, 2022-10-23 22:19:53tostring(root) .. (child and '[[Category:Pages uisin sidebar wi the child parameter]]' or '') end function p.collapsible(frame) local args = getArgs(frame)...
Click to read more »Module:Infobox school tracking
Rabu, 2018-04-18 23:06:20local t = mw.text.split(v, '=') table.insert(warnmsg, 'Unknown parameter <code>' .. t[1] .. '</code> ' .. t[2]) cats = cats .. '[[Category:Pages...
Click to read more »Module:UserLinks/config
Sabtu, 2018-02-17 15:19:56because no username was specified, or because the user used a -- positional parameter and their username contains an equals sign, -- e.g. {{user|John=Smith}}...
Click to read more »Module:Routemap
Senin, 2018-05-07 01:03:44local i18n = { errors = { ["parameter-missing"] = "Missing parameter!", ["collapsible-block-not-closed"] = "Collapsible section not closed properly...
Click to read more »Module:Pl-noun
Senin, 2020-04-27 08:11:04{} if not cols or not cols[1] then error("make_table: invalid cols parameter") end local lemma_key = cases[1].key .. cols[1].key local lemma =...
Click to read more »Module:Form of
Minggu, 2020-11-01 12:28:51TAG is a single grammatical item, as specified in a single numbered parameter of {{inflection of}}. Examples are 'masculine', 'nominative', or 'first-person'...
Click to read more »Module:Citation/CS1/Identifiers
Kamis, 2020-10-15 01:12:54= 1576022400 biorxiv_date is the date provided in those |biorxiv= parameter values that are dated at time 00:00:00 UTC today is the current date at...
Click to read more »Module:College color
Minggu, 2018-03-25 06:17:17do if not tostring(v):match('^%x%x%x%x%x%x$') then problems('Parameter [' .. i .. '] should be a 6-hex-digit color but is "' .. tostring(v) ...
Click to read more »Module:Biota infobox/core
Minggu, 2022-10-23 22:23:15templateStyle( frame, src ) .. output .. info.parameterCategory -- .. (info.parameterCategory or "") end -- End the main function....
Click to read more »Module:Subject bar
Selasa, 2019-12-17 11:18:44default. -- It is disabled if any of the following is true -- 1/ the parameter "tracking" is set to 'no, 'n', or 'false' -- 2/ the current page fails...
Click to read more »Module:Japanese calendar
Rabu, 2017-04-26 05:45:37class="error">[[Module:Japanese calendar]] error: you can only specify one parameter out of "next", "previous" and "old".</strong>' elseif args.next...
Click to read more »Module:Ru-adjective
Senin, 2020-04-27 08:11:09already have stress, since we require that the base stem form -- (parameter 2) have stress in it whenever any case form has -- stem stress...
Click to read more »Module:Archive list
Sabtu, 2018-02-17 15:13:38start else return 1 end end -- Process the separator parameter. local function getSeparator( sep ) if sep and type(sep) == 'string'...
Click to read more »Module:Taxonbar
Minggu, 2022-10-23 22:23:12tFroms, b/c Lua local categories = { '[[Category:Taxonbars withoot from parameter]]', '[[Category:Taxonbars desynced frae Wikidata]]', '', -- [3] placeholder...
Click to read more »Module:Ru-noun
Senin, 2020-04-27 08:11:12word_info[2]}) end -- We need to start the recursion with the second parameter containing -- one blank element rather than no elements, otherwise no...
Click to read more »Module:Country alias
Jumat, 2018-02-16 11:24:23function yes(parameter) -- Return true if parameter should be interpreted as "yes". return ({ y = true, yes = true, on = true })[parameter] end local...
Click to read more »Module:Citation/CS1/Whitelist
Kamis, 2020-10-15 01:12:54are listed here. Keys in this table are the template's CitationClass parameter value Same conventions for true/false/nil as above. ]] local unique_arguments...
Click to read more »Module:Transclusion count/data/S
Kamis, 2022-12-29 06:19:21["Speciesbox/getSpecies"] = 271000, ["Speciesbox/name"] = 271000, ["Speciesbox/parameterCheck"] = 271000, ["Speciesbox/trim"] = 271000, ["Specieslist"] = 4900...
Click to read more »Module:Dts
Jumat, 2017-05-26 04:37:27math.floor(self.addkey) ~= self.addkey then error("the 'addkey' parameter must be an integer between 0 and 9999", 0) end end -- Set whether...
Click to read more »Module:Userbox
Sabtu, 2017-03-11 05:25:02page) -- Gets categories from [[Module:Category handler]]. -- The page parameter makes the function act as though the module was being called from that...
Click to read more »Module:Math
Sabtu, 2021-03-13 06:12:281000000000)) -- math.random will throw an error if given an explicit nil parameter, so we need to use if statements to check the params. if first and second...
Click to read more »Module:Navbox
Jumat, 2022-01-28 01:50:22getCurrentFrame() -- This is a lambda so that it doesn't need the frame as a parameter local function add_user_styles(templatestyles) if templatestyles and...
Click to read more »Module:Clade
Minggu, 2022-10-23 22:21:39necessary, but keep for backward compatibility -- test using image parameter local image = pargs['image'..tostring(childNumber)] or "" if...
Click to read more »Module:Links2
Sabtu, 2020-09-19 04:13:17findBestScript(data.alt or data.term, data.lang) else -- Track uses of sc parameter local best = require("Module:scripts").findBestScript(data.alt or data...
Click to read more »Module:Lang/utilities
Minggu, 2022-10-23 22:22:07formatting{} local param_weight = {8, 4, 2, 1}; -- binary parameter weights: [1] = english (8), [2] = japanese (4), [3] = romaji (2), [4]...
Click to read more »Module:Internet Archive
Sabtu, 2017-03-11 01:36:36-- When using template outside main article space, the 'name' parameter is required (not optional) if not name then name = mw.title.getCurrentTitle()...
Click to read more »Module:RoundN
Rabu, 2018-06-27 12:32:48nilAsTab) }, canvas = {--Merges all cells in node. Content will be the next parameter. main = function(x) local h = p.getNodeFunc() if m.available then...
Click to read more »Module:Infobox gene
Minggu, 2018-06-03 13:56:15nil then return_val = "" end local sep = " " --could ad as input parameter if need be if entity and entity.claims then claims = entity.claims[propertyID]...
Click to read more »