Module:Infobox/Matériaux

Une page de Wikipédia, l'encyclopédie libre.

 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 Matériaux.

Utilisation

Module appelé par l'{{Infobox Matériaux}}.

Exemples

Pour des exemples, voir la page {{Infobox Matériaux}}.

-- Modèle Matériaux

local wikidata = require 'Module:Wikidata'
local general = require 'Module:Infobox/Fonctions'
local localdata = require 'Module:Infobox/Localdata'
local linguistic = require 'Module:Linguistique'

return{
	maincolor = '#777777',
	parts = {
		general.title('map', {color = 'white'}),
		general.mainimage('Article à illustrer Matériaux'),

	{type = 'table', title = 'Caractéristiques générales', rows = {
		{type = 'mixed', label = 'Nom',							value = 'nom', 						property = 'P2561'},
		{type = 'mixed', label = 'Composition', 				value = 'composition',				wikidata = {property= 'P527', showqualifiers = 'P1107', numval='10', conjtype = 'new line'}},
		{type = 'mixed', label = 'Formule chimique',			value = 'formule_chimique', 		property = 'P274'},
		{type = 'mixed', label = 'Couleur', 					value = 'couleur',					property = 'P462'},
		{type = 'mixed', label = 'Usages',						value = 'usage',					wikidata = {property= 'P366', numval='5', conjtype = 'new line'}},
		{type = 'mixed', label = 'Date de découverte',			value = 'date_découverte',			wikidata = {property= 'P575'}},
		{type = 'mixed', label = 'Découvreur',					value = 'découvreur',				wikidata = {property= 'P61'}},
		{type = 'mixed', label = 'prix',						value = 'prix',						wikidata = {property= 'P61', showunit = 'long', showqualifiers = "P2067"}},
	}},

	{type = 'table', title = 'Caractéristiques physiques', rows = {
		{type = 'mixed', label = '[[Système cristallin]]',		value = 'système_cristallin',		property = 'P556'},
		{type = 'mixed', label = 'Masse atomique',				value = 'masse_atomique',			property = 'P2067'},
		{type = 'mixed', label = 'Masse volumique', 			value = 'masse_volumique',			wikidata = {property= 'P2054', showunit = 'long'}},
	}},

	{type = 'table', title = 'Caractéristiques mécaniques', rows = {
		{type = 'mixed', label = '[[Dureté (matériau)|Dureté]]',value = 'dureté',					wikidata = {property= 'P5483', showunit = 'long', showqualifiers = "P459"}},
		{type = 'mixed', label = 'Module de Young', 			value = 'Module_de_Young',			wikidata = {property= 'P5480', showunit = 'long'}},
		{type = 'mixed', label = 'Dureté de Mohs',				value = 'dureté_mohs',				property = 'P1088'},
		{type = 'mixed', label = 'Résistance à la rupture', 	value = 'résistance à la rupture',	property = 'P5479'},
		{type = 'mixed', label = 'Limite d\'élasticité', 		value = 'limite_d_élasticité',		property = 'P5529'},
		{type = 'mixed', label = 'Ténacité', 					value = 'ténacité',					property = 'P5520'},
		{type = 'mixed', label = 'Coefficient de Poisson', 		value = 'Coeff_Poisson',			property = 'P5593'},
	}},

	{type = 'table', title = 'Caractéristiques thermique', rows = {
		{type = 'mixed', label = 'Point de fusion', 			value = 'T_fusion', 				wikidata = {property= 'P2101', showunit = 'long'}},
		{type = 'mixed', label = 'Point d\'ébullition', 		value = 'T_ébullition', 			wikidata = {property= 'P2102', showunit = 'long'}},
		{type = 'mixed', label = 'Conductivité thermique',		value = 'conductivité_thermique',	wikidata = {property= 'P2068', showunit = 'long'}},
		{type = 'mixed', label = 'Capacité thermique',			value = 'capacité_thermique',		wikidata = {property= 'P2056', showunit = 'long'}},
	}},

	{type = 'table', title = 'Caractéristiques électriques', rows = {
		{type = 'mixed', label = 'Conductivité électrique', 	value = 'conductivité_électrique',	property = 'P2055'},
	}},

	{type = 'table', title = 'Caractéristiques economique', rows = {
		{type = 'mixed', label = 'Fabricant', 	value = 'fabricant ',	property = 'P176'},
		{type = 'mixed', label = 'Prix', 		value = 'prix ',		property = 'P2284'},
	}},

	{type = 'table', title = 'Caractéristiques ecologique', rows = {
		{type = 'mixed', label = 'Empreinte carbone', 	value = 'empreinte_carbone',	property = 'P5991'},
	}},

	}
}