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


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 then
				return general.mainimage('Article à illustrer Squelette')
			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 ='P2789'},
				{type = 'row', label = 'Élément de', value = 'Elément', property ='P361'},
				{type = 'row', label = 'Éléments constitutifs', value = 'Partie', property ='P527'},
				{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='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'},
			}
		},
	},
}