Modèle:Test : Différence entre versions

De Oniropædia
(test compactage code avec fonction #foreach)
m (Révocation des modifications par Narcian le Grand Rêvant (Discussion) vers la dernière version de Xiloynaha)
 
Ligne 8 : Ligne 8 :
 
=======================================================
 
=======================================================
 
-->
 
-->
<noinclude><!-- == Début de la Section spécifique à la page d'affichage du modèle === -->
+
{{ #foreach: foo$n$_bar | foo$n$_bar = {{{foo$n$_bar}}}<br/> }}
<!-- ================================================================================ -->
 
{{Syntaxe}}
 
{{Indexation|Modèle|Paramétrage système}}
 
<!-- ================================================================================ -->
 
<!-- ========= Fin de la section spécifique à la page d'affichage du modèle ========= -->
 
</noinclude>{{<!-- ================================================================== -->
 
<!-- ================================================================================ -->
 
<!-- ================================================================================ -->
 
<!-- Début de la Section spécifique à l'implémentation de la catégorisation des pages -->
 
<!-- ================================================================================ -->
 
#ifeq:{{{index|}}}|
 
|{{
 
#if:{{{1|}}}
 
|{{#foreach: $n$|[[Catégorie:{{{$n$}}}|{{
 
#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:{{{1|}}}
 
|{{#foreach: $n$|[[Catégorie:{{{$n$}}}|{{
 
#accents2ascii2lower:{{
 
Catégorisation/Catégorisation/Module de base/Indexation dans catégorie/Configuration
 
|index={{{index}}}
 
|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 -->
 

Version actuelle datée du 4 novembre 2008 à 17:35