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


local wikidata = require "Module:Wikidata"
local general = require "Module:Infobox/Fonctions"

return {
	--maincolor = '#FFAAAA',
	parts = {
		general.title(),
		function ( localdata )
			if localdata['Image'] == nil then
				return general.mainimage('Article à illustrer Ligament')
			else
				if localdata['Image'] then
					return {type = 'images',imageparameters =  'Image', captionparameter = 'Légende'}
				else
					return {type = 'row'}
				end
			end
		end,
		{type='table', title = 'Détails', rows = 
			{
				{type = 'row', label = 'Articulation', value = 'Articulation', property ='P361'},
				{type = 'row', label = 'Insertions', value = 'Insertions', property ='P2789'},
				{type = 'row', label = 'Constitué de', value = 'Partie', property ='P527'},
			}
		},
		{type='table', title = 'Identifiants', rows = 
			{
				{type = 'row', label = 'Nom latin', value = 'Latin', property ='P3982'},
				{type = 'row', label = 'Grec', value = 'Grec'},
				{type = 'row', label = 'MeSH', value = 'MeshNumber', property ='P486'},
				{type = 'row', label = 'Nom MeSH', value = 'MeshName'},
				{type = 'row', label = 'TA98', value = 'TA98', property ='P1323'},
				{type = 'row', label = 'TA2', value = 'TA2', property ='P7173'},
				{type = 'row', label = 'FMA', value = 'FMA', property ='P1402'},
			}
		},
		{type='table', title = 'Référence anatomique Gray', rows = 
			{
				{type = 'row', label = 'Sujet', value = 'GraySubject'},
				{type = 'row', label = 'Page', value = 'GrayPage'},
			}
		},
	{type='table', title = 'Référence dictionnaire de l’académie de médecine', rows = 
			{
				{type = 'row', label = 'Nom', value = 'DicoAcadémie'},
			}
		},
	},
}