Search results

  • Module:Citation/CS1 (category Templates using TemplateStyles)
    then name_list[#name_list-2] = cfg.presentation.sep_nl_and; -- replace last separator with 'and' text else name_list[#name_list-2] = cfg.presentation...
    209 KB (29,658 words) - 16:23, May 4, 2023
  • Help:Citation Style 1 (category Citation Style 1 templates) (section Auto-formatting citation template dates)
    of CS1 and are not compliant with the CS1 style. There are also a number of templates that use one of the general use templates as a meta-template to cite...
    65 KB (9,464 words) - 19:52, September 2, 2020
  • parameter, e.g. from the list of frame arguments, -- and makes "false", "no", and "0" into the (boolean) false -- it makes the empty string and nil into the (boolean)...
    135 KB (17,493 words) - 19:47, August 21, 2020
  • result = result and is_valid_date (year, month, day2); elseif 0 ~= year and 0 ~= month and 0 ~= day and 0 == year2 and 0 ~= month2 and 0 ~= day2 then...
    62 KB (9,817 words) - 16:23, May 4, 2023
  • uncategorized_subpages, templates_using_volume = templates_using_volume, templates_using_issue = templates_using_issue, templates_not_using_page = templates_not_using_page...
    95 KB (12,388 words) - 16:23, May 4, 2023
  • xAxisTitle and yAxisTitle: captions of the x and y axes xAxisMin, xAxisMax, yAxisMin, and yAxisMax: minimum and maximum values of the x and y axes (not...
    11 KB (1,356 words) - 21:54, August 29, 2020
  • local list_and_num = format(cfg.arg.list_and_num, listnum) local listText = args[list_and_num] local oddEven = cfg.marker.oddeven if listText:sub(1...
    17 KB (2,482 words) - 16:23, May 4, 2023
  • Module:Message box (category Templates using TemplateStyles)
    'string' and mainCat allCat = type(allCat) == 'string' and allCat if mainCat and date and date ~= '' then local catTitle = string.format('%s %s %s'...
    18 KB (2,367 words) - 14:10, October 23, 2022
  • Module:Graph (category Graph, chart and plot templates)
    true) for i = 1, #list do list[i] = mw.ustring.gsub(mw.text.trim(list[i]), "<COMMA>", ",") end return list end local function isTable(t) return type(t)...
    43 KB (5,510 words) - 16:23, May 4, 2023
  • Help:Footnotes (category Wikipedia pages with incorrect protection templates) (section List-defined references)
    reference list, add {{reflist}} wherever the list is desired. Once the page is published and viewed, the footnotes will be automatically generated and numbered...
    30 KB (3,025 words) - 20:04, October 13, 2020
  • Return the formatted string return mw.text.listToText(list, separator .. s, conjunction) end --DRY function function p.conjList (conj, list, fmt) return...
    7 KB (914 words) - 14:10, October 23, 2022
  • add_to_list (ietf_list, name_list, override, code, name); -- add to main ietf list for |list=ietf add_to_list (ietf_list2, name_list, override...
    58 KB (8,323 words) - 13:25, October 24, 2022
  • namedArgs end local function makeWrapper(funcName) -- Processes external arguments and sends them to the other functions. return function (frame) -- If...
    6 KB (891 words) - 19:51, August 21, 2020
  • >-------------------------------------------- gets a list of the templates from table t ]] local function template_list_get (t) local out = {}; --...
    14 KB (1,682 words) - 16:23, May 4, 2023
  • generalCommands, generalCommand) -- main function that is supposed to be used by wrapper templates function p.main(frame) if not mw.wikibase then return...
    67 KB (8,869 words) - 15:02, October 24, 2022
  • override', } function p.main(frame, body) -- If we are substing, this function returns a template invocation, and if -- not, it returns the template body. The...
    4 KB (605 words) - 17:31, October 11, 2021
  • currentTitle.namespace == 0 and not mhOptions.selfref and redirTitle and redirTitle.namespace ~= 0 then -- We are on a mainspace page, and the hatnote starts...
    4 KB (490 words) - 22:15, September 11, 2021
  • property is qualified as being in English. local function isEnglish(prop) local ret = quickPcall(function () for i, lang in ipairs(prop.qualifiers.P3001)...
    5 KB (657 words) - 20:41, May 21, 2023
  • return images end function p._displayAll(portals, args) -- This function displays all portals that have portal images. This function is for maintenance...
    13 KB (1,951 words) - 19:51, August 21, 2020
  • '[[Category:List templates with deprecated parameters]]' end return ret end function p.makeList(listType, args) if not listType or not listTypes[listType]...
    5 KB (761 words) - 23:35, April 16, 2023
  • trackingCategories list. --- @param sortKey string The key by which to sort the page in the category. local function getTrackingCategoryFromList(typeName, useTrackingList...
    21 KB (2,630 words) - 23:42, April 16, 2023
  • modules[1] and categories[modules[1]] category = category or 'Lua-based templates' end cats[#cats + 1] = category protCatName = "Templates using...
    4 KB (479 words) - 14:10, October 23, 2022
  • if args['caption'] == "" then while #caption_list < #map do caption_list[#caption_list + 1] = args['caption'] end else for caption...
    20 KB (2,820 words) - 19:39, August 21, 2020
  • Help:CS1 errors (category Wikipedia pages with incorrect protection templates) (section Error and maintenance messages)
    The |format= and |...-format= value is always displayed. The list of |...-format= parameters is: |archive-format=, |article-format=, |chapter-format=, |conference-format=...
    137 KB (13,198 words) - 13:25, October 24, 2022
  • This module and associated sub-modules support the Citation Style 1 and Template:Cs2 citation templates. In general, it is not intended to be called directly...
    7 KB (136 words) - 02:14, September 13, 2021
  • ['$flags'] = 'flags', ['$B'] = 'template content', ['$template-name'] = 'template invocation name override' } p[''] = function ( frame ) if not frame:getParent()...
    5 KB (778 words) - 14:10, October 23, 2022
  • of the metadata parameter values if 'ID_list' ~= k and 'Authors' ~= k then -- except the ID_list and Author tables (author nowiki stripmarker done...
    16 KB (2,193 words) - 16:23, May 4, 2023
  • Template:Ordered list (category List formatting and function templates) (section Acceptable list style type values and supported web browsers)
    Changing the symbol style {{Ordered list |list_style_type=type |entry1 |entry2 |... }} With CSS style {{Ordered list |item_style=CSS-all |entry1 |entry2...
    178 bytes (202 words) - 02:20, September 9, 2020
  • require('Module:TNT') local p = {} local function format(msg, ...) return TNT.format('I18n/Uses TemplateStyles', msg, ...) end local function getConfig() return mw....
    4 KB (478 words) - 15:44, October 23, 2022
  • list[i] = ('|-\n| %d || [[%s]] || %s\n'):format(i, list[i][1]:gsub('_', ' '), lang:formatNum(list[i][2])) end return table.concat(list) end return...
    2 KB (316 words) - 15:44, October 23, 2022
  • target and yesno(options.target) then listItems[i] = templateMode and string.format("&#123;&#123;%s[[%s|%s]]&#125;&#125;", prefix, templatePath, shortcut)...
    4 KB (559 words) - 08:57, May 2, 2021
  • composed of a list -- -- prefixed by a colon-terminated label, i.e. "LABEL: [andList of pages]", -- -- for {{see also}} and similar templates. ...
    5 KB (576 words) - 14:10, October 23, 2022
  • parameter #1 of function 'name'", 2) end elseif type(title) ~= 'table' or type(title.getContent) ~= 'function' then error("parameter #1 of function 'name'...
    4 KB (587 words) - 20:33, September 2, 2020
  • insert(result,fmt and mw.ustring.format(fmt, v) or v) end end return result end Text.concatParams = function ( args, apply, adapt ) -- Concat list items into...
    23 KB (2,422 words) - 14:48, October 26, 2022
  • mainForm = isPlural and 'Main %ss: %s' or 'Main %s: %s' end local text = string.format(mainForm, pageType, list) -- Process the options and pass the text...
    2 KB (305 words) - 19:36, October 16, 2020
  • local function add_parameter (k, v, args, list) if list then table.insert( args, table.concat ({k, '=', v})); -- write parameter names and values...
    12 KB (1,773 words) - 13:25, October 24, 2022
  • return self end function Track:getLyricsCredit() return self.lyrics end function Track:getMusicCredit() return self.music end function Track:getWriterCredit()...
    15 KB (1,830 words) - 12:50, October 18, 2020
  • checking this list, so all input forms on this list should be written in lowercase. These files comprise the module support for CS1|2 citation templates:...
    683 bytes (108 words) - 02:14, September 13, 2021
  • . ')</span>' return result end local function make_list(text, note, dissolved) -- Return a list of formatted items. -- Input is a string of multiple...
    7 KB (1,023 words) - 11:51, August 21, 2020
  • end -- Assemble the list of links into a string with mw.text.listToText. -- We use the default separator for mw.text.listToText, but a custom --...
    4 KB (618 words) - 13:25, October 24, 2022
  • nav :node( list ) return tostring( nav ) end -- Processes external arguments and sends them to the other functions. function p.main( frame ) ...
    7 KB (991 words) - 00:00, September 2, 2020
  • local function returnError(s) return string.format( '<span class="error">Error using {{[[Template:IPA symbol|IPA symbol]]}}: "%s" not found in list</span>%s'...
    3 KB (443 words) - 17:13, September 13, 2021
  • k:match('^p%d+$') and n >= 1 and n <= 40 then elseif nonumbers and (k:match('^pos%d+$') and n >= 1 and n <= 40) then if v and v ~= '' then haspos...
    4 KB (564 words) - 11:51, August 21, 2020
  • require('Module:Hatnote list') local mArguments --initialize lazily local mTableTools = require('Module:TableTools') local p = {} function p.redirectDistinguish...
    2 KB (202 words) - 22:15, September 11, 2021
  • -------- makes a list of templates use in the article. ]] local function template_list_add (template) local template = template:match ('{{%s*(.-)[|}]');...
    37 KB (5,067 words) - 17:13, September 13, 2021
  • local scaleWidth function validate() function asGroups( name, tab, toDuplicate, emptyOK ) if #tab == 0 and not emptyOK then ...
    21 KB (2,515 words) - 21:54, August 29, 2020
  • end end -- Local function which is used to create a single row of cells. -- This is the standard function called. local function createSingleRowCells(args...
    31 KB (3,878 words) - 16:23, May 4, 2023
  • return ret end local function fold(func, ...) -- Use a function on all supplied arguments, and return the result. The function must accept two numbers...
    14 KB (2,185 words) - 16:23, May 4, 2023
  • result list end if is_set (args['list-leadout']) then out_text = table.concat ({label, mw.text.listToText (result, list_separator, list_leadout)});...
    9 KB (1,320 words) - 12:55, September 10, 2020
  • by creating wrapper templates that use the main command provided by this module (just like {{WikidataOI}} does). Below follows a list of common use cases...
    1 KB (985 words) - 14:23, September 2, 2020
  • = 12, }) end local function _list_text(list, fmt) -- Return a list of formatted strings from a list of dates. if not type(list) == 'table' then e...
    47 KB (7,610 words) - 10:11, August 21, 2020
  • supported by {{lang}} and the {{lang-xx}} templates are supported by this function. Module entry point from another module ]] local function _is_ietf_tag (tag)...
    74 KB (10,742 words) - 16:23, May 4, 2023
  • italicTitle:render(args[1]) end function p.main(frame) return p._main(getArgs(frame, 'Template:Italic title')) end function p._dabonly(args) return ItalicTitle...
    9 KB (1,018 words) - 16:23, May 4, 2023
  • local function _createFormatting(args) formatting = {} formatting.linktext = args.linktext formatting.lcfirst = yesNo(args.lcfirst) formatting.bold...
    21 KB (2,691 words) - 22:13, September 11, 2021
  • string. ]=] local function make_wikilink (link, display, no_link) if nil == no_link then if link and ('' ~= link) then if display and ('' ~= display)...
    37 KB (5,179 words) - 08:57, May 2, 2021
  • adj1=='late' and state.adj2=='early' and state.conj=='and' and state.units1==state.units2 and state.era1==state.era2 then if state.units1=='century' then...
    22 KB (2,907 words) - 19:49, August 21, 2020
  • ---------------------------- function p.isPositiveInteger(v) return type(v) == 'number' and v >= 1 and floor(v) == v and v < infinity end ----------...
    15 KB (1,783 words) - 14:10, October 23, 2022
  • redCatLink(catName) end function p.redCatLink( catName ) --catName == 'Blah', not 'Category:Blah', not '[[Category:Blah]]' if catName and catName ~= '' and testcases...
    44 KB (6,870 words) - 12:20, September 2, 2020
  • with incorrect protection templates', ['tracking-category-template'] = 'Wikipedia template-protected pages other than templates and modules', -----------...
    45 KB (5,039 words) - 14:10, October 23, 2022
  • extended ascii? 1 = yes function p.ia_extendedascii(str) for i = 1, str:len() do if (str:byte(i) >= 32 and str:byte(i) <= 126) and str:byte(i) ~= 39...
    29 KB (4,267 words) - 23:19, September 10, 2020
  • local fmtkey = ispreview() and 'cvt_format_preview' or (want_warning and 'cvt_format2' or msg.format or 'cvt_format') local fmt = text_code.all_messages[fmtkey]...
    132 KB (20,570 words) - 19:38, August 21, 2020
  • parse templates that occur within other templates, * rather than just top-level templates. * @return object[] */ extraJs.parseTemplates = function(wikitext...
    29 KB (3,475 words) - 20:59, August 30, 2020
  • "") if text ~= "" and text ~= "0" and string.lower(text) ~= "false" then return true end end return false end local function splitChars(text, pattern...
    38 KB (5,044 words) - 08:57, May 2, 2021
  • be used to create output string * Function INPUTS: - date1 and date2 string with date strings. "$date1" and "$date2" can also be used which will...
    78 KB (10,089 words) - 19:49, August 21, 2020
  • section', description: 'similar to {{R to list entry}}, but when list is organized in sections, such as list of characters in a fictional universe' },...
    84 KB (9,979 words) - 20:27, August 30, 2020
  • download) { var ret=[]; for (var i=0; i<list.length; ++i) { if (list[i] && typeof list[i] == 'function') { var s=list[i](data, download, download.owner...
    232 KB (29,025 words) - 20:27, August 30, 2020
  • getMWEditForm: function() { return $("#editform")[0]; }, /** * Runs a given function on submission of edit form * @param {Function} subFunc function to run...
    85 KB (9,467 words) - 20:38, August 30, 2020
  • list = logoContainer; } else { list = logoContainer.getElementsByTagName('ul')[0]; } if (list !== undefined) { list.appendChild(wikEd...
    646 KB (69,593 words) - 04:09, September 3, 2020
  • Template:Navboxes (redirect from Template group) (category Wikipedia formatting and function templates) (section Coordinates template)
    show this template in its collapsed (hidden) state only if there is another collapsible template on the page list (required) list of the templates to be grouped...
    514 bytes (796 words) - 11:50, August 21, 2020
  • name: 'template', list: $.map(templates, function(properties, template) { return { value: template, label: '{{' + template + '}}: '...
    23 KB (2,501 words) - 20:27, August 30, 2020
  • 'Arts/Comics and animation': ['Comics and animation', 'Anime and manga', 'Webcomics'], 'Places of interest': ['Museums and libraries', 'Shopping...
    85 KB (9,512 words) - 20:27, August 30, 2020
  • filtered_block_groups = function twinkleblockCallbackFilteredBlockGroups(group, show_template) { return $.map(group, function(blockGroup) { var list = $.map(blockGroup...
    61 KB (7,190 words) - 20:27, August 30, 2020
  • 'text': function(dict){ var textHolder = $('<p>'); return textHolder.text(dict['string'])[0]; }, 'stepperList': function (dict) { var list = dict['choiceList'];...
    31 KB (3,106 words) - 20:32, August 30, 2020
  • label: 'Templates' }); work_area.append({ type: radioOrCheckbox, name: 'csd', list: Twinkle.speedy.generateCsdList(Twinkle.speedy.templateList, mode)...
    82 KB (10,140 words) - 20:27, August 30, 2020
  • .text('Update pages and talk pages '), 'Replace nomination templates with merge templates, '+ 'and add old xfd templates to talk pages' ) ...
    204 KB (21,994 words) - 20:59, August 30, 2020
  • changes templates', list: [ { label: '{{pp-pc}}: pending changes', value: 'pp-pc' } ] }, { label: 'Move protection templates', list: [ {...
    51 KB (5,707 words) - 20:27, August 30, 2020
  • Template:Cite journal (category Templates using TemplateData) (section TemplateData)
    the last two names in a name list; when set to and, inserts the conjunction 'and' between the last two names of a name list; when set to vancdisplays name...
    126 bytes (8,722 words) - 23:59, September 1, 2020
  • page for templates indicating prior XfD or PROD var numTemplates = $(xmlDoc).find('templates tl').length; if (numTemplates) { var template = $(xmlDoc)...
    16 KB (1,926 words) - 20:27, August 30, 2020
  • 'Custom welcome templates to display', helptip: "You can add other welcome templates, or user subpages that are welcome templates (prefixed with \"User:\")...
    62 KB (7,409 words) - 20:27, August 30, 2020
  • data.name); if (data.list) { for (i = 0; i < data.list.length; ++i) { current = data.list[i]; if (current.list) { current.type =...
    159 KB (19,190 words) - 20:32, August 30, 2020
  • yet, and add the portlet link. * @param task: Either a URL for the portlet link or a function to execute. */ Twinkle.addPortletLink = function(task,...
    17 KB (1,979 words) - 20:27, August 30, 2020
  • ( !resp || !( list = resp.query ) || !( list = list.blocks ) ) { return; } for ( var i = 0; i < list.length; i++ ) { blk = list[i]; var partial...
    7 KB (878 words) - 20:55, August 30, 2020
  • Changing the symbol style {{Ordered list |list_style_type=type |entry1 |entry2 |... }} With CSS style {{Ordered list |item_style=CSS-all |entry1 |entry2...
    3 KB (162 words) - 02:21, September 9, 2020
  • summary // Function to handle generation of summary prefix for custom templates var customProcess = function(template) { template = template.split('|')[0];...
    62 KB (7,256 words) - 20:27, August 30, 2020
  • config.editingEnabled(); function namespaceCheck( list ) { if ( !list || Object.prototype.toString.call( list ) !== '[object Array]' ) { return...
    121 KB (14,905 words) - 10:34, August 19, 2021
  • Template:Rp (category Templates using TemplateData) (section Function)
    footnoting system is less tedious to use and more difficult to break with incorrect formatting than the {{ref label}} and {{note label}} system (although, in...
    2 KB (1,604 words) - 22:13, September 11, 2021
  • }; this.onWindowResize = function () { te.tooltip.calculatePosition(); }; } function Tooltip( te ) { function openSettingsDialog() { var...
    25 KB (2,661 words) - 20:13, August 30, 2020
  • Template:Infobox software (category Templates using TemplateData) (section Conditional formatting parameters)
    will allow the list of languages to be hidden and revealed with the click of a mouse. This method is not printer-friendly: A collapsed list does not appear...
    7 KB (3,783 words) - 17:23, September 13, 2021
  • Template:Navbox (category Lua-based templates) (section Parameter list)
    standardization and simplicity. Examples: list5style = background: #ddddff; listpadding* A number and unit specifying the padding in each list cell. The list cells...
    94 bytes (4,051 words) - 22:14, September 11, 2021
  • Template:Rp/doc (category Templates needing substitution checking) (section Function)
    footnoting system is less tedious to use and more difficult to break with incorrect formatting than the {{ref label}} and {{note label}} system (although, in...
    18 KB (1,565 words) - 22:15, September 11, 2021
  • Template:Pp (category Templates using TemplateData) (section TemplateData)
    to the second parameter of the #time parser function. This argument only has an effect for the "office" and "reset" reasons. user – The username of the...
    76 bytes (379 words) - 02:16, September 4, 2020
  • Template:Cite journal/doc (category Templates generating COinS) (section TemplateData)
    the last two names in a name list; when set to and, inserts the conjunction 'and' between the last two names of a name list; when set to vancdisplays name...
    54 KB (8,682 words) - 20:00, September 23, 2020
  • Template:Death-date (category Templates using TemplateData) (section Ambiguous times and dates)
    {{End-date}}, and {{Death-date}} are easy to read "plain text" date and time templates that emit microformat dates for events. These templates are an alternative...
    2 KB (974 words) - 08:56, May 2, 2021
  • Template:Birth-date (category Templates using TemplateData) (section Ambiguous times and dates)
    {{End-date}}, and {{Death-date}} are easy to read "plain text" date and time templates that emit microformat dates for events. These templates are an alternative...
    2 KB (974 words) - 08:56, May 2, 2021
  • Template:Redirect (category Disambiguation and redirection templates) (section TemplateData)
    note that this should be only used when truly necessary, and the other hatnote templates listed below don't suffice. {{Redirect|Foo}} → {{Redirect|REDIRECT||PAGE1}}...
    183 bytes (249 words) - 14:12, August 30, 2020
  • Template:Navbox/doc (category Template documentation pages) (section Parameter list)
    standardization and simplicity. Examples: list5style = background: #ddddff; listpadding* A number and unit specifying the padding in each list cell. The list cells...
    38 KB (4,012 words) - 11:46, August 21, 2020
  • Template:Start-date (category Templates using TemplateData) (section Ambiguous times and dates)
    text" date and time templates that emit microformat dates for events. These templates are an alternative to the {{Start date}}/{{Birth date}} and {{End date}}/{{Death...
    2 KB (961 words) - 08:56, May 2, 2021
  • Template:End-date (category Templates using TemplateData) (section Ambiguous times and dates)
    text" date and time templates that emit microformat dates for events. These templates are an alternative to the {{Start date}}/{{Birth date}} and {{End date}}/{{Death...
    2 KB (961 words) - 08:56, May 2, 2021
  • Template:Start-date/doc (category Template documentation pages) (section Ambiguous times and dates)
    {{End-date}}, and {{Death-date}} are easy to read "plain text" date and time templates that emit microformat dates for events. These templates are an alternative...
    12 KB (924 words) - 08:56, May 2, 2021
  • Template:Infobox comics species and title (category Infobox templates) (section Types list)
    categories of each type) and list the full category title. Please list the categories in publication order. Two of the logical fields for format will add the article...
    22 KB (2,566 words) - 15:34, September 5, 2021
  • Template:Infobox software/doc (category Template documentation pages) (section Conditional formatting parameters)
    will allow the list of languages to be hidden and revealed with the click of a mouse. This method is not printer-friendly: A collapsed list does not appear...
    45 KB (3,743 words) - 17:31, September 13, 2021
  • Template:Pp/doc (category Template documentation pages) (section TemplateData)
    a general template for producing protection banners and padlock icons. It can be used with any protection reason, any protection action, and any protection...
    4 KB (340 words) - 02:16, September 4, 2020
  • Template:Redirect/doc (category Template documentation pages) (section TemplateData)
    note that this should be only used when truly necessary, and the other hatnote templates listed below don't suffice. {{Redirect|Foo}} → {{Redirect|REDIRECT||PAGE1}}...
    4 KB (210 words) - 14:14, August 30, 2020
  • Template:Cmbox (category Mbox and messagebox templates)
    sign = and a start and end brace { } work fine as they are. But here is a pipe {{!}} and two end braces <nowiki>}}</nowiki>. And now a pipe and end braces...
    146 bytes (860 words) - 15:48, October 23, 2022
  • Template:Cmbox/doc (category Template documentation pages)
    sign = and a start and end brace { } work fine as they are. But here is a pipe {{!}} and two end braces <nowiki>}}</nowiki>. And now a pipe and end braces...
    9 KB (821 words) - 15:48, October 23, 2022
  • Template:Tmbox/doc (category Template documentation pages)
    sign = and a start and end brace { } work fine as they are. But here is a pipe {{!}} and two end braces <nowiki>}}</nowiki>. And now a pipe and end braces...
    12 KB (1,326 words) - 15:48, October 23, 2022
  • Template:Tmbox (category Mbox and messagebox templates)
    sign = and a start and end brace { } work fine as they are. But here is a pipe {{!}} and two end braces <nowiki>}}</nowiki>. And now a pipe and end braces...
    146 bytes (1,365 words) - 15:48, October 23, 2022
  • flags|configuration flagsTemplate:Ensure AAA contrast ratio]], which are also optional and affect the selection of data and the template's behaviour in general...
    87 KB (1,085 words) - 14:23, September 2, 2020