Aller au contenu

Module:Infobox/Point chaud

Une page de Wikipédia, l'encyclopédie libre.
Ceci est une version archivée de cette page, en date du 4 juillet 2019 à 22:43 et modifiée en dernier par Sémhur (discuter | contributions). Elle peut contenir des erreurs, des inexactitudes ou des contenus vandalisés non présents dans la version actuelle.

 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 Point chaud.


local localdata = require "Module:Infobox/Localdata"
local geolocalisation = require "Module:Infobox/Fonctions/Géolocalisation"
local general = require "Module:Infobox/Fonctions"
local wikidata = require "Module:Wikidata"
local globe = require "Module:Wikidata/Globes"

local function globe()
	if localdata.globe then
		return localdata.globe
	end
	local p376 = wd.formatStatements{property = 'P376', entity = localdata.item, displayformat = "raw"}
	if p376 then
		return wdGlobe[ "http://www.wikidata.org/entity/" .. p376 ]
	end
end

return {
	maincolor = "B00000",
	parts = {
		
		general.title( "map"),
		general.mainimage('Article à illustrer Point chaud'),
		{type = 'table', rows = {
			{type = 'row', label = "Nom", plurallabel = "Noms", value = "nom", property = 'P2561'},
			{type = 'row', label = "Type", value = "type", property = 'P31', excludevalues = 'Q40080'},
		}},
	
		{type = 'table', title = "Carte", rows = {
			geolocalisation.locationmap(),
			{type = 'row', label = "Numéro", value = "ordre dans la série", property = 'P1545'},
		}},
	
		{type = 'table', title = "Localisation", rows = {
			{type = 'row', label = "Plaque", plurallabel = "Plaques", value = "plaque", property = 'P4688'},
			geolocalisation.coordinates(),
		}},
		
--		general.geoloc({pointtype = 'volcan', maptype = 'relief', marker = 'triangle', default_zoom = 6, markercolor = '#778BA5'}), 
		geolocalisation.geoloc{ pointtype = getMapPoint(), globe = globe() },
	}
}