Module:Infobox/Anatomie
Apparence
[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.
La documentation de ce module est générée par le modèle {{Documentation module}}.
Elle est incluse depuis la page Modèle:Documentation module d'infobox. Veuillez placer les catégories sur cette page-là.
Les éditeurs peuvent travailler dans le bac à sable (créer).
Voir les statistiques d'appel depuis le wikicode sur l'outil wstat et les appels depuis d'autres modules.
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'},
}
},
},
}