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 Port.


local building = require "Module:Infobox/Fonctions/Bâtiment"
local port = require "Module:Infobox/Fonctions"

return 
	{
	maincolor = '#A8D2FF',
	parts =
    	{
		port.title('map'),
		port.mainimage('Article à illustrer Port', 'Defaut 2.svg'),
		{type = 'table', title = 'Présentation', rows = {
			{type = 'row', label = 'Propriétaire', value = 'propriétaire', property = 'P127'},
			{type = 'row', label = 'Opérateur', value = 'opérateur', property = 'P137'},
			{type = 'row', label = 'Type', value = 'type'},
			building.construction(),
			{type = 'row', label = 'Statut', value = 'statut'},
			{type = 'row', label = 'Tirant d\'eau', value = 'tirant d\'eau', wikidata = {property = 'P2262', showqualifiers = 'P518'}},
			{type = 'row', label = 'Tonnage', value = 'tonnage', wikidata = {property = 'P4519', showqualifiers = 'P518'}},
			{type = 'row', label = 'Longueur', value = 'longueur', wikidata = {property = 'P2043', showqualifiers = 'P518'}},
			{type = 'row', label = 'Trafic', value = 'trafic'},
			{type = 'row', label = 'Activités', value = 'activités'},
			{type = 'row', label = 'Superficie', value = 'superficie', property = 'P2046'},
			{type = 'row', label = 'Superficie d\'eau', value = 'superficie d\'eau', property = 'P8887'},
			{type = 'row', label = 'Places', value = 'places'},
			{type = 'row', label = 'Flotte de pêche', value = 'flotte de pêche'},
			{type = 'row', label = 'Tonnage pêché', value = 'tonnage pêché'},
			building.equipment(),
			}
		},
		{type = 'table', title = 'Géographie', rows = {
			building.coordinates(),
			building.adminlocation(),
			{type = 'row', label = "Plan d'eau", value = "plan d'eau", property = 'P206'},
			}
		},
		building.geoloc({pointtype = 'port', marker = 'harbor'}),
	}
}