Modèle:Mare : Différence entre versions

De Mares des Garrigues
 
(122 révisions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
 
<noinclude>
 
<noinclude>
Modèle mare.
+
Ceci est le modèle « Mare ». Il devrait être appelé selon le format suivant :
</noinclude>
+
<pre>
<includeonly>
+
{{Mare
{{Infobox
+
|nom=
|nom             = {{{nom|{{PAGENAME}}}}}
+
|image=
|image           = {{{image|}}}
+
|commune=
|légende          = {{{légende|}}}
+
|coordonnees=
|taille image    = {{{taille image|}}}
+
|napoleon=
|latitude        = {{{latitude|}}}
+
|environnement=
|longitude        = {{{longitude|}}}
+
|usage=
|altitude        = {{{altitude|}}}
+
|forme=
 +
|commentaire mare=
 
}}
 
}}
 +
</pre>
 +
Modifiez la page pour voir le texte du modèle.
 +
</noinclude><includeonly>
 +
{{#default_form:Mare}}
 +
{{#if:{{{commentaire mare|}}}|{{{commentaire mare|}}}}}
 +
{| cellspacing="0" class="mare" style="position:relative; float: right; clear: right; width: 280px;"
 +
|- <!-- *** Identite *** -->
 +
{{#if:{{{nom|}}}|{{Tablesection|Label={{{nom|}}}|Color=#C4D6F4|Textcolor=#fff}}}}
 +
|- <!-- *** image *** -->
 +
{{#if:{{{image|}}}|{{Tablesection|Label=[[Fichier:{{{image|}}}|center|280px]]|Textcolor=#ddd|Color=#fff}}{{#set:Has image=Fichier:{{{image|}}} }} }}
 +
|- <!-- *** Situation *** -->
 +
{{Tablesection|Label=Situation|Color=#C4D6F4|Textcolor=#fff}} 
 +
|- <!-- *** Projet *** -->
 +
{{#if:{{{projet|}}}|{{Tablerow|Label=Projet |Value=[[:Category:{{{projet|}}}|{{{projet|}}}]]}}}}
 +
|- <!-- *** Commune *** -->
 +
{{#if:{{{commune|}}}|{{Tablerow|Label=Commune de |Value=[[Located in::{{{commune|}}}]]}}}}
 +
|- <!-- *** Coordonnées *** -->
 +
{{#if:{{{coordonnees|}}}|{{Tablerow|Label=Coordonnées : |Value=[[Has coordinates::{{{coordonnees|}}}]] WGS84}}}}
 +
|- <!-- *** Carte *** -->
 +
{{#if:{{{coordonnees|}}}|{{Tablesection|Label={{#display_point:{{{coordonnees|}}}|zoom=17|height=250|scrollwheelzoom= false}}}}}}
 +
|- <!-- *** Cadastre Napoleonien *** -->
 +
{{#if:{{{napoleon|}}}|{{Tablerow|Label=Visible dans cadastre Napoléonien ? |Value=[[Visible in Napoleon::{{{napoleon|}}}]]}}|{{Tablerow|Label=Visible dans cadastre Napoléonien ? |Value=non}}}}
 +
|- <!-- *** Environnement *** -->
 +
{{#if:{{{environnement|}}}|{{Tablerow|Label=Environnement |Value=[[Has environment::{{{environnement|}}}]]}}}}
 +
|- <!-- *** Description *** -->
 +
{{Tablesection|Label=Description|Color=#C4D6F4|Textcolor=#fff}}
 +
|- <!-- *** Forme *** -->
 +
{{#if:{{{forme|}}}|{{Tablerow|Label=Forme |Value=[[Has shape::{{{forme|}}}]]}}}}
 +
|- <!-- *** Usage *** -->
 +
{{#if:{{{usage|}}}|{{Tablerow|Label=Usage |Value={{#arraymap:{{{usage|}}}|,|x|[[Used as::x]]}}}}}}
 +
|}
 +
<!-- *** Commune *** -->
 +
{{#if:{{{commune|}}}|[[Category:{{{commune}}}]]}}
  
{| cellspacing="0" class="smworgsample" style="position:relative; float: right; clear: right; width: 280px;"
+
{{#ifeq:{{#ask:[[{{PAGENAME}}]][[Has observation date::+]]|?Has observation date=|format=count|mainlabel=-}}|0||===Observations===}}
! colspan="2" style="padding-top: 2px; " |  {{PAGENAME}} <span style="position:relative; top:-2px; float:right;">[[File:SMW-Info-button.png|14px|link=Special:Browse/{{FULLPAGENAME}}]]</span>
+
 
|- <!-- *** IMAGE *** -->
+
</includeonly>
{{#if:{{{image|}}}|{{Tablesection|Label=[[File:{{{image|}}}|280px|center|{{{imgdesc|}}}]] |Textcolor=#ddd|Color=#fff}}{{#set:Has image=File:{{{image|}}} }} }}
 
|-
 
{{#ifeq:{{{légende|}}}|||{{Tablerow|Label=Image shows:|Value={{{légende|}}} }}}}
 
|- <!-- *** SLIDESHOW *** -->
 
{{#if:{{{collection|}}}|{{Tablesection|Label={{#ask: [[has image collection::{{{collection|}}}]]|?has description|widths=220|heights=220|format=gallery|widget=slideshow|overlay=yes|class=demo-center|navigation=auto|autocaptions=no}}|Color=#fff|Textcolor=#AAA}}}}
 
|- <!-- *** SUMMARY *** -->
 
{{Tablesection|Label=Summary|Color=#C4D6F4|Textcolor=#fff}} 
 
|-
 
{{#ifeq:{{#show: {{FULLPAGENAME}}|?Population}}|||{{Tablerow|Label=Population:|Value={{#show: {{FULLPAGENAME}}|?Population}} }}}}
 
|-
 
{{#ifeq:{{#show: {{FULLPAGENAME}}|?Area}}|||{{Tablerow|Label=Area:|Value={{#show: {{FULLPAGENAME}}|?Area}} }}}}
 
|-
 
{{#ifeq:{{#show: {{FULLPAGENAME}}|?Located in}}|||{{Tablerow|Label=Located in:|Value={{#show: {{FULLPAGENAME}}|?Located in}} }}}}
 
|-
 
{{#ifeq:{{#show: {{FULLPAGENAME}}|?Average rainy days}}|||{{Tablerow|Label=Average rainy days:|Value={{#show: {{FULLPAGENAME}}|?Average rainy days}} }}}}
 
|- <!-- *** CHARTING *** -->
 
{{#if:{{{chart|}}}|{{Tablesection|Label=Chart|Color=#C4D6F4|Textcolor=#fff}}}}
 
|-
 
{{#if:{{{chart|}}}|{{Tablesection|Label={{{chart|}}}|Color=#fff}}}}
 
|- <!-- *** MAP *** -->
 
{{#if:{{#show: {{FULLPAGENAME}}|?Has coordinates}}|{{Tablesection|Label=Map|Color=#C4D6F4|Textcolor=#fff}}}}
 
|-
 
{{#if:{{#show: {{FULLPAGENAME}}|?Has coordinates}}|{{Tablesection|Label={{#display_map:{{#show: {{FULLPAGENAME}}|?Has coordinates}}|width=280|height=280|service=osm}}|Color=#fff}}}}
 
|}
 

Version actuelle datée du 7 juin 2018 à 21:19

Ceci est le modèle « Mare ». Il devrait être appelé selon le format suivant :

{{Mare
|nom=
|image=
|commune=
|coordonnees=
|napoleon=
|environnement=
|usage=
|forme=
|commentaire mare=
}}

Modifiez la page pour voir le texte du modèle.