Modèle:Test : Différence entre versions
[version vérifiée] | [version vérifiée] |
(Page blanchie) (Balise : Blanchiment) |
|||
Ligne 1 : | Ligne 1 : | ||
− | + | {{#vardefine:test|trompette}}<div style="max-width: 100%; overflow-x: auto;"> | |
+ | <div style="width:324px;">[[File:Fenetredefabricationvierge.png|link=]] | ||
+ | <div style="position:relative"> | ||
+ | {{#fornumargs: number | ||
+ | | value | ||
+ | | <!--- DECLARATION DES VARIABLES ---> | ||
+ | {{#vardefine:link|{{#pos:{{#var:value}}|link}}}} {{#vardefine:image|{{#sub:{{#var:value}}|6|{{#expr:{{#var:link}}-7}}}}}} {{#vardefine:nb|{{#pos:{{#var:value}}|quantité}}}} {{#vardefine:lien|{{#sub:{{#var:value}}|{{#expr:{{#var:link}}+5}}|{{#expr:{{#var:nb}}-{{#var:link}}-5}}}}}} {{#vardefine:nombre|{{#sub:{{#var:value}}|{{#expr:9+{{#var:nb}}}}}}}} <!--- FIN DECLARATION ---> | ||
+ | {{#ifeq:{{#pos:{{#var:nombre}}|+}} | ||
+ | |0 | ||
+ | | <!--- SI QUANTITE COMMENCE PAR UN + ---> | ||
+ | {{#vardefine:nombre|{{#sub:{{#var:nombre}}|1}}}} | ||
+ | <div style="position:absolute; top:-188px; left:{{#ifeq:{{#var:number}}|1|29|{{#expr:91+46*({{#var:number}}-2)}}}}px;">[[Image:{{#var:image}}.png|link={{#var:lien}}|{{#var:lien}}+{{#var:nombre}}]] | ||
+ | <div style="position:relative"> | ||
+ | <div style="position:absolute; top:-18px; left:23px">[[Image:1.png|link={{#var:lien}}|{{#var:lien}}+{{#var:nombre}}]]</div> | ||
+ | </div> | ||
+ | {{#ifeq:{{#var:number}} | ||
+ | |1 | ||
+ | | | ||
+ | | | ||
+ | <div style="position:absolute; top:100px; left:7px">[[Image:1tris.png|link=]]</div> | ||
+ | <div style="position:absolute; top:100px; left:16px">[[Image:1tris.png|link=]]</div> | ||
+ | <div style="position:absolute; top:101px; left:13px">[[Image:slash.png|link=]]</div> | ||
+ | }} | ||
+ | </div> | ||
+ | |<!--- SI QUANTITE NE COMMENCE PAS PAR UN + ---> | ||
+ | <div style="position:absolute; top:-188px; left:{{#ifeq:{{#var:number}}|1|29|{{#expr:91+46*({{#var:number}}-2)}}}}px;">[[Image:{{#var:image}}.png|link={{#var:lien}}|{{#var:lien}} x{{#var:nombre}}]] | ||
+ | <div style="position:relative"><!--- BOUCLE NOMBRE ---> | ||
+ | {{#loop:truelle | ||
+ | |1 | ||
+ | |{{#len:{{#var:nombre}}}} | ||
+ | |<div style="position:absolute; top:-18px; left:{{#expr:23-5*({{#var:truelle}}-1)}}px">[[Image:{{#sub:{{#var:nombre}}|-{{#var:truelle}}|1}}.png|link={{#var:lien}}|{{#var:lien}} x{{#var:nombre}}]]</div> | ||
+ | }} | ||
+ | </div> | ||
+ | {{#ifeq:{{#var:number}} | ||
+ | |1 | ||
+ | | | ||
+ | |<!--- BOUCLE NOMBRE SLASH ---> | ||
+ | {{#loop:truelle | ||
+ | |1 | ||
+ | |{{#len:{{#var:nombre}}}} | ||
+ | | | ||
+ | <div style="position:absolute; top:100px; left:{{#expr:7-5*({{#var:truelle}}-1)}}px">[[Image:{{#sub:{{#var:nombre}}|-{{#var:truelle}}|1}}tris.png|link=]]</div> | ||
+ | <div style="position:absolute; top:100px; left:{{#expr:16+5*({{#var:truelle}}-1)}}px">[[Image:{{#sub:{{#var:nombre}}|{{#expr:{{#var:truelle}}-1}}|1}}tris.png|link=]]</div> | ||
+ | }} | ||
+ | <div style="position:absolute; top:101px; left:13px">[[Image:slash.png|link=]]</div> | ||
+ | }} | ||
+ | </div> | ||
+ | }} | ||
+ | }} | ||
+ | {{#ifexpr:{{{Yang|0}}}=100000|<div style="position:absolute; top:-58px; right:15px">[[Image:{{{Yang}}}bis.png|link=]]</div> | ||
+ | |{{#loop:truelle | ||
+ | |1 | ||
+ | |{{#len:{{{Yang|0}}}}} | ||
+ | | | ||
+ | <div style="position:absolute; top:-58px; left:{{#expr:305-5*({{#var:truelle}}-1)-3*floor(({{#var:truelle}}-1)/3)}}px">[[Image:{{#sub:{{{Yang|0}}}|-{{#var:truelle}}|1}}bis.png|link=]]</div> | ||
+ | {{#ifeq:{{#expr:{{#var:truelle}} mod 3}}|0|{{#ifeq:{{#var:truelle}}|{{#len:{{{Yang|0}}}}} | ||
+ | | | ||
+ | | | ||
+ | <div style="position:absolute; top:-58px; left:{{#expr:305-5*({{#var:truelle}}-1)-3*floor(({{#var:truelle}}-1)/3)-4}}px">[[Image:point.png|link=]]</div> | ||
+ | | | ||
+ | }} | ||
+ | }} | ||
+ | }} | ||
+ | }} | ||
+ | {{#loop:truelle | ||
+ | |1 | ||
+ | |{{#len:{{{Gaya|0}}}}} | ||
+ | | | ||
+ | <div style="position:absolute; top:-58px; left:{{#expr:195-5*({{#var:truelle}}-1)-3*floor(({{#var:truelle}}-1)/3)}}px">[[Image:{{#sub:{{{Gaya|0}}}|-{{#var:truelle}}|1}}bis.png|link=]]</div> | ||
+ | {{#ifeq:{{#expr:{{#var:truelle}} mod 3}}|0|{{#ifeq:{{#var:truelle}}|{{#len:{{{Gaya|0}}}}} | ||
+ | | | ||
+ | | | ||
+ | <div style="position:absolute; top:-58px; left:{{#expr:195-5*({{#var:truelle}}-1)-3*floor(({{#var:truelle}}-1)/3)-4}}px">[[Image:point.png|link=]]</div> | ||
+ | | | ||
+ | }} | ||
+ | }} | ||
+ | }} | ||
+ | <div style="position:absolute; top:-58px; left:228px">[[Image:Casefenetreyang.png|link=Yangs]]</div> | ||
+ | <div style="position:absolute; top:-58px; left:118px">[[Image:Casefenetreyang.png|link=Système de Gaya|Gayas]]</div> | ||
+ | </div> | ||
+ | </div> | ||
+ | </div> |