Movatterモバイル変換


[0]ホーム

URL:


Jump to content
Wikipedia
Paghanap

Module:Category handler/shared

Gikan sa Bikol Sentral na Wikipedia, an talingkas na ensiklopedya
<Module:Category handler
Module documentation[create] [purge]
You might want tocreate a documentation page for thisScribunto module.
Editors can experiment in this module's sandbox(create |mirror) and testcases(create) pages.
Add categories to the/doc subpage.Subpages of this module.
-- This module contains shared functions used by [[Module:Category handler]]-- and its submodules.localp={}functionp.matchesBlacklist(page,blacklist)fori,patterninipairs(blacklist)dolocalmatch=mw.ustring.match(page,pattern)ifmatchthenreturntrueendendreturnfalseendfunctionp.getParamMappings(useLoadData)localdataPage='Module:Namespace detect/data'ifuseLoadDatathenreturnmw.loadData(dataPage).mappingselsereturnrequire(dataPage).mappingsendendfunctionp.getNamespaceParameters(titleObj,mappings)-- We don't use title.nsText for the namespace name because it adds-- underscores.localmappingsKeyiftitleObj.isTalkPagethenmappingsKey='talk'elsemappingsKey=mw.site.namespaces[titleObj.namespace].nameendmappingsKey=mw.ustring.lower(mappingsKey)returnmappings[mappingsKey]or{}endreturnp
Kinua sa "https://bcl.wikipedia.org/w/index.php?title=Module:Category_handler/shared&oldid=154645"

[8]ページ先頭

©2009-2025 Movatter.jp