Search results
Jump to navigation
Jump to search
- translatable templates need themselves to transclude other translable templates (such as Tnavbar). ]] function this.getTranslatedTemplate(frame, withStatus)10 KB (1,318 words) - 20:05, 24 May 2024
- - original version * User:Jarekt ]] -- local function to help normalize input arguments local function normalize_input_args(input_args, output_args)3 KB (298 words) - 20:05, 24 May 2024
- then templateCat = templateErrorCategory templateSort = 'C' end end self:addCat(10, templateCat, templateSort) end end function Message17 KB (2,235 words) - 20:05, 24 May 2024
- result end function p.showTemplateArguments(frame) -- list all input arguments of the template that calls "{{#invoke:Fallback|showTemplateArguments}}"5 KB (836 words) - 20:05, 24 May 2024
- a helper module for [[Template:int]] local templateTranslation = require('Module:Template translation') local this = {} function this.renderIntMessage(frame)913 bytes (126 words) - 20:05, 24 May 2024
- end end --[[ langSwitch This function is the core part of the LangSwitch template. Example Usage from a template: {{#invoke:fallback|langSwitch|en=text4 KB (442 words) - 20:05, 24 May 2024
- return table.concat(map(function(it) return getLabel(frame, it, 'Property:') end, items), ", ") end function p.getFunctions(frame) if not mw.wikibase3 KB (387 words) - 20:05, 24 May 2024
- ack') local dir = require('Module:Dir') return { main = function( frame ) local function shallowcopy(orig) if type(orig) ~= 'table' then return2 KB (215 words) - 20:05, 24 May 2024
- -- Function allowing for consistent treatment of boolean-like wikitext input. -- It works similarly to the template {{yesno}}. return function (val, default)745 bytes (116 words) - 20:05, 24 May 2024
- the -- module and if missing from the template that calls the module local function getArgs(frame) local function normalize_input_args(input_args, output_args)18 KB (2,312 words) - 20:31, 24 May 2024
- Template:Dir (category Function templates)Template:Heavily used templateltr Template:Documentation352 bytes (4 words) - 20:05, 24 May 2024
- return s end function p.rtlLangs(isRTL) if isRTL == nil then isRTL = true end return rtlOverrides[isRTL] or {} end function p.isRTL(code)5 KB (778 words) - 20:05, 24 May 2024
- local p = {} function p._exportClasses() -- Used for testing purposes. return { CategoryHandler = CategoryHandler } end function p._main(args, data)8 KB (836 words) - 20:05, 24 May 2024
- local function tidyValTrimOnly(key, val) if type(val) == 'string' then return val:match('^%s*(.-)%s*$') else return val end end local function ti10 KB (1,447 words) - 20:05, 24 May 2024