« Modèle:AffichePhotoParcelle » : différence entre les versions

De Mouvement Arbre-Évolution
Aller à :navigation, rechercher
Aucun résumé des modifications
Balise : Révoqué
Aucun résumé des modifications
 
(21 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-5BEst-20une-20photo-20de-20la-20parcelle::{{{parcelle|}}}-5D-5D/-3FPath%3DlienP/-3FPhoto-20pr%C3%A9f%C3%A9r%C3%A9e%3DprefP/mainlabel%3D/limit%3D5000/offset%3D0/format%3Dcsv
url=https://wiki.arbre-evolution.org/index.php/Sp%C3%A9cial:Requ%C3%AAter/-5B-5BEst-20une-20photo-20de-20la-20parcelle::{{{parcelle|}}}-5D-5D/-3FPath%3DlienPa/mainlabel%3D/limit%3D5000/offset%3D0/format%3Dcsv
| data=lienP=lienP,pref=prefP
| data=lienPa=lienPa
}}{{#get_web_data:
}}{{#get_web_data:
url=https://wiki.arbre-evolution.org/index.php/Sp%C3%A9cial:Requ%C3%AAter/-5B-5BCat%C3%A9gorie:PhotoParcelle-5D-5D-20-5B-5BEst-20une-20photo-20de-20la-20parcelle::{{{parcelle|}}}-5D-5D/-3FPath%3DphotoPrefHasard/mainlabel%3Did/limit%3D5000/order%3Drandom/sort%3DPath/offset%3D0/format%3Dcsv/link%3Dnone
url=https://wiki.arbre-evolution.org/index.php/Sp%C3%A9cial:Requ%C3%AAter/-5B-5B:{{{parcelle|}}}-5D-5D/-3FNombre-20de-20photos%3DnPhotosPa/format%3Dcsv
| data=photoPrefHasard=photoPrefHasard
| data=nPhotosPa=nPhotosPa
}}{{#get_web_data:
}}
url=https://wiki.arbre-evolution.org/index.php/Sp%C3%A9cial:Requ%C3%AAter/-5B-5BCat%C3%A9gorie:PhotoParcelle-5D-5D-20-5B-5BEst-20une-20photo-20de-20la-20parcelle::{{{parcelle|}}}-5D-5D/mainlabel%3Dcpt/format%3Dcount
{{#ifeq: {{#external_value: nPhotosPa}}| ||
| data=cpt=cpt
<h5>Photos de la parcelle ({{#external_value: nPhotosPa}})</h5>
}}{{#external_value: cpt}}
<div style="max-height:240px;">
<div style="max-height:240px;">
<div id="carouselParcelle" class="col-12 carousel slide rounded carousel-fade px-0 shadow" data-ride="carousel">
<div id="carouselParcelle" class="col-12 carousel slide rounded carousel-fade px-0 shadow" data-ride="carousel" data-interval="4000">
<div class="carousel-inner rounded">
<div class="carousel-inner rounded">
<div class="carousel-item active"><span class="d-block w-100">{{#replace: {{#external_value: photoPrefHasard}}|/images/|/images/thumb/}}/800px-{{#explode: {{#external_value: photoPrefHasard}}|/|6}}</span></div>
{{#for_external_table:|{{#if: {{{lienPa|}}}|<div class="carousel-item"><span class="d-block img-fluid">{{{lienPa}}}</span></div>|}}}}
{{#for_external_table:|{{#ifeq: {{{lienP}}}|||<div class="carousel-item"><span class="d-block w-100">{{#replace: {{{lienP}}}|/images/|/images/thumb/}}/800px-{{#explode:  {{{lienP}}}|/|6}}</span></div>}}}}
</div><htmltag tagname="button" class="btn carousel-control-prev fs-3 fw-bolder" type="button" data-target="#carouselParcelle" data-slide="prev"></htmltag><htmltag tagname="button" class="btn carousel-control-next fs-3 fw-bolder" type="button" data-target="#carouselParcelle" data-slide="next"></htmltag>
</div>
</div></div>
<htmltag tagname="button" class="btn carousel-control-prev fs-3 fw-bolder" type="button" data-target="#carouselParcelle" data-slide="prev"><span class="carousel-control-prev-icon" aria-hidden="true"></span><span class="visually-hidden">Précédent</span></htmltag>
}}
<htmltag tagname="button" class="btn carousel-control-next fs-3 fw-bolder" type="button" data-target="#carouselParcelle" data-slide="next"><span class="carousel-control-next-icon" aria-hidden="true"></span><span class="visually-hidden">Suivant</span></htmltag>
</div>
</div>

Dernière version du 24 juin 2024 à 10:38