Movatterモバイル変換


[0]ホーム

URL:


Pegi ngagai isi
Wikipedia
Giga

Modul:Category handler/shared

Ari Wikipedia
<Modul:Category handler

Pendokumenan untuk modul ini boleh diciptakan diModul:Category handler/shared/doc

-- This module contains shared functions used by [[Modul: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
Diambi ari "https://iba.wikipedia.org/w/index.php?title=Modul:Category_handler/shared&oldid=2434"

[8]ページ先頭

©2009-2025 Movatter.jp