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", wikidata = {property = "P279"}},
			},
		},
		{type = "table", title = "Caractéristiques", rows = {
			{type = "mixed", label = "Matériau", plurallabel = "Matériaux", value = "matériau", wikidata = {property = "P186"}},
			{type = "mixed", label = "Forme", value = "forme", wikidata = {property	= "P1419"}},
			{type = "mixed", label = "Longueur", value = "longueur", wikidata = {property = "P2043"}},
			{type = "mixed", label = "Largeur", value = "largeur", wikidata = {property = "P2049"}},
			{type = "mixed", label = "Hauteur", value = "hauteur", wikidata = {property = "P2048"}},
			{type = "mixed", label = "Diamètre", value = "diamètre", wikidata = {property = "P2386"}},
			{type = "mixed", label = "Volume", value = "volume", wikidata = {property = "P2234"}},
			{type = "mixed", label = "Poids", value = "poids", wikidata = {property = "P2067"}},
			{type = "mixed", label = "Couleur", plurallabel = "Couleurs", value = "couleur", wikidata = {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", wikidata = {property = "P527"}},
			},
		},
		{type = "table", title = "Invention", rows = {
			{type = "mixed", label = "Inventeur", plurallabel = "Inventeurs", value = "inventeur", wikidata = {property = "P61"}},
			{type = "mixed", label = "Date", value = "date d'invention", wikidata = {property = "P575"}},
			},
		},
		{type = "table", title = "Conception", rows = {
			{type = "mixed", label = "Pays d'origine", value = "pays d'origine", wikidata = {property = "P495"}},
			{type = "mixed", label = "Concepteur", plurallabel = "Concepteurs", value = "concepteur", wikidata = {property = "P287"}},
			{type = "mixed", label = "Date", value = "création", wikidata = {property = "P571"}},
			{type = "mixed", label = "Inspiré de", value = "inspiré de", wikidata = {property = "P941"}},
			{type = "mixed", label = "Fondé sur", value = "fondé sur", wikidata = {property = "P144"}},
			{type = "mixed", label = "Précédé par", value = "précédé par", wikidata = {property = "P155"}},
			},
		},
		{type = "table", title = "Fabrication", rows = {
			{type = "mixed", label = "Fabricant", plurallabel = "Fabricants", value = "fabricant", wikidata = {property = "P176"}},
			{type = "mixed", label = "Procédé", plurallabel = "Procédés", value = "procédé de fabrication", wikidata = {property = "P2079"}},
			{type = "mixed", label = "Site", plurallabel = "Sites", value = "site de fabrication", wikidata = {property = "P1071"}},
			{type = "mixed", label = "Coût", plurallabel = "Coûts", value = "coût de fabrication", wikidata = {property = "P2130"}},
			},
		},
		{type = "table", title = "Distribution", rows = {
			{type = "mixed", label = "Lancement", value = "lancement", wikidata = {property = "P729"}},
			{type = "mixed", label = "Commercialisation", value = "commercialisation", wikidata = {property = "P5204"}},
			{type = "mixed", label = "Distribution", value = "distribution", wikidata = {property = "P437"}},
			{type = "mixed", label = "Marque", plurallabel = "Marques", value = "marques", wikidata = {property = "P1716"}},
			{type = "mixed", label = "Prix de vente", value = "prix de vente"},
			{type = "mixed", label = "Exemplaires", value = "exemplaires", wikidata = {property = "P2664", sorttype= "chronological", showdate = true, precision = "year"}},
			},
		},
		{type = "table", title = "Fonctionnement", rows = {
			{type = "mixed", label = "Énergie", plurallabel = "Énergie", value = "énergie", wikidata = {property = "P618"}},
			{type = "mixed", label = "Moteur", plurallabel = "Moteurs", value = "moteur", wikidata = {property = "P516"}},
			{type = "mixed", label = "Équipement", plurallabel = "Équipements", value = "équipement", wikidata = {property = "P912"}},
			{type = "mixed", label = "Connecteur", plurallabel = "Connecteurs", value = "connecteur", wikidata = {property = "P2935"}},
			{type = "mixed", label = "Puissance consommée", value = "puissance consommée", wikidata = {property = "P2791"}},
			{type = "mixed", label = "Produit", plurallabel = "Produits", value = "produit", wikidata = {property = "P1056"}},
			{type = "mixed", label = "Nouvelle fonctionnalité", value = "nouvelle fonctionnalité", wikidata = {property = "P751"}},
			{type = "mixed", label = "Fonctionnalité supprimée", value = "Fonctionnalité supprimée", wikidata = {property = "P756"}},
			},
		},
		{type = "table", title = "Utilisation", rows = {
			{type = "mixed", label = "Utilisateur", plurallabel = "Utilisateurs", value = "utilisateur", wikidata = {property = "P1535"}},
			{type = "mixed", label = "Opère sur", value = "opère sur", wikidata = {property = "P121"}},
			{type = "mixed", label = "Utilise", value = "utilise", wikidata = {property = "P2283"}},
			{type = "mixed", label = "Intéragit avec", value = "intéragit avec", wikidata = {property = "P129"}},
			{type = "mixed", label = "Usage", plurallabel = "Usage", value = "usage", wikidata = {property = "P366"}},
			{type = "mixed", label = "Sport", plurallabel = "Sports", value = "sport", wikidata = {property = "P641"}},
			{type = "mixed", label = "Mode d'emploi", value = "mode d'emploi", wikidata = {property = "P2078", displayformat = "weblink", text = "Version en ligne"}},
			{type = "mixed", label = "Suivi par", value = "suivi par", wikidata = {property = "P156"}},
			{type = "mixed", label = "Retrait", value = "retrait", wikidata = {property = "P730"}},
			},
		},
		{type = "table", title = "Conservation", rows = {
			{type = "mixed", label = "Propriétaire", plurallabel = "Propriétaires", value = "propriétaire", wikidata = {property = "P127"}},
			{type = "mixed", label = "Conservateur", plurallabel = "Conservateurs", value = "conservateur", wikidata = {property = "P195"}},
			{type = "mixed", label = "Numéro d'inventaire", value = "inventaire", wikidata = {property = "P217"}},
			{type = "mixed", label = "Statut patrimonial", value = "statut patrimonial", wikidata = {property = "P1435"}},
			},
		},
		objet.icon(),
	}
}