Modèle:Communes-infos : Différence entre versions

De geoLwiki - Guide géologique du Luxembourg
Ligne 12 : Ligne 12 :
 
|Chef-lieu||'''{{#sql2wiki_f:select nom_cheflieu from communes where Nom_com_min="{{FULLPAGENAME}}";}}'''
 
|Chef-lieu||'''{{#sql2wiki_f:select nom_cheflieu from communes where Nom_com_min="{{FULLPAGENAME}}";}}'''
 
|-
 
|-
|Carte||{{#icon:World_small.gif|Carte||http://gis.pch.etat.lu/arcgis/rest/services/act/topocarto/MapServer/export?bbox={{#sql2wiki_f:select nord_max from communes where Nom_com_min="{{FULLPAGENAME}}";}},{{#sql2wiki_f:select est_max from communes where Nom_com_min="{{FULLPAGENAME}}";}},{{#sql2wiki_f:select nord_min from communes where Nom_com_min="{{FULLPAGENAME}}";}},{{#sql2wiki_f:select est_min from communes where Nom_com_min="{{FULLPAGENAME}}";}}&format=jpeg=&f=image&size=600,600}}
+
|Carte||{{#icon:World_small.gif|Carte||http://gis.pch.etat.lu/arcgis/rest/services/act/topocarto/MapServer/export?bbox={{#sql2wiki_f:select est_min from communes where Nom_com_min="{{FULLPAGENAME}}";}},{{#sql2wiki_f:select nord_min from communes where Nom_com_min="{{FULLPAGENAME}}";}},{{#sql2wiki_f:select est_max from communes where Nom_com_min="{{FULLPAGENAME}}";}},{{#sql2wiki_f:select nord_max from communes where Nom_com_min="{{FULLPAGENAME}}";}}&format=jpeg=&f=image&size=600,600}}
 
|}
 
|}

Version du 29 décembre 2008 à 09:51

Code {{#sql2wiki_f:select truncate(c_com,0) from communes where Nom_com_min="Modèle:Communes-infos";}}
Aire (km2)    {{#sql2wiki_f:select truncate(area/1000000,1) from communes where Nom_com_min="Modèle:Communes-infos";}}
Canton {{#sql2wiki_f:select nom_canton from communes where Nom_com_min="Modèle:Communes-infos";}}
Localités {{#sql2wiki_tinv:select Nom_lieu_min, Name, Numm,c_section from lieux where Nom_com_min="Modèle:Communes-infos" order by nom_lieu_min;}}
Sections {{#sql2wiki_tinv:select c_section , Nom_section from sections where Nom_com_min="Modèle:Communes-infos" order by c_section;}}
Chef-lieu {{#sql2wiki_f:select nom_cheflieu from communes where Nom_com_min="Modèle:Communes-infos";}}
Carte Carte http://gis.pch.etat.lu/arcgis/rest/services/act/topocarto/MapServer/export?bbox={{#sql2wiki_f:select est_min from communes where Nom_com_min="Modèle:Communes-infos";}},{{#sql2wiki_f:select nord_min from communes where Nom_com_min="Modèle:Communes-infos";}},{{#sql2wiki_f:select est_max from communes where Nom_com_min="Modèle:Communes-infos";}},{{#sql2wiki_f:select nord_max from communes where Nom_com_min="Modèle:Communes-infos";}}&format=jpeg=&f=image&size=600,600}}