Saltar para o conteúdo

Predefinição:Category handler/Exemplos para testes

Origem: Wikipédia, a enciclopédia livre.

A testar {{category handler/blacklist}}[editar código-fonte]

x{{category handler/blacklist}}x

x{{category handler/blacklist
| página = usuário discussão:Example
}}x

x{{category handler/blacklist
| página = usuário discussão:Example/Archive 5
}}x

x{{category handler/blacklist
| página = wikipédia:predefinição messages/wikipédia namespace
}}x

x-- This module contains the blacklist used by Module:Category handler. -- Pages that match Lua patterns in this list will not be categorised unless -- categorisation is explicitly requested.

return { '^Página Principal$', '^Wikipédia:Página principal$', -- don't categorise the main page.

-- Don't categorise the following pages or their subpages. -- "%f[/\0]" matches if the next character is "/" or the end of the string.

-- Don't categorise subpages of these pages, but allow -- categorisation of the base page. '^Wikipédia:Lista de predefinições/.*$',

-- Don't categorise archives. '/[aA]rchive', '/[aA]rquivo', }x

x-- This module contains the blacklist used by Module:Category handler. -- Pages that match Lua patterns in this list will not be categorised unless -- categorisation is explicitly requested.

return { '^Página Principal$', '^Wikipédia:Página principal$', -- don't categorise the main page.

-- Don't categorise the following pages or their subpages. -- "%f[/\0]" matches if the next character is "/" or the end of the string.

-- Don't categorise subpages of these pages, but allow -- categorisation of the base page. '^Wikipédia:Lista de predefinições/.*$',

-- Don't categorise archives. '/[aA]rchive', '/[aA]rquivo', }x

x-- This module contains the blacklist used by Module:Category handler. -- Pages that match Lua patterns in this list will not be categorised unless -- categorisation is explicitly requested.

return { '^Página Principal$', '^Wikipédia:Página principal$', -- don't categorise the main page.

-- Don't categorise the following pages or their subpages. -- "%f[/\0]" matches if the next character is "/" or the end of the string.

-- Don't categorise subpages of these pages, but allow -- categorisation of the base page. '^Wikipédia:Lista de predefinições/.*$',

-- Don't categorise archives. '/[aA]rchive', '/[aA]rquivo', }x

x-- This module contains the blacklist used by Module:Category handler. -- Pages that match Lua patterns in this list will not be categorised unless -- categorisation is explicitly requested.

return { '^Página Principal$', '^Wikipédia:Página principal$', -- don't categorise the main page.

-- Don't categorise the following pages or their subpages. -- "%f[/\0]" matches if the next character is "/" or the end of the string.

-- Don't categorise subpages of these pages, but allow -- categorisation of the base page. '^Wikipédia:Lista de predefinições/.*$',

-- Don't categorise archives. '/[aA]rchive', '/[aA]rquivo', }x

A testar {{category handler}}[editar código-fonte]

x{{category handler}}x

x{{category handler
| Somecat
}}x

x{{category handler
| predefinição = Somecat
}}x

x{{category handler
| Somecat
| página = Somearticle
}}x

xx

xx

xSomecatx

xSomecatx


x{{category handler
| Somecat
| página = File:Example/test
}}x

x{{category handler
| Somecat
| página = File:Example/test
| semcat = 
}}x

x{{category handler
| Somecat
| página = File:Example/test
| semcat = true
}}x

xSomecatx

xSomecatx

xx


x{{category handler
| principal = Category:Somecat1 Category:Somecat2
| 1 = Category:Somecat3   <!--For ajuda, usuário and predefinição space-->
| ajuda = 1
| usuário = 1
| predefinição = 1
| discussão =     <!--No categorias on discussão páginas-->
| outro = Category:Somecat4   <!--For all outro namespaces-->
| semcat = {{{semcat|}}}   <!--So "semcat=true/false" works-->
}}x

x{{category handler
| principal = Category:Somecat1 Category:Somecat2
| 3 = Category:Somecat3   <!--For ajuda, usuário and predefinição space-->
| ajuda = 3
| usuário = 3
| predefinição = 3
| discussão =     <!--No categorias on discussão páginas-->
| outro = Category:Somecat4   <!--For all outro namespaces-->
| semcat = {{{semcat|}}}   <!--So "semcat=true/false" works-->
}}x

x{{category handler
| principal = Category:Somecat1 Category:Somecat2
| 3 = Category:Somecat3   <!--For ajuda, usuário and predefinição space-->
| ajuda = 3
| usuário = 3
| predefinição = 3
| discussão =     <!--No categorias on discussão páginas-->
| outro = Category:Somecat4   <!--For all outro namespaces-->
| semcat = {{{semcat|}}}   <!--So "semcat=true/false" works-->
| página = Somearticle
}}x

xCategory:Somecat3x

xCategory:Somecat3x

xCategory:Somecat1 Category:Somecat2x


x{{category handler
| outro = Somecat
}}x

x{{category handler
| outro = Somecat
| página = usuário discussão:Example/Archive 5
}}x

x{{category handler
| outro = Somecat
| página = usuário discussão:Example/Archive 5
| semcat = false
}}x

xSomecatx

xx

xSomecatx


x{{category handler
| outro = Somecat
| categorias = no
}}x

x{{category handler
| outro = Somecat
| página = usuário discussão:Example/Archive 5
| categorias = yes
}}x

xx

xSomecatx


x{{category handler
| outro = Somecat
| categoria2 = no
}}x

x{{category handler
| outro = Somecat
| categoria2 = 
}}x

x{{category handler
| outro = Somecat
| categoria2 = ¬
}}x

x{{category handler
| outro = Somecat
| categoria2 = {{{category|¬}}}
}}x

x{{category handler
| outro = Somecat
| página = usuário discussão:Example/Archive 5
| categoria2 = yes
}}x

xx

xx

xSomecatx

xSomecatx

xSomecatx

A testar {{category handler/Testes}}[editar código-fonte]

x{{category handler/Testes}}x

x{{category handler/Testes
| Somecat
}}x

x{{category handler/Testes
| predefinição = Somecat
}}x

x{{category handler/Testes
| Somecat
| página = Somearticle
}}x

xx

xx

xx

xx


x{{category handler/Testes
| Somecat
| página = File:Example/test
}}x

x{{category handler/Testes
| Somecat
| página = File:Example/test
| semcat = 
}}x

x{{category handler/Testes
| Somecat
| página = File:Example/test
| semcat = true
}}x

xx

xx

xx


x{{category handler/Testes
| principal = Category:Somecat1 Category:Somecat2
| 1 = Category:Somecat3   <!--For ajuda, usuário and predefinição space-->
| ajuda = 1
| usuário = 1
| predefinição = 1
| discussão =     <!--No categorias on discussão páginas-->
| outro = Category:Somecat4   <!--For all outro namespaces-->
| semcat = {{{semcat|}}}   <!--So "semcat=true/false" works-->
}}x

x{{category handler/Testes
| principal = Category:Somecat1 Category:Somecat2
| 3 = Category:Somecat3   <!--For ajuda, usuário and predefinição space-->
| ajuda = 3
| usuário = 3
| predefinição = 3
| discussão =     <!--No categorias on discussão páginas-->
| outro = Category:Somecat4   <!--For all outro namespaces-->
| semcat = {{{semcat|}}}   <!--So "semcat=true/false" works-->
}}x

x{{category handler/Testes
| principal = Category:Somecat1 Category:Somecat2
| 3 = Category:Somecat3   <!--For ajuda, usuário and predefinição space-->
| ajuda = 3
| usuário = 3
| predefinição = 3
| discussão =     <!--No categorias on discussão páginas-->
| outro = Category:Somecat4   <!--For all outro namespaces-->
| semcat = {{{semcat|}}}   <!--So "semcat=true/false" works-->
| página = Somearticle
}}x

xx

xx

xx


x{{category handler/Testes
| outro = Somecat
}}x

x{{category handler/Testes
| outro = Somecat
| página = usuário discussão:Example/Archive 5
}}x

x{{category handler/Testes
| outro = Somecat
| página = usuário discussão:Example/Archive 5
| semcat = false
}}x

xx

xx

xx


x{{category handler/Testes
| outro = Somecat
| categorias = no
}}x

x{{category handler/Testes
| outro = Somecat
| página = usuário discussão:Example/Archive 5
| categorias = yes
}}x

xx

xx


x{{category handler/Testes
| outro = Somecat
| categoria2 = no
}}x

x{{category handler/Testes
| outro = Somecat
| categoria2 = 
}}x

x{{category handler/Testes
| outro = Somecat
| categoria2 = ¬
}}x

x{{category handler/Testes
| outro = Somecat
| categoria2 = {{{category|¬}}}
}}x

x{{category handler/Testes
| outro = Somecat
| página = usuário discussão:Example/Archive 5
| categoria2 = yes
}}x

xx

xx

xx

xx

xx

A testar parâmetro 1[editar código-fonte]

x{{category handler
| 2 = Category:Somecat
| principal = 
| wikipédia = 2
| página = ajuda:Example
}}x

x{{category handler
| 1 = Category:Somecat
| principal = 
| wikipédia = 1
| página = ajuda:Example
}}x

x{{category handler/Testes
| 1 = Category:Somecat
| principal = 
| wikipédia = 1
| página = ajuda:Example
}}x

xx

xx

xx

A testar o parâmetro "all"[editar código-fonte]

x{{category handler/Testes
| all = Category:Somecat1     <!--Category for all namespaces-->
| principal = Category:Somecat2    <!--And use this in principal space-->
| discussão =           <!--But no extra category for discussão páginas-->
}}x

x{{category handler/Testes
| all = Category:Somecat1     <!--Category for all namespaces-->
| principal = Category:Somecat2    <!--And use this in principal space-->
| discussão =           <!--But no extra category for discussão páginas-->
| página = An article
}}x

x{{category handler/Testes
| all = Category:Somecat1     <!--Category for all namespaces-->
| principal = Category:Somecat2    <!--And use this in principal space-->
| discussão =           <!--But no extra category for discussão páginas-->
| página = discussão:Example
}}x

xx

xx

xx


x{{category handler/Testes
| all = Category:Somecat1     <!--Category for all namespaces-->
| principal = Category:Somecat2    <!--And use this in principal space-->
| outro = Category:Somecat3   <!--For the rest of the namespaces-->
| discussão =           <!--But no extra category for discussão páginas-->
}}x

x{{category handler/Testes
| all = Category:Somecat1     <!--Category for all namespaces-->
| principal = Category:Somecat2    <!--And use this in principal space-->
| discussão =           <!--But no extra category for discussão páginas-->
| outro = Category:Somecat3   <!--For the rest of the namespaces-->
| página = An article
}}x

x{{category handler/Testes
| all = Category:Somecat1     <!--Category for all namespaces-->
| principal = Category:Somecat2    <!--And use this in principal space-->
| discussão =           <!--But no extra category for discussão páginas-->
| outro = Category:Somecat3   <!--For the rest of the namespaces-->
| página = discussão:Example
}}x

xx

xx

xx


A testar o parâmetro "subpágina"[editar código-fonte]

x{{category handler/Testes
| principal = Category:Somecat1
| outro = Category:Somecat2
| subpágina = no
}}x

x{{category handler/Testes
| principal = Category:Somecat1
| outro = Category:Somecat2
| subpágina = no
| página = usuário:Example
}}x

x{{category handler/Testes
| principal = Category:Somecat1
| outro = Category:Somecat2
| subpágina = no
| página = usuário:Example/test
}}x

xx

xx

xx


x{{category handler/Testes
| principal = Category:Somecat1
| outro = Category:Somecat2
| subpágina = only
}}x

x{{category handler/Testes
| principal = Category:Somecat1
| outro = Category:Somecat2
| subpágina = only
| página = usuário:Example
}}x

x{{category handler/Testes
| principal = Category:Somecat1
| outro = Category:Somecat2
| subpágina = only
| página = usuário:Example/test
}}x

xx

xx

xx


x{{category handler
| principal = Category:Somecat1
| outro = Category:Somecat2
| subpágina = no
| página = usuário:Example
}}x

x{{category handler
| principal = Category:Somecat1
| outro = Category:Somecat2
| subpágina = no
| página = usuário:Example/test
}}x

x{{category handler
| principal = Category:Somecat1
| outro = Category:Somecat2
| subpágina = only
| página = usuário:Example/test
}}x

xCategory:Somecat2x

xx

xCategory:Somecat2x