Documentation[voir] [modifier] [historique] [purger]

Cette page définit un module d'infobox. Pour les conseils sur l'usage de ce module, voyez Modèle:Infobox Plage.


local building = require "Module:Infobox/Fonctions/Bâtiment"
local general = require "Module:Infobox/Fonctions"
local wikidata = require "Module:Wikidata"


return {
	maincolor = "F7F4AA",
	parts = {
		
		general.title( "coursdeau"),
		general.mainimage('Article à illustrer Plage'),
		{type = 'table', rows = {
			{
				type = 'row',
				label = "Nom dans la langue originale",
				value = "nom dans la langue originale",
				wikidata = {property = 'P1705', showlang = true}
			},
			{type = 'row', label = "Nom officiel", plurallabel = "Noms officiels", value = "nom officiel", property = 'P1448'},
		}},
		
		{type = 'table', title = "Localisation", rows = {
			building.coordinates(),
			building.onshoreof(),
			{type = 'row', label = "Continent", plurallabel = "Continents", value = "continent", property = 'P30'},
			building.adminlocation(),
			{type = 'row', label = "Localisation géographique", value = "localisation géographique", property = 'P706'},
			{type = 'row', label = "Partie de", value = "partie de", property = 'P361'},
			building.elevation(),
			building.protectedarea(),
			building.transport(),
		}},
		
		{type = 'table', title = "Description", rows = {
			{type = 'row', label = "Type", value = "type", property = 'P31', excludevalues = 'Q40080'},
			{type = 'row', label = "Type de sol", value = "sol", property = 'P186'},
			{
				type = 'row',
				label = "Extrémité",
				plurallabel = "Extrémités",
				value = "extrémité",
				wikidata = {property = 'P559', showqualifiers = 'P654'}
			},
			building.dimensions(),
			{type = 'row', label = "Subdivision", plurallabel = "Subdivisions", value = "subdivision", property = 'P150'},
			{type = 'row', label = "Climat", plurallabel = "Climats", value = "climat", property = 'P2564'},
			{type = 'row', label = "Qualité des eaux", value = "qualité des eaux"},
			{type = 'row', label = "Label", plurallabel = "Labels", value = "label", property = 'P166'},
			{type = 'row', label = '[[Beach Advisory and Closing On-line Notification|BEACON]]', value = 'BEACON', wikidata = {property = "P7225", urlpattern="https://ofmpub.epa.gov/apex/beacon2/f?p=beacon2:37:0::NO::P37_BEACH_ID:$1"}},
		}},
		
		{type = 'table', title = "Fonctionnement", rows = {
			{type = 'row', label = "Propriété", value = "propriété", property = 'P127'},
			building.owner(),
			building.protection(),
			{type = 'row', label = "Public accepté", value = "public accepté"},
			{type = 'row', label = "Période d'ouverture", value = "période ouverture"},
			{type = 'row', label = "Baignade surveillée", value = "heure surveillée"},
			{type = 'row', label = "Entrée payante", value = "entrée payante"},
			building.equipment(),
			{type = 'row', label = "Services", value = "services"},
			{type = 'row', label = "Activités gratuites", value = "activités gratuites"},
			{type = 'row', label = "Activités payantes", value = "activités payantes"},
			building.website(),
		}},
		
		building.geoloc({pointtype = 'lac', maptype = 'relief', marker = 'swimming'}),
	}
}