Aller au contenu

Module:Infobox/Anatomie

Une page de Wikipédia, l'encyclopédie libre.
Ceci est une version archivée de cette page, en date du 19 mars 2022 à 14:43 et modifiée en dernier par Dbult (discuter | contributions). Elle peut contenir des erreurs, des inexactitudes ou des contenus vandalisés non présents dans la version actuelle.

 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(),
		general.mainimage('Article à illustrer Anatomie'),
		{type='table', title = '- Détails -', rows = 
			{
				{type = 'row', label = 'Nom latin', value = 'latin', property ='P3982'},
				--[=[ {type = 'row', label = '[[Terminologie anatomique|Code TA]]', value = function()  return getTAvalue(localdata["TA"]) end,
					wikidata = {property = 'P1323', displayformat = function(snak) return getTAvalue(snak.datavalue.value) end, excludespecial = true}
				}]=]
				{type = 'row', label = 'Origine', value = 'origine', property ='P3261'},
				{type = 'row', label = 'Branches', value = 'branches', property ='P3262'},
				{type = 'row', label = 'Terminaison', value = 'terminaison'},
				{type = 'row', label = 'Structures vascularisées', value = 'structures'},
				{type = 'row', label = 'Veine associée', value = 'veine'},
				{type = 'row', label = '[[Embryologie|Précurseur]]', value = 'précurseur'},
				{type = 'row', label = 'test', value = 'test'},
			}
		},
		{type='table', title = '- Détails -', rows = 
			{
				{type = 'row', label = 'Nom latin', value = 'latin', property ='P3982'},
				--[=[ {type = 'row', label = '[[Terminologie anatomique|Code TA]]', value = function()  return getTAvalue(localdata["TA"]) end,
					wikidata = {property = 'P1323', displayformat = function(snak) return getTAvalue(snak.datavalue.value) end, excludespecial = true}
				}]=]
				{type = 'row', label = 'Origine', value = 'origine', property ='P3261'},
				{type = 'row', label = 'Branches', value = 'branches', property ='P3262'},
				{type = 'row', label = 'Terminaison', value = 'terminaison'},
				{type = 'row', label = 'Structures vascularisées', value = 'structures'},
				{type = 'row', label = 'Veine associée', value = 'veine'},
				{type = 'row', label = '[[Embryologie|Précurseur]]', value = 'précurseur'},
				{type = 'row', label = 'test', value = 'test'},
			}
		},
	},
}