Aller au contenu

Module:Infobox/Mine

Une page de Wikipédia, l'encyclopédie libre.
Ceci est une version archivée de cette page, en date du 16 septembre 2015 à 14:05 et modifiée en dernier par Zolo (discuter | contributions) (Nouvelle page : local building = require "Module:Infobox/Fonctions/Bâtiment" local general = require "Module:Infobox/Fonctions" local wikidata = require "Module:Wikidata" local function getDate...). Elle peut contenir des erreurs, des inexactitudes ou des contenus vandalisés non présents dans la version actuelle.
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)

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


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

local function getDate(event) 
	return wikidata.getTheDate{targetvalue = event, property = 'P793', addcat = true, entity = item}
end

return 
	{
	maincolor = '#E6E3CF',
	parts =
    	{
			general.title(),
			general.logo(),
			building.mainimage('Defaut 2.svg'),
			{type = 'table', title = 'Géographie', rows = {
				building.country(),
				building.adminlocation(),
				}
		},
		{type = 'table', title = 'Caractéristiques', rows = {
			{type = 'row', label = 'Exploitant', value = 'exploitant', property = 'P137'},
			{type = 'row', label = 'Ressources', value = 'ressources'},
			building.opening(),
			building.closure(),
			{type = 'row', label = 'Pronfondeur', value = 'profondeur'},
			building.protection(),
			},
		},
		{type = 'table', title = 'Localisation', rows = {
				building.coordinates(),
				}
			},
			building.geoloc({pointtype = 'mine', maptype = 'relief'}),
	}
}