Module:Infobox/Veine
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 Veine.
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 = '##AAAAFF',
parts = {
general.title(),
general.mainimage(),
{type='table', title = 'Détails', rows =
{
{type = 'row', label = 'Nom latin', value = 'latin', value = 'latin'},
--[=[ {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'},
{type = 'row', label = 'Branches', value = 'branches'},
{type = 'row', label = 'Terminaison', value = 'terminaison'},
{type = 'row', label = 'Structures vascularisées', value = 'structures'},
{type = 'row', label = 'Veine associée', value = 'veine'}
}
}
}
}