Predefinição:AutoCat: diferenças entre revisões

[edição não verificada][edição não verificada]
Conteúdo apagado Conteúdo adicionado
m ajuste: usando {{NOMEDOLIVRO}} sem parâmetros o seu valor é calculado uma vez só e guardado em cache;
+indexadores para subcategorias (usado em páginas A/B/... como esta: Guia foca Linux/Introdução Geral/Colaboradores do Guia)
Linha 1:
<includeonly>{{#if:{{NOMEDOCAPÍTULO}}<!-- O título tem algo depois da 1ª barra? -->
|[[Categoria:{{NOMEDOLIVRO}}|{{NOMEDOCAPÍTULO|{{{sem-acentos|}}}}}]]<!--
-->{{#ifexist:Categoria:{{#titleparts:{{PAGENAME}}|2}}|[[Categoria:{{#titleparts:{{PAGENAME}}|2}}|{{#titleparts:{{{sem-acentos|{{PAGENAME}}}}}||3}}]]}}<!--
-->{{#ifexist:Categoria:{{#titleparts:{{PAGENAME}}|3}}|[[Categoria:{{#titleparts:{{PAGENAME}}|3}}|{{#titleparts:{{{sem-acentos|{{PAGENAME}}}}}||4}}]]}}<!--
-->{{#ifexist:Categoria:{{#titleparts:{{PAGENAME}}|4}}|[[Categoria:{{#titleparts:{{PAGENAME}}|4}}|{{#titleparts:{{{sem-acentos|{{PAGENAME}}}}}||5}}]]}}<!--
-->{{#ifexist:Categoria:{{#titleparts:{{PAGENAME}}|5}}|[[Categoria:{{#titleparts:{{PAGENAME}}|5}}|{{#titleparts:{{{sem-acentos|{{PAGENAME}}}}}||6}}]]}}<!--
-->{{#ifexist:Categoria:{{#titleparts:{{PAGENAME}}|6}}|[[Categoria:{{#titleparts:{{PAGENAME}}|5}}|{{#titleparts:{{{sem-acentos|{{PAGENAME}}}}}||7}}]]}}<!--
-->{{#ifexist:Categoria:{{#titleparts:{{PAGENAME}}|7}}|[[Categoria:{{#titleparts:{{PAGENAME}}|6}}|{{#titleparts:{{{sem-acentos|{{PAGENAME}}}}}||8}}]]}}
|[[Categoria:{{NOMEDOLIVRO}}|{{{sem-acentos|{{NOMEDOLIVRO}}}}}]] <!-- Tem só 1 parte -->
}}{{DEFAULTSORT:*{{{sem-acentos|{{PAGENAME}}}}}}}<!--