« Modèle:AfficheOrganisation » : différence entre les versions
De Mouvement Arbre-Évolution
Aucun résumé des modifications |
Aucun résumé des modifications |
||
(47 versions intermédiaires par 2 utilisateurs 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:{{{org|}}}-5D-5D/-3FEst-20une-20organisation-20du-20type%3DtypeO/-3FNombre-20de-20projets-20soutenus%3DnPr/-3FA-20la-20description-20d-20organisation%3DDescO/-3FA-20l-20adresse-20web%3DsiteO/-3FA-20l-20adresse-20physique%3DadrO/-3F-2DEst-20le-20logo-20de-20l-20organisation% | url=https://wiki.arbre-evolution.org/index.php/Sp%C3%A9cial:Requ%C3%AAter/-5B-5B:{{{org|}}}-5D-5D/-3FEst-20une-20organisation-20du-20type%3DtypeO/-3FNombre-20de-20projets-20soutenus%3DnPr/-3FA-20la-20description-20d-20organisation%3DDescO/-3FA-20l-20adresse-20web%3DsiteO/-3FA-20l-20adresse-20physique%3DadrO/-3F-2DEst-20le-20logo-20de-20l-20organisation.path%3DlogoO/-3FArbres-20allou%C3%A9s%3DaAll/-3FArbres-20engag%C3%A9s%3DaEng/-3FCarbone-20allou%C3%A9%3Dco2Al/-3FCarbone-20engag%C3%A9%3Dco2Eng/mainlabel%3D/limit%3D1/offset%3D0/mainlabel%3DPr/format%3Dcsv | ||
|data=pr=pr,typeO=typeO,nPr=nPr,descO=descO,siteO=siteO,adrO=adrO, | |data=pr=pr,typeO=typeO,nPr=nPr,descO=descO,siteO=siteO,adrO=adrO,logoO=logoO,aAll=aAll,aEng=aEng,co2Al=co2Al,co2Eng=co2Eng | ||
}}{{#get_web_data: | }}{{#get_web_data: | ||
url=https://wiki.arbre-evolution.org/index.php/Sp%C3%A9cial:Requ%C3%AAter/-5B-5BA-20la-20contribution.Est-20contribu%C3%A9-20par::{{{org|}}}-5D-5D/-3F-2DPoss%C3%A8de-20un-20sous-2Dobjet.A-20le-20nom-20de-20projet%3DnomPr/-3F-2DPoss%C3%A8de-20un-20sous-2Dobjet.Municipalit%C3%A9-20du-20projet%3Dmun/-3F-2DPoss%C3%A8de-20un-20sous-2Dobjet. | url=https://wiki.arbre-evolution.org/index.php/Sp%C3%A9cial:Requ%C3%AAter/-5B-5B:{{{org|}}}-5D-5D/-3FEst-20une-20organisation-20signataire%3DorgSign/-3FEst-20une-20organisation-20contributrice=orgCont/limit%3D1/offset%3D0/mainlabel%3DPr/format%3Dcsv | ||
|data=idPr=idPr,nomPr=nomPr,mun=mun, | |data=orgSign=orgSing,orgCont=orgCont | ||
}}{{#get_web_data: | |||
url=https://wiki.arbre-evolution.org/index.php/Sp%C3%A9cial:Requ%C3%AAter/-5B-5BA-20la-20contribution.Est-20contribu%C3%A9-20par::{{{org|}}}-5D-5D/-3F-2DHas-20subobject%3DidPr/-3F-2DPoss%C3%A8de-20un-20sous-2Dobjet.A-20le-20nom-20de-20projet%3DnomPr/-3F-2DPoss%C3%A8de-20un-20sous-2Dobjet.Municipalit%C3%A9-20du-20projet%3Dmun/-3F-2DPoss%C3%A8de-20un-20sous-2Dobjet.Localisation-20approximative%3DlocP/-3F-2DPoss%C3%A8de-20un-20sous-2Dobjet.A-20le-20type-20de-20projet%3DtypeP/mainlabel%3D/limit%3D50/offset%3D0/format%3Dcsv | |||
|data=idPr=idPr,nomPr=nomPr,locP=locP,mun=mun,typeP=typeP | |||
}} | }} | ||
<!-- TITRES --> | <!-- TITRES --> | ||
<div class="col mb-2"> | <div class="col mb-2"> | ||
<div class="row"> | <div class="row no-gutter"> | ||
<h1 class="col-12 mb-0">{{#external_value: pr}}</h1> | <h1 class="col-12 mb-0">{{#external_value: pr}}</h1> | ||
<h4 class="col- | <h4 class="col-7 mb-0">{{#external_value: typeO}}</h4> | ||
<h4 class="col- | <h4 class="col-5 text-left my-0 pr-0">Projet(s)</h4> | ||
</div> | </div> | ||
</div> | </div> | ||
Ligne 17 : | Ligne 20 : | ||
<!-- COLONNE DE GAUCHE --> | <!-- COLONNE DE GAUCHE --> | ||
<div class="col-7"> | <div class="col-7"> | ||
<div class="col-4 border border-success m-2 ml-0 pt-2 float-left fs-sm"> | |||
{{#if: {{#external_value: logoO}}|<htmltag tagname="img" src="{{#external_value: logoO}}" class="img-fluid card-img-top logoBailleur"></htmltag>| }}<small> | |||
{{#external_value: adrO}}<br> | |||
[{{#external_value: siteO}} Site web] | |||
</small> | |||
</div> | |||
{{#external_value: descO}} | {{#external_value: descO}} | ||
</div> | </div> | ||
<!-- COLONNE DE DROITE --> | <!-- COLONNE DE DROITE --> | ||
<div class="col-5"> | <div class="col-5"> | ||
<!-- CARTE --> | <!-- CARTE --> | ||
<div class=" | <div class="carte border border-success"> | ||
{{#display_map: | {{#display_map: {{#for_external_table:| | ||
{{{locP}}} ~ {{{nomPr}}} ({{{idPr}}}) ~ | |||
| | |||
| | {{{typeP}}} ~ {{#switch: {{{typeP}}}|Reboisement social=CarteMarkerVert.png|Reboisement social (pré-protocole)=CarteMarkerVert.png|Carbone riverain=CarteMarkerBleu.png|Aménagement comestible=CarteMarkerRose.png|Microforêt=CarteMarkerOrange.png|Projet spécial=CarteMarkerNoir.png|#default=CarteMarkerNoir.png}}; | ||
}} | |||
| title=Projets de reboisement | |||
| height=320 | |||
| width=100% | | width=100% | ||
| | | minzoom=5 | ||
| maxzoom=15 | |||
| markercluster=no | |||
| maxzoom= | |||
| | |||
| cluster=yes | | cluster=yes | ||
| clustermaxzoom= | | clustermaxzoom=7 | ||
}} | }} | ||
</div> | </div> | ||
<small> | |||
<table class="table table-hover table-sm w-100 bg-light"> | |||
{{#for_external_table:|<tr><td class="text-center mb-1 rounded">[{{fullurl:Fiche Projet|projet={{urlencode:{{{idPr}}}}} {{{nomPr}}}]</td></tr>}} }} | |||
</table> | |||
</small> | |||
<!-- SITUATION DU PROJET - en vert --> | |||
{{#ifeq: {{#external_value: orgCont}}|vrai| | |||
<div class="col-12 shadow px-3 py-2 mb-3 text-white" style="background-color:rgba(76, 169, 72);z-index:1000;border-radius:5px;"> | |||
<h4>Bilan carbone</h4> | |||
<table class="table table-striped"> | |||
<tr><th> </th><th>Engagés</th><th>Alloués</th></tr> | |||
<tr><td>Arbres</td><td>{{#external_value: aEng}}</td><td>{{#external_value: aAll}}</td></tr> | |||
<tr><td>CO<sub>2</sub></td><td>{{#external_value: co2Eng}} tonnes</td><td>{{#external_value: co2Al}} tonnes</td></tr> | |||
</table> | |||
</div> | |||
|}} | |||
{{#ifeq: {{#external_value: orgSign}}|vrai| | |||
<div class="col-12 shadow px-3 py-2 mb-3 text-white" style="background-color:rgba(76, 169, 72);z-index:1000;border-radius:5px;"> | |||
<h4>Contributions</h4> | |||
Signataire des projets : | |||
</div> | |||
|}} | |||
</div> | </div> | ||
</div> | </div> | ||
__NOTOC__ | |||
__NOEDITSECTION__ |