« Modèle:Affiche Plantation2 » : différence entre les versions
De Mouvement Arbre-Évolution
Aucun résumé des modifications |
Aucun résumé des modifications |
||
(18 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
{{#get_web_data: | {{#get_web_data: | ||
url=https://wiki.arbre-evolution.org/index.php/Sp%C3%A9cial:Requ%C3%AAter/-5B-5B-2DHas-20subobject::{{#replace:{{#explode: {{{1|}}}|~|1}}| |_}}-5D-5D-20-5B-5BEst-20une-20essence-20plant%C3%A9e::vrai-5D-5D/-3FContexte%3Dcont/-3F-2DPoss%C3%A8de-20un-20sous-2Dobjet.Est-20une-20parcelle-20corrective% | url=https://wiki.arbre-evolution.org/index.php/Sp%C3%A9cial:Requ%C3%AAter/-5B-5B-2DHas-20subobject::{{#replace:{{#explode: {{{1|}}}|~|1}}| |_}}-5D-5D-20-5B-5BEst-20une-20essence-20plant%C3%A9e::vrai-5D-5D/-3FContexte%3Dcont/-3F-2DPoss%C3%A8de-20un-20sous-2Dobjet.Est-20une-20parcelle-20corrective%3Dpcor/-3FType-20de-20plantation%3DtR/-3FEssence%3DeR/-3FNombre-20de-20plants%3DnR/-3FTaille%3DtlR/-3FEssence.Nom-20fran%C3%A7ais%3DnFr/mainlabel%3D-2D/limit%3D5000/order%3Dasc,asc,asc/sort%3Dcontexte,Type-20de-20plantation,Essence/offset%3D0/format%3Dcsv | ||
|format=CSV with header | |format=CSV with header | ||
| data=cont=cont, | | data=cont=cont,pcor=pcor,tR=tR,eR=eR,nR=nR,tlR=tlR,nFr=nFr | ||
}}{{#get_web_data: | }}{{#get_web_data: | ||
url=https://wiki.arbre-evolution.org/index.php/Sp%C3%A9cial:Requ%C3%AAter/-5B-5B:{{#replace:{{#explode: {{{1|}}}|~|1}}| |_}}-5D-5D/-3FType-20de-20derni%C3%A8re-20pr%C3%A9sence-20A%C3%89%3DdV/mainlabel%3D/limit%3D1/format%3Dcsv | url=https://wiki.arbre-evolution.org/index.php/Sp%C3%A9cial:Requ%C3%AAter/-5B-5B:{{#replace:{{#explode: {{{1|}}}|~|1}}| |_}}-5D-5D/-3FEst-20une-20parcelle-20corrective%3Dcorr/-3FType-20de-20derni%C3%A8re-20pr%C3%A9sence-20A%C3%89%3DdV/mainlabel%3D/limit%3D1/format%3Dcsv | ||
|data=dV=dV}} | |data=dV=dV,corr=corr}} | ||
<div class="col no-gutter"> | <div class="col no-gutter"> | ||
<h4 class="ml-n3">[{{fullurl:Fiche Parcelle|parcelle={{urlencode:{{#explode: {{{1|}}}|~|1}}}} }} {{#explode: {{{1|}}}|~|0}}]</h4> | <h4 class="ml-n3">[{{fullurl:Fiche Parcelle|parcelle={{urlencode:{{#explode: {{{1|}}}|~|1}}}} }} {{#explode: {{{1|}}}|~|0}}]</h4> | ||
{{#switch: {{#external_value: corr}} | |||
|vrai= | |||
<h5 class="ml-n3">Replantation sur parcelle corrective</h5> | |||
<div class="row"> | <div class="row"> | ||
{{#for_external_table:| | {{#for_external_table:| | ||
{{#ifeq: {{{ | {{#ifeq: {{{pcor}}}|vrai| | ||
<div class="pr-2"> | <div class="pr-2"> | ||
{{AfficheVignetteEssence|{{{eR}}}|{{{nR}}}|{{{tR}}}|{{{nFr}}}|{{{tlR}}}}} | {{AfficheVignetteEssence|{{{eR}}}|{{{nR}}}|{{{tR}}}|{{{nFr}}}|{{{tlR}}}}} | ||
</div> | </div> | ||
|}} | |}}}}</div> | ||
|}} | |faux= | ||
{{#ifeq: {{{dV}}}|Replantation|| | |||
<h5 class="ml-n3">Plantation initiale</h5> | |||
<div class="row"> | <div class="row"> | ||
{{#for_external_table:| | {{#for_external_table:| | ||
{{#ifeq: {{{cont}}}|Plantation initiale| | {{#ifeq: {{{cont}}}|Plantation initiale| | ||
<div class="pr-2"> | <div class="pr-2"> | ||
{{AfficheVignetteEssence|{{{eR}}}|{{{nR}}}|{{{tR}}}|{{{nFr}}}|{{{tlR}}}}} | {{AfficheVignetteEssence|{{{eR}}}|{{{nR}}}|{{{tR}}}|{{{nFr}}}|{{{tlR}}}}} | ||
</div> | </div> | ||
|}}}}</div> | |||
}} | }} | ||
|}} | |#default=Devrait être OK | ||
}}</ | }} | ||
{{#ifeq: {{#external_value: dV}}|Replantation| | |||
<h5 class="ml-n3">Replantation</h5> | |||
<div class="row"> | <div class="row"> | ||
{{#for_external_table:| | {{#for_external_table:| | ||
Ligne 38 : | Ligne 39 : | ||
{{AfficheVignetteEssence|{{{eR}}}|{{{nR}}}|{{{tR}}}|{{{nFr}}}|{{{tlR}}}}} | {{AfficheVignetteEssence|{{{eR}}}|{{{nR}}}|{{{tR}}}|{{{nFr}}}|{{{tlR}}}}} | ||
</div> | </div> | ||
|}} | |}}}}</div> | ||
}}</div> | |}}</div> | ||
</div> | |||
__NOEDITSECTION__ | __NOEDITSECTION__ |
Dernière version du 5 juin 2024 à 14:32
[1]
Devrait être OK