Diferencia entre revisiones de «Plantilla:Temas PA/Contar si existen»
Apariencia
Contenido eliminado Contenido añadido
m Protegió «Plantilla:Temas PA/Contar si existen»: Página muy utilizada ([Editar=Sólo usuarios autoconfirmados] (indefinido) [Pueden trasladar=Sólo usuarios autoconfirmados] (indefinido)) |
Añadida comprobación para ver si se ha definido el parámetro para evitar que ifexist añada registros en enlaces requeridos del tipo "base + xñ@" |
||
Línea 1: | Línea 1: | ||
{{#expr: |
{{#expr: |
||
{{#ifexist: {{{base|}}}{{{1 |
{{#if:{{{1|}}} | {{#ifexist: {{{base|}}}{{{1}}} | 1 }} | 0 }} |
||
+ {{#ifexist: {{{base|}}}{{{2 |
+ {{#if:{{{2|}}} | {{#ifexist: {{{base|}}}{{{2}}} | 1 }} | 0 }} |
||
+ {{#ifexist: {{{base|}}}{{{3 |
+ {{#if:{{{3|}}} | {{#ifexist: {{{base|}}}{{{3}}} | 1 }} | 0 }} |
||
+ {{#ifexist: {{{base|}}}{{{4 |
+ {{#if:{{{4|}}} | {{#ifexist: {{{base|}}}{{{4}}} | 1 }} | 0 }} |
||
+ {{#ifexist: {{{base|}}}{{{5 |
+ {{#if:{{{5|}}} | {{#ifexist: {{{base|}}}{{{5}}} | 1 }} | 0 }} |
||
+ {{#ifexist: {{{base|}}}{{{6 |
+ {{#if:{{{6|}}} | {{#ifexist: {{{base|}}}{{{6}}} | 1 }} | 0 }} |
||
+ {{#ifexist: {{{base|}}}{{{7 |
+ {{#if:{{{7|}}} | {{#ifexist: {{{base|}}}{{{7}}} | 1 }} | 0 }} |
||
+ {{#ifexist: {{{base|}}}{{{8 |
+ {{#if:{{{8|}}} | {{#ifexist: {{{base|}}}{{{8}}} | 1 }} | 0 }} |
||
+ {{#ifexist: {{{base|}}}{{{9 |
+ {{#if:{{{9|}}} | {{#ifexist: {{{base|}}}{{{9}}} | 1 }} | 0 }} |
||
+ {{#ifexist: {{{base|}}}{{{10 |
+ {{#if:{{{10|}}} | {{#ifexist: {{{base|}}}{{{10}}} | 1 | 0 }} | 0 }} |
||
}}<noinclude> |
}}<noinclude> |
||
== Uso == |
== Uso == |
Revisión del 16:40 26 oct 2015
0
Uso
Cuenta la cantidad de materias o categorías temáticas de mantenimiento realmente existentes. El parámetro «base» determina la ruta donde se encuentran dichas categorías, y está definido desde Plantilla:Temas PA/base.