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


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


--[[ local function getTAvalue(id)
	if not id then
		return nil
	end
	local url = "http://www.unifr.ch/ifaa/Public/EntryPage/TA98%20Tree/Entity%20TA98%20EN/$1%20Entity%20TA98%20EN.htm"
	local idurl = string.sub(id, 2)
	local link = url:gsub('$1', idurl)
	return '[' .. link .. ' ' .. id .. ']'
end]]

return {
	--maincolor = '#FFAAAA',
	parts = {
		general.title(),
		function ( localdata )
			if localdata['Image'] == nil and  localdata['Image2'] == nil then
				return general.mainimage('Article à illustrer Anatomie')
			else
				return {type = 'row'}
			end
		end,
		function ( localdata )
			if localdata['Image'] then
				return {type = 'images',imageparameters =  'Image', captionparameter = 'Légende'}
			else
				return {type = 'row'}
			end
		end,
		function ( localdata )
			if localdata['Image2'] then
				return {type = 'images',imageparameters =  'Image2', captionparameter = 'Légende2'}
			else
				return {type = 'row'}
			end
		end,
		{type='table', title = 'Détails', rows = 
			{
				{type = 'row', label = 'Système', value = 'Système', property ='P361'},
				{type = 'row', label = 'Région', value = 'Région'},
				{type = 'row', label = 'Connecté avec', value = 'Connexion', property ='P2789'},
				{type = 'row', label = 'Vascularisation', value = 'Artère', property ='P2286'},
				{type = 'row', label = 'Drainage veineux', value = 'Veine', property ='P2289'},
				{type = 'row', label = 'Drainage lymphatique', value = 'Lymphe', property ='P2288'},
				{type = 'row', label = 'Innervation', value = 'Nerf', property ='P3189'},
				{type = 'row', label = '[[Embryologie]]', value = 'Précurseur', property ='P155'},
				{type = 'row', label = 'Comprend', value = 'Parties', 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'},
			}
		},
	},
}