Modèle:Test : Différence entre versions

De Oniropædia
m (test 5)
m (fin de test)
Ligne 8 : Ligne 8 :
 
=======================================================
 
=======================================================
 
-->
 
-->
{{#foreach:idlink$n$|<dt>{{{o|<}}}span id="{{{idlink$n$}}}"{{{f|>}}}{{{idlink$n$}}}</span></dt>}}
+
<!--
 +
{{#switch: {{lc:{{PAGENAME}}}}
 +
|test
 +
|abréviation
 +
|abréviations={{#ifexpr: {{isDef|{{{abbr|{{{1|}}}}}}}} and {{isDef|{{{title|{{{2|}}}}}}}}
 +
|
 +
;<span id="{{{idlink|{{{abbr|{{{1|}}}}}}}}}">{{{abbr|{{{1|}}}}}}</span>:{{{title|{{{2|}}}}}}
 +
|<span style="color:red;">'''Attention !''' Paramètrage incomplet : <nowiki>{{</nowiki>abbr{{#if:{{{abbr|{{{1|}}}}}}
 +
|&#124{{{abbr|{{{1|}}}}}}|&#124;''Abbréviation''}}{{#if:{{{title|{{{2|}}}}}}
 +
|{{{title|{{{2|}}}}}}|&#124;''Signification de l'abbréviation''}}<nowiki>}}</nowiki></span>}}
 +
|#default={{#if: {{{abbr|{{{1|}}}}}}|[[Abréviations#{{{abbr|{{{1|}}}}}}|{{{abbr|{{{1|}}}}}}]]|<span style="color:red;">'''Attention !''' Paramètre manquant</span>}}
 +
}}
 +
 
 +
 
 +
{{#vardefine: i | 0
 +
}}{{#while:
 +
  | {{{arg{{#var: i}}|}}}
 +
  |<nowiki/>
 +
* {{{arg{{#var: i}}}}}{{
 +
    #vardefine: i
 +
    | {{#expr: {{#var:i}}+1}}
 +
  }}
 +
}}
 +
-->
 +
{{#switch:{{#explode:{{lc:{{{1|}}}}}|'|0}}
 +
|l
 +
|d
 +
|à l
 +
|de l={{#sub:{{{1|}}}|{{#expr:{{#pos:{{{1|}}}|'|0}}+1}}}}
 +
|#default={{#switch:{{#explode:{{lc:{{{1|}}}}}||0}}{{#explode:{{lc:{{{1|}}}}}||1}}
 +
|àla
 +
|dela={{#sub:{{{1|}}}|{{#expr:{{#pos:{{{1|}}}| |{{#expr:{{#pos:{{{1|}}}| |0}}+1}}}}+1}}}}
 +
|#default=ici{{#switch:{{#explode:{{lc:{{{1|}}}}}||0}}
 +
|le
 +
|la
 +
|les
 +
|un
 +
|une
 +
|de
 +
|du
 +
|des
 +
|au
 +
|aux={{#sub:{{{1|}}}|{{#expr:{{#pos:{{{1|}}}| |0}}+1}}}}
 +
|#default={{{1|}}}
 +
}}
 +
}}
 +
}}

Version du 9 juillet 2008 à 18:09

ici