Módulo:Category handler/data: mudanças entre as edições
Aspeto
Criou página com '-- This module assembles data to be passed to Module:Category handler using -- mw.loadData. This includes the configuration data and whether the current -- page matches the title blacklist. local data = require('Module:Category handler/config') local mShared = require('Module:Category handler/shared') local blacklist = require('Module:Category handler/blacklist') local title = mw.title.getCurrentTitle() data.currentTitleMatchesBlacklist = mShared.matchesBlacklist(...' |
Sem resumo de edição |
||
Linha 1: | Linha 1: | ||
_pageName='{{#replace:{{PAGENAME}}|'|\'}}' | |||
-- This module assembles data to be passed to [[Module:Category handler]] using | -- This module assembles data to be passed to [[Module:Category handler]] using | ||
-- mw.loadData. This includes the configuration data and whether the current | -- mw.loadData. This includes the configuration data and whether the current |
Edição atual tal como às 00h22min de 7 de fevereiro de 2025
This módulo was adapted from Module:Category handler/data on Wikipedia.
Adaptation is noted for reference and attribution only. This módulo may differ from the original in function or in usage.
Adaptation is noted for reference and attribution only. This módulo may differ from the original in function or in usage.
_pageName='{{#replace:{{PAGENAME}}|'|\'}}'
-- This module assembles data to be passed to [[Module:Category handler]] using
-- mw.loadData. This includes the configuration data and whether the current
-- page matches the title blacklist.
local data = require('Module:Category handler/config')
local mShared = require('Module:Category handler/shared')
local blacklist = require('Module:Category handler/blacklist')
local title = mw.title.getCurrentTitle()
data.currentTitleMatchesBlacklist = mShared.matchesBlacklist(
title.prefixedText,
blacklist
)
data.currentTitleNamespaceParameters = mShared.getNamespaceParameters(
title,
mShared.getParamMappings()
)
return data