La documentation pour ce module peut être créée à Module:Enfocajon/Corporance/doc

local wikidata = require "Module:Wikidata"
local general = require "Module:Enfocajon/Fonccions"


--[[ 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['Émâge'] == nil and  localdata['Émâge2'] == nil then
				return general.mainimage('Articllo a ilustrar Corporance')
			else
				return {type = 'row'}
			end
		end,
		function ( localdata )
			if localdata['Émâge'] then
				return {type = 'images',imageparameters =  'Émâge', captionparameter = 'Lègenda'}
			else
				return {type = 'row'}
			end
		end,
		function ( localdata )
			if localdata['Émâge2'] then
				return {type = 'images',imageparameters =  'Émâge2', captionparameter = 'Lègenda2'}
			else
				return {type = 'row'}
			end
		end,
		{type='table', title = 'Dètalys', rows = 
			{
				{type = 'row', label = 'Sistèmo', value = 'Sistèmo', property ='P361'},
				{type = 'row', label = 'Règion', value = 'Règion'},
				{type = 'row', label = 'Conèctâ avouéc', value = 'Conèccion', property ='P2789'},
				{type = 'row', label = 'Vascularisacion', value = 'Artère', property ='P2286'},
				{type = 'row', label = 'Drènâjo vênox', value = 'Vêna', property ='P2289'},
				{type = 'row', label = 'Drènâjo limfatico', value = 'Limfa', property ='P2288'},
				{type = 'row', label = 'Inèrvacion', value = 'Nèrf', property ='P3189'},
				{type = 'row', label = '[[Embriologia]]', value = 'Prècursior', property ='P155'},
				{type = 'row', label = 'Comprend', value = 'Parties', property ='P527'},

			}
		},
		{type='table', title = 'Identifients', rows = 
			{
				{type = 'row', label = 'Nom latin', value = 'Latin', property ='P3982'},
				{type = 'row', label = 'Grèco', value = 'Grèco'},
				{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èference de corporance Gray', rows = 
			{
				{type = 'row', label = 'Sujèt', value = 'GraySubject'},
				{type = 'row', label = 'Pâge', value = 'GrayPage'},
			}
		},
	{type='table', title = 'Rèference diccionèro de l’acadèmia de mèdecina', rows = 
			{
				{type = 'row', label = 'Nom', value = 'DicôAcadèmia'},
			}
		},
	},
}