Modèle:Indexation : Différence entre versions
De Oniropædia
m (correction indexation dans catégorie "Page à catégoriser") |
m (recodification avec la fonction #foreach) |
||
(5 révisions intermédiaires par 3 utilisateurs non affichées) | |||
Ligne 10 : | Ligne 10 : | ||
<!-- Début de la Section spécifique à l'implémentation de la catégorisation des pages --> | <!-- Début de la Section spécifique à l'implémentation de la catégorisation des pages --> | ||
<!-- ================================================================================ --> | <!-- ================================================================================ --> | ||
− | #if:{{{1|}}}|[[Catégorie:{{{ | + | #ifeq:{{{index|}}}| |
− | + | |{{ | |
− | Configuration | + | #if:{{{1|}}} |
− | + | |{{#foreach: $n$|[[Catégorie:{{{$n$}}}|{{ | |
− | |catégorie={{{ | + | #accents2ascii2lower:{{ |
+ | Catégorisation/Catégorisation/Module de base/Indexation dans catégorie/Configuration | ||
+ | |catégorie={{{$n$}}} | ||
}} | }} | ||
− | }}]] | + | }}]]{{-}}}} |
+ | |{{ | ||
+ | #if:{{NAMESPACE}} | ||
+ | | | ||
+ | |[[Catégorie:Page à catégoriser|{{ | ||
+ | #accents2ascii2lower:{{ | ||
+ | Catégorisation/Catégorisation/Module de base/Indexation dans catégorie/Configuration | ||
+ | |catégorie=Page à catégoriser | ||
+ | }} | ||
+ | }}]] | ||
+ | }} | ||
+ | }} | ||
|{{ | |{{ | ||
− | #if:{{ | + | #if:{{{1|}}} |
− | | | + | |{{#foreach: $n$|[[Catégorie:{{{$n$}}}|{{ |
− | + | #accents2ascii2lower:{{ | |
− | + | Catégorisation/Catégorisation/Module de base/Indexation dans catégorie/Configuration | |
− | Configuration | ||
|index={{{index}}} | |index={{{index}}} | ||
− | |catégorie= | + | |catégorie={{{1}}} |
}} | }} | ||
− | }}]] | + | }}]]{{-}}}} |
+ | |{{ | ||
+ | #if:{{NAMESPACE}} | ||
+ | | | ||
+ | |[[Catégorie:Page à catégoriser|{{ | ||
+ | #accents2ascii2lower:{{ | ||
+ | Catégorisation/Catégorisation/Module de base/Indexation dans catégorie/Configuration | ||
+ | |index={{{index}}} | ||
+ | |catégorie=Page à catégoriser | ||
+ | }} | ||
+ | }}]] | ||
+ | }} | ||
}} | }} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<!-- ================================================================================ --> | <!-- ================================================================================ --> | ||
}}<!-- Fin de la section spécifique à l'implémentation de la catégorisation des pages --> | }}<!-- Fin de la section spécifique à l'implémentation de la catégorisation des pages --> |
Version actuelle datée du 5 novembre 2008 à 10:56
La syntaxe et l’éventuel exemple de l’utilisation de ce modèle sont situés sur sa page de discussion. Vous pouvez néanmoins ajouter des questions et commentaires à la suite de l’aide.