function which can be used in place of <span class="searchmatch">require</span> if it's not certain that the module in question will be <span class="searchmatch">needed</span>. If the module has already been loaded,...
local <span class="searchmatch">require</span>_<span class="searchmatch">when</span>_<span class="searchmatch">needed</span> = <span class="searchmatch">require</span>("Module:<span class="searchmatch">require</span> <span class="searchmatch">when</span> <span class="searchmatch">needed</span>") local format_categories = <span class="searchmatch">require</span>_<span class="searchmatch">when</span>_<span class="searchmatch">needed</span>("Module:utilities", "format_categories")...
local <span class="searchmatch">require</span>_<span class="searchmatch">when</span>_<span class="searchmatch">needed</span> = <span class="searchmatch">require</span>("Module:<span class="searchmatch">require</span> <span class="searchmatch">when</span> <span class="searchmatch">needed</span>") local concat = table.concat local format_categories = <span class="searchmatch">require</span>_<span class="searchmatch">when</span>_<span class="searchmatch">needed</span>("Module:utilities"...
<span class="searchmatch">require</span> = <span class="searchmatch">require</span> local tostring = tostring --[==[ Loaders for functions in other modules, which overwrite themselves with the target function <span class="searchmatch">when</span> called...
"foo" and then returns it. This ensures they are only loaded <span class="searchmatch">when</span> <span class="searchmatch">needed</span>, and avoids the <span class="searchmatch">need</span> to check for the existence of the object each time, since once...
display_parameter = <span class="searchmatch">require</span>_<span class="searchmatch">when</span>_<span class="searchmatch">needed</span>("Module:template parser", "displayParameter") local full_url = mw.uri.fullUrl local get_pagetype = <span class="searchmatch">require</span>_<span class="searchmatch">when</span>_<span class="searchmatch">needed</span>("Module:pages"...
"") .. ". " .. <span class="searchmatch">require</span> "Module:<span class="searchmatch">documentation</span>".sortkeyModuleLangList({args = { [1] = title_without_namespace:gsub("/<span class="searchmatch">documentation</span>$", "") }}) .. [=[...
"") .. ". " .. <span class="searchmatch">require</span> "Module:<span class="searchmatch">documentation</span>".entryNameModuleLangList({args = { [1] = title_without_namespace:gsub("/<span class="searchmatch">documentation</span>$", "") }}) .. [=[...
"") .. ". " .. <span class="searchmatch">require</span>("Module:<span class="searchmatch">documentation</span>").translitModuleLangList({args = { [1] = title_without_namespace:gsub("/<span class="searchmatch">documentation</span>$", "") }}) .. [=[...
local <span class="searchmatch">require</span> = <span class="searchmatch">require</span> local type = type --[==[ Loaders for functions in other modules, which overwrite themselves with the target function <span class="searchmatch">when</span> called...