Module:DependencyList: Difference between revisions
Content deleted Content added
Created page with "local p = {} local libraryUtil = require( 'libraryUtil' ) local arr = require( 'Module:Array' ) local yn = require( 'Module:Yesno' ) local param = require( 'Module:Paramtest' ) local dpl = require( 'Module:DPLlua' ) local tooltip = require( 'Module:Tooltip' ) local moduleIsUsed = false local COLLAPSE_LIST_LENGTH_THRESHOLD = 5 local MAX_DYNAMIC_REQUIRE_LIST_LENGTH = 30 local dynamicRequireListQueryCache = {} local builtins = { ["libraryUtil"] = { link = "mw:S..." |
No edit summary Tag: Reverted |
||
Line 102:
--- Used in case a construct like 'require( "Module:wowee/" .. isTheBest )' is found.
--- Will return a list of mw.pages which satisfy this pattern where 'isTheBest' can take any value.
---@param query string
---@return string[]
Line 318:
end
--- Creates a link to [[Special:Search]] showing all mw.pages found by getDynamicRequireList() in case it found more than MAX_DYNAMIC_REQUIRE_LIST_LENGTH mw.pages.
---@param query string @This will be in a format like 'Module:Wowee/%' or 'Module:Wowee/%/data'
---@return string
Line 374:
---@param moduleName string
---@param addCategories boolean
---@param whatLinksHere string @A list generated by a dpl of mw.pages in the Template or Calculator namespace which link to moduleName.
---@return string
local function formatInvokedByList( moduleName, addCategories, whatLinksHere )
Line 426:
---@param moduleName string
---@param addCategories boolean
---@param whatLinksHere string @A list generated by a dpl of mw.pages in the Module namespace which link to moduleName.
---@return string
local function formatRequiredByList( moduleName, addCategories, whatLinksHere )
| |||