Aller au contenu

Module:Infobox/Objet

Une page de Wikipédia, l'encyclopédie libre.
Ceci est une version archivée de cette page, en date du 19 septembre 2015 à 23:48 et modifiée en dernier par Thierry Caro (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 Objet.


local objet = require "Module:Infobox/Fonctions"

return {
	maincolor = '#E8E8E8',
	parts = {
		objet.title(),
		objet.mainimage('Article à illustrer Objet', 'Defaut 2.svg'),
		{type = 'table', rows = {
			{type = 'mixed', label = 'Type', value = 'type', property = 'P279'},
			},
		},
		{type = 'table', title = 'Caractéristiques', rows = {
			{type = 'mixed', label = 'Matériau', plurallabel = 'Matériaux', value = 'matériau', property = 'P186'},
			{type = 'mixed', label = 'Forme', value = 'forme', property	= 'P1419'},
			{type = 'mixed', label = 'Longueur', value = 'longueur', property = 'P2043'},
			{type = 'mixed', label = 'Largeur', value = 'largeur', property = 'P2049'},
			{type = 'mixed', label = 'Hauteur', value = 'hauteur', property = 'P2048'},
			{type = 'mixed', label = 'Diamètre', value = 'diamètre'},
			{type = 'mixed', label = 'Volume', value = 'volume'},
			{type = 'mixed', label = 'Poids', value = 'poids', property = 'P2067'},
			{type = 'mixed', label = 'Couleur', plurallabel = 'Couleurs', value = 'couleur', property = 'P462'},
			{type = 'mixed', label = 'Inscription', plurallabel = 'Inscriptions', value = 'inscription', wikidata = {property = 'P1684', conjtype = '<br />', numval = '3', rank = 'best'}},
			{type = 'mixed', label = 'Composé de', value = 'composé de', property = 'P527'},
			},
		},
		{type = 'table', title = 'Découverte', rows = {
			{type = 'mixed', label = 'Découvreur', plurallabel = 'Découvreurs', value = 'découvreur', property = 'P61'},
			{type = 'mixed', label = 'Date', value = 'découverte', property = 'P575'},
			{type = 'mixed', label = 'Site', value = 'site de découverte', property = 'P189'},
			},
		},
		{type = 'table', title = 'Conception', rows = {
			{type = 'mixed', label = 'Pays d\'origine', value = 'pays d\'origine', property = 'P495'},
			{type = 'mixed', label = 'Concepteur', plurallabel = 'Concepteurs', value = 'concepteur', property = 'P287'},
			{type = 'mixed', label = 'Date', value = 'création', property = 'P571'},
			{type = 'mixed', label = 'Inspiré de', value = 'inspiré de', property = 'P941'},
			{type = 'mixed', label = 'Fondé sur', value = 'fondé sur', property = 'P144'},
			{type = 'mixed', label = 'Précédé par', value = 'précédé par', property = 'P155'},
			},
		},
		{type = 'table', title = 'Fabrication', rows = {
			{type = 'mixed', label = 'Fabricant', plurallabel = 'Fabricants', value = 'fabricant', property = 'P176'},
			{type = 'mixed', label = 'Procédé', plurallabel = 'Procédés', value = 'procédé de fabrication', property = 'P2079'},
			{type = 'mixed', label = 'Site', plurallabel = 'Sites', value = 'site de fabrication', property = 'P1071'},
			{type = 'mixed', label = 'Coût', plurallabel = 'Coûts', value = 'coût de fabrication'},
			},
		},
		{type = 'table', title = 'Distribution', rows = {
			{type = 'mixed', label = 'Lancement', value = 'lancement', property = 'P729'},
			{type = 'mixed', label = 'Distribution', value = 'distribution', property = 'P437'},
			{type = 'mixed', label = 'Marque', plurallabel = 'Marques', value = 'marques', property = 'P1716'},
			{type = 'mixed', label = 'Prix de vente', value = 'prix de vente'},
			{type = 'mixed', label = 'Exemplaires', value = 'exemplaires', wikidata = {property = 'P1114', sorttype= 'chronological', showdate = true, precision = 'year'}},
			},
		},
		{type = 'table', title = 'Fonctionnement', rows = {
			{type = 'mixed', label = 'Énergie', plurallabel = 'Énergie', value = 'énergie', property = 'P618'},
			{type = 'mixed', label = 'Moteur', plurallabel = 'Moteurs', value = 'moteur', property = 'P516'},
			{type = 'mixed', label = 'Équipement', plurallabel = 'Équipements', value = 'équipement', property = 'P912'},
			{type = 'mixed', label = 'Produit', plurallabel = 'Produits', value = 'produit', property = 'P1056'},
			{type = 'mixed', label = 'Nouvelle fonctionnalité', value = 'nouvelle fonctionnalité', property = 'P751'},
			{type = 'mixed', label = 'Fonctionnalité supprimée', value = 'Fonctionnalité supprimée', property = 'P756'},
			},
		},
		{type = 'table', title = 'Utilisation', rows = {
			{type = 'mixed', label = 'Utilisateur', plurallabel = 'Utilisateurs', value = 'utilisateur', property = 'P1535'},
			{type = 'mixed', label = 'Opère sur', value = 'opère sur', property = 'P121'},
			{type = 'mixed', label = 'Usage', plurallabel = 'Usage', value = 'usage', property = 'P366'},
			{type = 'mixed', label = 'Sport', plurallabel = 'Sports', value = 'sport', property = 'P641'},
			{type = 'mixed', label = 'Mode d\'emploi', value = 'mode d\'emploi', wikidata = {property = 'P2078', displayformat = "weblink", showntext = "Version en ligne"}},
			{type = 'mixed', label = 'Suivi par', value = 'suivi par', property = 'P156'},
			{type = 'mixed', label = 'Retrait', value = 'retrait', property = 'P730'},
			},
		},
		{type = 'table', title = 'Conservation', rows = {
			{type = 'mixed', label = 'Propriétaire', plurallabel = 'Propriétaires', value = 'propriétaire', property = 'P127'},
			{type = 'mixed', label = 'Conservateur', plurallabel = 'Conservateurs', value = 'conservateur', property = 'P195'},
			{type = 'mixed', label = 'Numéro d\'inventaire', value = 'inventaire', property = 'P217'},
			{type = 'mixed', label = 'Statut patrimonial', value = 'statut patrimonial', property = 'P1435'},
			},
		}
	}
}