Vejatz lo contengut

Mòdul:Taxobox donadas

Un article de Wikipèdia, l'enciclopèdia liura.

La documentacion d'utilizacion d'aquel modul se pòt crear a Mòdul:Taxobox donadas/ús

--[[
  Module utilisé par Module:Taxobox.
  Contient toutes les données brutes relatives aux taxobox :
   - liste des règnes existants
   - liste des rangs
   - caractéristiques des rangs
   - messages d'erreur
   - valeurs par défaut
   - nom des catégories de gestion
   - …
--]]

-- table locale
local p = {}


--[[
  Nom de la catégorie d'erreurs
--]]
p.categorie_erreur = "Taxobox amb error d'utilizacion"

--[[
  Table des caractéristiques, paramètres, options et informations en cours de traitement.
  Celle-ci est ici afin de définir les valeurs par défaut à ce niveau
--]]
p.defauts = {
    ["c_categories"] = "auto",  -- en ligne, boîte, non, auto. auto=en ligne si article, boîte siquenon
    ["c_categories_err"] = "auto", -- mêmes valeurs. auto=en ligne si article, boîte siquenon
    ["c_erreurs"] = "auto", -- òc, non, auto. auto=non si article, òc siquenon
    ["c_sous_titre"] = "auto", -- òc, non, auto. auto=òc si article, non siquenon
    ["c_force_titre"] = "auto", -- òc, non, auto. auto=òc si article, non siquenon
    ["c_raw"] = "non", -- òc, non.
    ["c_debug"] = "non", -- òc, non.
    -- initialisé ici
    ["r_categories"] = {},  -- stockage des catégories retournées par les fonctions
    ["r_err_categories"] = {}, -- stockage des catégories d'erreur retournées par les fonctions
    ["r_erreurs"] = {},  -- stockage des erreurs retournées par les fonctions
    -- le reste vaut nil par défaut
    ["frame"] = nil, -- la frame, à initialiser au début
    ["pframe"] = nil -- la frame, à initialiser au début
}

--[[
  Syntaxe unifiée des lignes valides
  Chaque entrée décrit la syntaxe possible d'une ligne de taxobox.
  Une ligne commence par un mot-clé (non présent dans ces éléments) suivi d'une liste de valeurs. Il peut y avoir 3 types de valeurs :
    - "noname" : paramètre non nommé. La liste des paramètres non nommés est traitée dans l'ordre de leur apparition et affectée aux noms indiqués
    -- "flags" : paramètre présent ou pas. La présence d'un élément listé affecte au nom indiqué la valeur "true"
    -- "values" : paramètre nommé. La liste des paramètres nommés est traitée dans l'ordre de leur apparition et affectée aux noms indiqués, avec la valeur indiquée
--]]
-- début de taxobox. Le règne étant à part il reste : paramètre avec valeur : classification ; non nommés : image, légende
p.df_debut = { ["noname"] = { "image", "legende", "imatge", "legenda" }, ["flags"] = { { {"phylo" }, "phylo" }, { { "cacher règne" }, "cacher_regne" }, { { "simple" }, "simple" } }, ["values"] = { { {"classification", "classif" }, "classification" } } }
-- taxon : un taxon. Que des non nommés : rang, nom, auteur. Il manque en fait obsolète (TODO)
p.df_taxon = { ["noname"] = { "rang", "nom", "auteur", "reng", "autor" }, ["values"] = { { {"obsolète", "obsolete", "obsolèt", "obsolet" }, "obsolete" } }, ["flags"] = { { { "sans auteur" }, "sans auteur" }, { { "titre", "en titre", "títol", "en títol" }, "titre" }, { { "vernaculaire" }, "vernaculaire" } } }
-- rang : correspond à {{taxobox}}. Non nommés : rang, nom, [lien]. L'usage lien= semble inutilisé, c'est une occasion de s'en débarrasser.
p.df_rang = { ["noname"] = { "rang", "nom", "cible", "rang", "cibla" }, ["flags"] = { { { "ancien" }, "ancien" } }, ["values"] = { { { "lien" }, "lien" } } }
-- fin : fin de la taxobox. Pas de paramètre. En fait optionnel, pourrait disparaître (le module fermant proprement les choses).
p.df_fin = {}
-- UICN : non nommés : risque, [critère, [commentaire]]
p.df_uicn = { ["noname"] = { "risque", "critere", "lien" } }
-- CITES : non nommés : annexe, date, precision
p.df_cites = { ["noname"] = { "annexe", "date", "precision" } }
-- synonymes : non nommés : synonymes
p.df_synonymes = { ["noname"] = { "synonymes", "sinonims" } }
-- taxons : non nommés : taxons
p.df_taxons = { ["noname"] = { "texte", "tèxte2", "tèxte", "tèxte2" } }
-- parents (pour hybride) : non nommés : sexe1, taxon1, sexe2, taxons2
p.df_parents = { ["noname"] = { "sexe1", "sèxe1", "taxon1", "sèxe2", "sexe", "taxon2" } }
-- image : non nommés : image, legende. Flag : separateur
p.df_image = { ["noname"] = { "image", "legende", "imatge", "legenda" }, ["flags"] = { { { "séparateur", "separateur", "separator", "separador" }, "separateur" } } }
-- répartition image : non nommés : image, legende. Flag : separateur
p.df_repartition_image = { ["noname"] = { "image", "legende" }, ["flags"] = { { { "séparateur", "separateur", "separator", "separador" }, "separateur" } } }
-- répartition : non nommés : image, legende, taille. Flag : separateur
p.df_repartition = { ["noname"] = { "image", "legende", "taille", "imatge", "legenda", "talha" }, ["flags"] = { { { "séparateur", "separateur", "separator", "separador" }, "separateur" } } }
-- légende : non nommés : légende
p.df_legende = { ["noname"] = { "legende" } }
-- légende répartition
p.df_repartition_legende = { ["noname"] = { "legende", "couleur", "couleur2", "legenda", "color", "color2" } }
-- conflit : non nommés : rang, nom1, site1, nom2, site2, nom3, site3
p.df_conflit = { ["noname"] = { "rang", "nom1", "site1", "nom2", "site2", "nom3", "site3" } }
-- phylogénie bandeau : non nommés : image, values : image, classification (note : image peut venir de l'un ou de l'autre
p.df_phylo_bandeau = { ["noname"] = { "image" }, ["values"] = { { { "classification"}, "classification", "classificacion" }, { { "image" }, "image" } } }
-- phylogénie inexistant : non nommé : classification
p.df_phylo_inexistant = { ["values"] = { { { "classification" }, "classification", "classificacion" } } }
-- phylogénie arbre : nom nommés : arbre, image. values : classification
p.df_phylo_arbre = { ["noname"] = { "arbre", "image", "imatge" }, ["values"] = { { { "classification", "classificacion" }, "classification" } } }
-- séparateur : pas de paramètre
p.df_separateur = { }
-- position : non nommés : arbre, frere
p.df_position = { ["noname"] = { "arbre", "frere" } }
-- il reste : tout ce qui touche à la répartition, plus 1 ou 2 autres


--[[
  Liste des règnes (au sens wikipédien du terme, ce sont en fait des thèmes).
  Chaque entrée est indexée par le nom du règne (en minuscule). Il contient ensuite les entrées nommées suivantes :
    - "nom" : nom du règne (idem que la clé)
    - "convention" : convention typographique du règne : CIN ou CINZ
    - "classe" : nom de la classe CSS à utiliser pour la taxobox
    - "règne auto" : contient une liste. Chaque élément est une liste contenant un rang et un nom de taxon. Ces éléments sont
                     ajoutés dans l'ordre au début de la classification. Si nil rien n'est ajouté.
    - "cat auteur" : contient le texte à insérer si entrée auteur vide
--]]
p.regnes = {
    ["tèst"] = {
        ["nom"] = "tèst", ["convencion"] = "CINZ",
        ["classa"] = "tèst", ["règne auto"] = nil,
        ["cat autor"] = "{{autor}}, {{Data de precisar}}"
    },
    ["alga"] = {
        ["nom"] = "alga", ["convencion"] = "CIN",
        ["classa"] = "alga", ["règne auto"] = { { "domeni", "domeni", "Eukaryota" } },
        ["cat autor"] = "[[:Categoria:Autor incomplet o mancant|— autor incomplet —]], {{Data de precisar}} [[Categoria:Autor mancant-alga]]"
    },
    ["animal"] = {
        ["nom"] = "animal", ["convencion"] = "CINZ",
        ["classa"] = "animal", ["règne auto"] = { { "règne", "Animalia"} },
        ["cat autor"] = "[[:Categoria:Autor incomplet o mancant|— autor incomplet —]], {{Data de precisar}} [[Categoria:Autor mancant-animal]]"
    },
    ["archaea"] = {
        ["nom"] = "archaea", ["convencion"] = "CIN",
        ["classa"] = "archaea", ["règne auto"] = { {"règne", "Archaea"} },
        ["cat autor"] = "[[:Categoria:Autor incomplet o mancant|— autor incomplet —]], {{Data de precisar}} [[Categoria:Autor mancant-archaea]]"
    },
    ["bactèri"] = {
        ["nom"] = "bactèri", ["convencion"] = "CIN",
        ["classa"] = "bactèri", ["règne auto"] = { {"règne", "Bacteria"} },
        ["cat autor"] = "[[:Categoria:Autor incomplet o mancant|— autor incomplet —]], {{Data de precisar}} [[Categoria:Autor mancant-bactèri]]"
    },
    ["campairòl"] = {
        ["nom"] = "campairòl", ["convencion"] = "CIN",
        ["classa"] = "campairòl", ["règne auto"] = { {"règne", "Fungi"} },
        ["cat autor"] = "[[:Categoria:Autor incomplet o mancant|— autor incomplet —]], {{Data de precisar}} [[Categoria:Autor mancant-campairòl]]"
    },
    ["protista"] = {
        ["nom"] = "protista", ["convencion"] = "CINZ",
        ["classa"] = "protista", ["règne auto"] = { {"domeni", "domeni", "Eukaryota"} },
        ["cat autor"] = "[[:Categoria:Autor incomplet o mancant|— autor incomplet —]], {{Data de precisar}} [[Categoria:Autor mancant-protista]]"
    },
    ["vegetal"] = {
        ["nom"] = "vegetal", ["convencion"] = "CIN",
        ["classa"] = "planta", ["règne auto"] = { {"règne", "Plantae"} },
        ["cat autor"] = "[[:Categoria:Autor incomplet o mancant|— autor incomplet —]], {{Data de precisar}} [[Categoria:Autor mancant-vegetal]]"
    },
    ["virús"] = {
        ["nom"] = "virús", ["convencion"] = "CIN",
        ["classa"] = "virús", ["règne auto"] = { {"règne", "Virús"} },
        ["cat autor"] ="[[:Categoria:Autor incomplet o mancant|— autor incomplet —]], {{Data de precisar}} [[Categoria:Autor mancant-virús]]"
    },
    ["neutre"] = {
        ["nom"] = "neutre", ["convencion"] = "CIN",
        ["classa"] = "neutre", ["règne auto"] = { {"règne", "Neutre"} },
        ["cat autor"] = ""
    },
    ["eucariòta"] = {
        ["nom"] = "eucariòta", ["convencion"] = "CINZ",
        ["classa"] = "eucariòta", ["règne auto"] = { {"domeni", "domeni", "Eukaryota"} },
        ["cat autor"] = "{{autor}}, {{Data de precisar}}"
    },
    ["procariòta"] = {
        ["nom"] = "procariòta", ["convencion"] = "CIN",
        ["classa"] = "procariòta", ["règne auto"] = { {"domeni", "domeni", "Prokaryota"} },
        ["cat autor"] = "{{autor}}, {{Data de precisar}}"
    }
}

--[[
  Liste des rangs taxinomiques reconnus. Indexé par le nom du rang (en minuscule).
  Chaque entrée est une table contenant :
    - "nom" : le nom (identique à l'index)
    - "wikif" : le terme wikifié pour inclusion (version courte le cas échéant)
    - "wikif long" : le terme wikifié pour inclusion (version non abrégée)
    - "infgenre" : true si le rang est inférieur au genre
    - "ordre" : numéro d'ordre (entier) du rang, du plus petit (espèce) au plus grand (domaine)
  Ajout optionnel :
    - "wikif alt" : version alternative. Utilisée uniquement pour espèce dans le cas virus.
    - "femenin" : si = 'true' le nom du rang est féminin. Utiliser pour intégrer le nom dans
                  une phrase ou une catégorie.
--]]
p.rangs = {
  ["clade"] = {
    ["nom"] = "clad", ["wikif"] = "[[Clad]]",
    ["wikif long"] = "[[Clad]]",
    ["infgenre"] = false, ["òrdre"] = 1
  },
  ["type"] = {
    ["nom"] = "tipe", ["wikif"] = "[[Classificacion dels virusses|Tipe]]",
    ["wikif long"] = "[[Classificacion dels virusses|Tipe]]",
    ["infgenre"] = false, ["òrdre"] = 2
  },
  ["groupe"] = {
    ["nom"] = "grop", ["wikif"] = "[[Classificacion dels virusses#Classificacion per tipe de genòmi|Grop]]",
    ["wikif long"] = "[[Classificacion dels virusses#Classificacion per tipe de genòmi|Grop]]",
    ["infgenre"] = false, ["òrdre"] = 3
  },
  ["pas classat"] = {
    ["nom"] = "pas classat", ["wikif"] = "— pas classat —",
    ["wikif long"] = "— pas classat —",
    ["infgenre"] = false, ["òrdre"] = 4
  },
  ["sous-forme"] = {
    ["nom"] = "sous-forme", ["wikif"] = "[[Forme (botanique)|Sous-forme]]",
    ["wikif long"] = "[[Forme (botanique)|Sous-forme]]",
    ["infgenre"] = true, ["òrdre"] = 5
  },
  ["forme"] = {
    ["nom"] = "forme", ["wikif"] = "[[Forme (botanique)|Forme]]",
    ["wikif long"] = "[[Forme (botanique)|Forme]]",
    ["infgenre"] = true, ["òrdre"] = 6, ["femenin"] = true
  },
  ["cultivar"] = {
    ["nom"] = "cultivar", ["wikif"] = "[[Cultivar]]",
    ["wikif long"] = "[[Cultivar]]",
    ["infgenre"] = true, ["òrdre"] = 7
  },
  ["variété"] = {
    ["nom"] = "variété", ["wikif"] = "[[Varietat (botanica)|Varietat]]",
    ["wikif long"] = "[[Varietat (botanica)|Varietat]]",
    ["infgenre"] = true, ["òrdre"] = 8, ["femenin"] = true
  },
  ["sosespècia"] = {
    ["nom"] = "sosespècia", ["wikif"] = "[[Sosespècia]]",
    ["wikif long"] = "[[Sosespècia]]",
    ["infgenre"] = true, ["òrdre"] = 9, ["femenin"] = true
  },
  ["ibrid"] = {
    ["nom"] = "ibrid", ["wikif"] = "[[Hybride]]",
    ["wikif long"] = "[[Hybride]]",
    ["infgenre"] = true, ["òrdre"] = 10
  },
  ["espècia"] = {
    ["nom"] = "espècia", ["wikif"] = "[[Nom binominal]]",
    ["wikif long"] = "[[Nom binominal]]", ["wikif alt"] = "[[Espèce]]",
    ["infgenre"] = true, ["òrdre"] = 11, ["femenin"] = true
  },
  ["sosseria"] = {
    ["nom"] = "sosseria", ["wikif"] = "[[Seria (biologia)|Sosseria]]",
    ["wikif long"] = "[[Seria (biologia)|Sosseria]]",
    ["infgenre"] = true, ["òrdre"] = 12, ["femenin"] = true
  },
  ["seria"] = {
    ["nom"] = "seria", ["wikif"] = "[[Seria (biologia)|Série]]",
    ["wikif long"] = "[[Seria (biologia)|Série]]",
    ["infgenre"] = true, ["òrdre"] = 13, ["femenin"] = true
  },
  ["sosseccion"] = {
    ["nom"] = "sosseccion", ["wikif"] = "[[Seccion (biologia)|Sosseccion]]",
    ["wikif long"] = "[[Seccion (biologia)|Sosseccion]]",
    ["infgenre"] = true, ["òrdre"] = 14, ["femenin"] = true
  },
  ["section"] = {
    ["nom"] = "section", ["wikif"] = "[[Seccion (biologia)|Section]]",
    ["wikif long"] = "[[Seccion (biologia)|Section]]",
    ["infgenre"] = true, ["òrdre"] = 15, ["femenin"] = true
  },
  ["sosgenre"] = {
    ["nom"] = "sosgenre", ["wikif"] = "[[Sosgenre (biologia)|Sosgenre]]",
    ["wikif long"] = "[[Sosgenre (biologia)|Sosgenre]]",
    ["infgenre"] = true, ["òrdre"] = 16
  },
  ["genre"] = {
    ["nom"] = "genre", ["wikif"] = "[[Genre (biologia)|Genre]]",
    ["wikif long"] = "[[Genre (biologia)|Genre]]",
    ["infgenre"] = true, ["òrdre"] = 17
  },
  ["sostribú"] = {
    ["nom"] = "sostribú", ["wikif"] = "[[Tribú (biologia)|Sostribú]]",
    ["wikif long"] = "[[Tribú (biologia)|Sostribú]]",
    ["infgenre"] = false, ["òrdre"] = 18, ["femenin"] = true
  },
  ["tribú"] = {
    ["nom"] = "tribú", ["wikif"] = "[[Tribú (biologia)|Tribú]]",
    ["wikif long"] = "[[Tribú (biologia)|Tribú]]",
    ["infgenre"] = false, ["òrdre"] = 19, ["femenin"] = true
  },
  ["supertribú"] = {
    ["nom"] = "supertribú", ["wikif"] = "[[Tribú (biologia)|Supertribú]]",
    ["wikif long"] = "[[Tribú (biologia)|Supertribú]]",
    ["infgenre"] = false, ["òrdre"] = 20, ["femenin"] = true
  },
  ["infratribú"] = {
    ["nom"] = "infratribú", ["wikif"] = "[[Tribú (biologia)|Infratribú]]",
    ["wikif long"] = "[[Tribú (biologia)|Infratribú]]",
    ["infgenre"] = false, ["òrdre"] = 21, ["femenin"] = true
  },
  ["sosfamilha"] = {
    ["nom"] = "sosfamilha", ["wikif"] = "[[Sosfamilha (biologia)|Sosfamilha]]",
    ["wikif long"] = "[[Sosfamilha]]",
    ["infgenre"] = false, ["òrdre"] = 22, ["femenin"] = true
  },
  ["familha"] = {
    ["nom"] = "familha", ["wikif"] = "[[Familha (biologia)|Familha]]",
    ["wikif long"] = "[[Familha (biologia)|Familha]]",
    ["infgenre"] = false, ["òrdre"] = 23, ["femenin"] = true
  },
  ["epifamilha"] = {
    ["nom"] = "epifamilha", ["wikif"] = "[[Familha (biologia)|Epifamilha]]",
    ["wikif long"] = "[[Familha (biologia)|Epifamilha]]",
    ["infgenre"] = false, ["òrdre"] = 24, ["femenin"] = true
  },
  ["superfamilha"] = {
    ["nom"] = "superfamilha", ["wikif"] = "[[Superfamilha (biologia)|Superfamilha]]",
    ["wikif long"] = "[[Superfamilha (biologia)|Superfamilha]]",
    ["infgenre"] = false, ["òrdre"] = 25, ["femenin"] = true
  },
  ["microòrdre"] = {
    ["nom"] = "microòrdre", ["wikif"] = "[[Microòrdre]]",
    ["wikif long"] = "[[Microòrdre]]",
    ["infgenre"] = false, ["òrdre"] = 26
  },
  ["infraòrdre"] = {
    ["nom"] = "infraòrdre", ["wikif"] = "[[Infraòrdre]]",
    ["wikif long"] = "[[Infraòrdre]]",
    ["infgenre"] = false, ["òrdre"] = 27
  },
  ["sosòrdre"] = {
    ["nom"] = "sosòrdre", ["wikif"] = "[[Sosòrdre]]",
    ["wikif long"] = "[[Sosòrdre]]",
    ["infgenre"] = false, ["òrdre"] = 28
  },
  ["òrdre"] = {
    ["nom"] = "òrdre", ["wikif"] = "[[Òrdre (biologia)|Òrdre]]",
    ["wikif long"] = "[[Òrdre (biologia)|Òrdre]]",
    ["infgenre"] = false, ["òrdre"] = 29
  },
  ["superòrdre"] = {
    ["nom"] = "superòrdre", ["wikif"] = "[[Superòrdre (biologia)|Superòrdre]]",
    ["wikif long"] = "[[Superòrdre (biologia)|Superòrdre]]",
    ["infgenre"] = false, ["òrdre"] = 30
  },
  ["soscoòrta"] = {
    ["nom"] = "soscoòrta", ["wikif"] = "[[Coòrta (biologia)|Soscoòrta]]",
    ["wikif long"] = "[[Coòrta (biologia)|Soscoòrta]]",
    ["infgenre"] = false, ["òrdre"] = 31, ["femenin"] = true
  },
  ["coòrta"] = {
    ["nom"] = "coòrta", ["wikif"] = "[[Coòrta (biologia)|Coòrta]]",
    ["wikif long"] = "[[Coòrta (biologia)|Coòrta]]",
    ["infgenre"] = false, ["òrdre"] = 32, ["femenin"] = true
  },
  ["super-coòrta"] = {
    ["nom"] = "super-coòrta", ["wikif"] = "[[Coòrta (biologia)|Super-coòrta]]",
    ["wikif long"] = "[[Coòrta (biologia)|Super-coòrta]]",
    ["infgenre"] = false, ["òrdre"] = 33, ["femenin"] = true
  },
  ["infraclassa"] = {
    ["nom"] = "infraclassa", ["wikif"] = "[[Infraclassa]]",
    ["wikif long"] = "[[Infraclassa]]",
    ["infgenre"] = false, ["òrdre"] = 34, ["femenin"] = true
  },
  ["sosclassa"] = {
    ["nom"] = "sosclassa", ["wikif"] = "[[Sosclassa (biologia)|Sosclassa]]",
    ["wikif long"] = "[[Sosclassa (biologia)|Sosclassa]]",
    ["infgenre"] = false, ["òrdre"] = 35, ["femenin"] = true
  },
  ["classa"] = {
    ["nom"] = "classa", ["wikif"] = "[[Classe (biologia)|Classa]]",
    ["wikif long"] = "[[Classa (biologia)|Classa]]",
    ["infgenre"] = false, ["òrdre"] = 36, ["femenin"] = true
  },
  ["superclassa"] = {
    ["nom"] = "superclassa", ["wikif"] = "[[Superclassa (biologia)|Superclassa]]",
    ["wikif long"] = "[[Superclassa (biologia)|Superclassa]]",
    ["infgenre"] = false, ["òrdre"] = 37
  },
  ["infraembrancament"] = {
    ["nom"] = "infraembrancament", ["wikif"] = "[[Infraembrancament|Infra-embr.]]",
    ["wikif long"] = "[[Infraembrancament|Infraembrancament]]",
    ["infgenre"] = false, ["òrdre"] = 38
  },
  ["sosembrancament"] = {
    ["nom"] = "sosembrancament", ["wikif"] = "[[Sosembrancament|Sous-embr.]]",
    ["wikif long"] = "[[Sosembrancament|Sosembrancament]]",
    ["infgenre"] = false, ["òrdre"] = 39
  },
  ["embrancament"] = {
    ["nom"] = "embrancament", ["wikif"] = "[[Embrancament (biologia)|Embrancament]]",
    ["wikif long"] = "[[Embrancament (biologia)|Embrancament]]",
    ["infgenre"] = false, ["òrdre"] = 40
  },
  ["superembrancament"] = {
    ["nom"] = "superembrancament", ["wikif"] = "[[Superembrancament|Super-embr.]]",
    ["wikif long"] = "[[Superembrancament|Superembrancament]]",
    ["infgenre"] = false, ["òrdre"] = 41
  },
  ["sosdivision"] = {
    ["nom"] = "sosdivision", ["wikif"] = "[[Sosdivision (biologia)|Sosdivision]]",
    ["wikif long"] = "[[Sosdivision (biologia)|Sosdivision]]",
    ["infgenre"] = false, ["òrdre"] = 42, ["femenin"] = true
  },
  ["division"] = {
    ["nom"] = "division", ["wikif"] = "[[Division (biologia)|Division]]",
    ["wikif long"] = "[[Division (biologia)|Division]]",
    ["infgenre"] = false, ["òrdre"] = 43, ["femenin"] = true
  },
  ["superdivision"] = {
    ["nom"] = "superdivision", ["wikif"] = "[[Division (biologia)|Superdivision]]",
    ["wikif long"] = "[[Division (biologia)|Superdivision]]",
    ["infgenre"] = false, ["òrdre"] = 44, ["femenin"] = true
  },
  ["infrarègne"] = {
    ["nom"] = "infrarègne", ["wikif"] = "[[Infrarègne]]",
    ["wikif long"] = "[[Infrarègne]]",
    ["infgenre"] = false, ["òrdre"] = 45
  },
  ["ramèl"] = {
    ["nom"] = "ramèl", ["wikif"] = "[[Ramèl (biologia)|Ramèl]]",
    ["wikif long"] = "[[Ramèl (biologia)|Ramèl]]",
    ["infgenre"] = false, ["òrdre"] = 46
  },
  ["sosrègne"] = {
    ["nom"] = "sosrègne", ["wikif"] = "[[Sosrègne]]",
    ["wikif long"] = "[[Sosrègne]]",
    ["infgenre"] = false, ["òrdre"] = 47
  },
  ["règne"] = {
    ["nom"] = "règne", ["wikif"] = "[[Règne (biologia)|Règne]]",
    ["wikif long"] = "[[Règne (biologia)|Règne]]",
    ["infgenre"] = false, ["òrdre"] = 48
  },
  ["superrègne"] = {
    ["nom"] = "superrègne", ["wikif"] = "[[Règne (biologia)|Superrègne]]",
    ["wikif long"] = "[[Règne (biologia)|Superrègne]]",
    ["infgenre"] = false, ["òrdre"] = 49
  },
  ["sosdomeni"] = {
    ["nom"] = "sosdomeni", ["wikif"] = "[[Sosdomeni (biologia)|Sosdomeni]]",
    ["wikif long"] = "[[Sosdomeni (biologia)|Sosdomeni]]",
    ["infgenre"] = false, ["òrdre"] = 50
  },
  ["domeni"] = {
    ["nom"] = "domeni", ["wikif"] = "[[Domeni (biologia)|Domeni]]",
    ["wikif long"] = "[[Domeni (biologia)|Domeni]]",
    ["infgenre"] = false, ["òrdre"] = 51
  },
  ["empèri"] = {
    ["nom"] = "empèri", ["wikif"] = "[[Domeni (biologia)|Empèri]]",
    ["wikif long"] = "[[Domeni (biologia)|Empèri]]",
    ["infgenre"] = false, ["òrdre"] = 52
  },
}


--[[
  Table des données UICN. Indexé par le code UICN. Chaque entrée est une liste contenant :
    - "nom" : idem index
    - "texte" : version extensive du niveau UICN
--]]
p.uicn = {
  ["EX"] = { ["nom"] = "EX", ["tèxte"] = "Escantit" },
  ["PE"] = { ["nom"] = "PE", ["tèxte"] = "Segurament escantit" },
  ["EW"] = { ["nom"] = "EW", ["tèxte"] = "Escantit a l'estat savatge" },
  ["PEW"] = { ["nom"] = "PEW", ["tèxte"] = " Segurament escantit a l'estat savatge" },
  ["NE"] = { ["nom"] = "NE", ["tèxte"] = "Pas evaluat" },
  ["DD"] = { ["nom"] = "DD", ["tèxte"] = "Donadas insufisentas" },
  ["CR"] = { ["nom"] = "CR", ["tèxte"] = "En dangièr critic d'escantiment" },
  ["EN"] = { ["nom"] = "EN", ["tèxte"] = "En dangièr" },
  ["VU"] = { ["nom"] = "VU", ["tèxte"] = "Vulnerable" },
  ["CD"] = { ["nom"] = "CD", ["tèxte"] = "Conservavion Dependent" },
  ["NT"] = { ["nom"] = "NT", ["tèxte"] = "Quasi menaçat" },
  ["LC"] = { ["nom"] = "LC", ["tèxte"] = "Preocupacion menora" },
  ["error"] = { ["nom"] = "error", ["tèxte"] = "Paramètre UICN invalid" }
}


--[[
  Table des références de classification. Indexé par le nom (en minuscule). Chaque entrée est une liste contenant :
    - "nom" : idem index
    - "texte" : version texte wikifié pour affichage
    - "tèxte2" : version non wikifiée pour insertion dans texte
--]]
p.classifications = {
  ["algaebase"] = { ["nom"] = "algaebase", ["tèxte"] = "[[AlgaeBase|Classificacion segon AlgaeBase]]" },
  ["apg"] = { ["nom"] = "apg", ["tèxte"] = "[[Classificacion APG|Classificacion APG (1998)]]", ["tèxte2"] = "en APG" },
  ["apgii"] = { ["nom"] = "apgii", ["tèxte"] = "[[Classificacion APG II|Classificacion APG II (2003)]]", ["tèxte2"] = "en APG II" },
  ["apgiii"] = { ["nom"] = "apgiii", ["tèxte"] = "[[Classificacion APG III|Classificacion APG III (2009)]]", ["tèxte2"] = "en APG III" },
  ["apwebsite"] = { ["nom"] = "apwebsite", ["tèxte"] = "[[Angiosperm Phylogeny Website|Classificacion segon APWebsite]]", ["tèxte2"] = "selon APWebsite" },
  ["cronquist"] = { ["nom"] = "cronquist", ["tèxte"] = "[[Classificacion de Cronquist|Classificacion de Cronquist (1981)]]", ["tèxte2"] = "en classification de Cronquist" },
  ["dahlgren"] = { ["nom"] = "dahlgren", ["tèxte"] = "[[Classificacion de Dahlgren|Classificacion de Dahlgren (1989)]]" },
  ["engler"] = { ["nom"] = "engler", ["tèxte"] = "[[Classificacion de Engler|Classificacion de Engler (1924)]]" },
  ["ncbi"] = { ["nom"] = "ncbi", ["tèxte"] = "[[National Center for Biotechnology Information|Classificacion segon NCBI]]" },
  ["takhtajan"] = { ["nom"] = "takhtajan", ["tèxte"] = "[[Classificacion de Takhtajan|Classificacion de Takhtajan (1997)]]" },
  ["thorne"] = { ["nom"] = "thorne", ["tèxte"] = "[[Classificacion de Thorne|Classificacion de Thorne (2002)]]" },
  ["raunkier"] = { ["nom"] = "raunkier", ["tèxte"] = "[[Classificacion de Raunkier|Classificacion de Raunkier (1934)]]" },
  ["coi"] = { ["nom"] = "coi", ["tèxte"] = "[[Congrès ornithologique international|Classificacion (COI)]]", "de COI" },
  ["peterson"] = { ["nom"] = "peterson", ["tèxte"] = "[[Alan P. Peterson|Classificacion de Alan P. Peterson]]" },
  ["sibley"] = { ["nom"] = "sibley", ["tèxte"] = "[[Classificacion de Sibley-Ahlquist]]" },
  ["asw"] = { ["nom"] = "asw", ["tèxte"] = "[[Amphibian Species of the World|Classificacion segon ASW]]" },
  ["reptiledb"] = { ["nom"] = "reptiledb", ["tèxte"] = "[[The Reptile Database|Classificacion segon ReptileDB]]" },
  ["tftsg"] = { ["nom"] = "tftsg", ["tèxte"] = "[[Tortoise and Freshwater Turtle Specialist Group|Classificacion segon TFTSG]]" },
  ["msw"] = { ["nom"] = "msw", ["tèxte"] = "[[Mammal Species of the World|Classificacion segon MSW]]" },
  ["fungorum"] = { ["nom"] = "fungorum", ["tèxte"] = "[[Index Fungorum|Classificacion segon Index Fungorum]]" },
  ["mycobank"] = { ["nom"] = "mycobank", ["tèxte"] = "[http://www.mycobank.org/ Classification segon MycoBank]" },
  ["catalogueoflife"] = { ["nom"] = "catalogueoflife", ["tèxte"] = "[[Catalogue of Life|Classificacion segon Catalogue of Life]]" },
  ["lecointre"] = { ["nom"] = "lecointre", ["tèxte"] = "[[Classificacion filogenetica de Guillaume Lecointre et Hervé Le Guyader|Classificacion de Lecointre et Le Guyader]]" },
  ["vegetal"] = { ["nom"] = "végétal", ["tèxte"] = "[[Classificacion classica]]" },
  ["virús"] = { ["nom"] = "virus", ["tèxte"] = "[[Classificacion dels virusses]]" },
  ["ndef"] = { ["nom"] = "ndef", ["tèxte"] = "[[Classificacion de las espècias|Classificacion]]", ["tèxte2"] = "en classificacion classica" },
  ["filo"] = { ["nom"] = "filo", ["tèxte"] = "[[Classificacion filogenetica]]", ["tèxte2"] = "en classification phylogénétique" }
}

--[[
  Classifications références (pour "conflit")
--]]
p.classifications_ref = {
  ["?"] = { ["nom"] = "?", ["tèxte"] = "[[Wikipèdia:Citatz vòstras fonts|?]]" },
  ["??"] = { ["nom"] = "??", ["tèxte"] = "[[Wikipèdia:Citatz vòstras fonts|?]]" },
  ["???"] = { ["nom"] = "???", ["tèxte"] = "[[Wikipèdia:Citatz vòstras fonts|?]]" },
  ["????"] = { ["nom"] = "????", ["tèxte"] = "[[Wikipèdia:Citatz vòstras fonts|?]]" },
  ["adw"] = { ["nom"] = "adw", ["tèxte"] = "[[Animal Diversity Web|ADW]]" },
  ["algaebase"] = { ["nom"] = "algaebase", ["tèxte"] = "[http://www.algaebase.org AlgaeBase]" },
  ["apgii"] = { ["nom"] = "apgii", ["tèxte"] = "[[Classificacion APG II|APG II]]" },
  ["apgiii"] = { ["nom"] = "apgiii", ["tèxte"] = "[[Classificacion APG III|APG III]]" },
  ["apwebsite"] = { ["nom"] = "apwebsite", ["tèxte"] = "[[Angiosperm Phylogeny Website|APWebsite]]" },
  ["a.z.lehrer"] = { ["nom"] = "a.z.lehrer", ["tèxte"] = "''A.Z. Lehrer''" },
  ["biolib"] = { ["nom"] = "biolib", ["tèxte"] = "[http://www.biolib.cz/en/ BioLib]" },
  ["catalogueoflife"] = { ["nom"] = "catalogueoflife", ["tèxte"] = "[[Catalogue of Life|CoL]]" },
  ["cites"] = { ["nom"] = "cites", ["tèxte"] = "[[Convention sur le commerce international des espèces de faune et de flore sauvages menacées d'extinction|CITES]]" },
  ["coi"] = { ["nom"] = "coi", ["tèxte"] = "[[Congrès ornithologique international|COI]]" },
  ["cronquist"] = { ["nom"] = "cronquist", ["tèxte"] = "[[Classificacion_de_Cronquist|Cronquist]]" },
  ["doris"] = { ["nom"] = "doris", ["tèxte"] = "[[DORIS (FFESSM)|DORIS]]" },
  ["en"] = { ["nom"] = "en", ["tèxte"] = "[[:en:Accueil|en]]" },
  ["faunaeur"] = { ["nom"] = "faunaeur", ["tèxte"] = "[[Fauna Europaea|Faunaeur]]" },
  ["fishbase"] = { ["nom"] = "fishbase", ["tèxte"] = "[[FishBase]]" },
  ["funet"] = { ["nom"] = "funet", ["tèxte"] = "[http://www.nic.funet.fi/pub/sci/bio/life/ Funet]" },
  ["grin"] = { ["nom"] = "grin", ["tèxte"] = "[http://www.ars-grin.gov/ GRIN]" },
  ["indexfungorum"] = { ["nom"] = "indexfungorum", ["tèxte"] = "[[Index Fungorum|IndexFungorum]]" },
  ["uicn"] = { ["nom"] = "uicn", ["tèxte"] = "[[Union internacionala per la conservacion de la natura|UICN]]" },
  ["itis"] = { ["nom"] = "itis", ["tèxte"] = "[[Sistèma d'informacion taxonomica integrat|ITIS]]" },
  ["lepindex"] = { ["nom"] = "lepindex", ["tèxte"] = "[http://www.nhm.ac.uk/research-curation/research/projects/butmoth/ LepIndex]" },
  ["lehrer"] = { ["nom"] = "lehrer", ["tèxte"] = "[[Andy Z. Lehrer|A.Z.Lehrer]]" },
  ["miller-butterworth2007"] = { ["nom"] = "miller-butterworth2007", ["tèxte"] = "[http://mbe.oxfordjournals.org/content/24/7/1553.full Miller-Butterworth<small> 2007</small>]" },
  ["msw"] = { ["nom"] = "msw", ["tèxte"] = "[[Mammal Species of the World|MSW]]" },
  ["ncbi"] = { ["nom"] = "ncbi", ["tèxte"] = "[[National Center for Biotechnology Information|NCBI]]" },
  ["reptiledb"] = { ["nom"] = "reptiledb", ["tèxte"] = "[[The Reptile Database|ReptileDB]]" },
  ["sibley"] = { ["nom"] = "sibley", ["tèxte"] = "[[Classificacion de Sibley-Ahlquist|Sibley]]" },
  ["teeling2005"] = { ["nom"] = "teeling2005", ["tèxte"] = "[http://bcrc.bio.umass.edu/courses/fall2006/biol/biol597l/Teeling_2005.pdf Teeling<small> 2005</small>]" },
  ["tolweb"] = { ["nom"] = "tolweb", ["tèxte"] = "[http://tolweb.org Tolweb]" },
  ["tpdb"] = { ["nom"] = "tpdb", ["tèxte"] = "[[The Paleobiology database|PaleoDB]]" },
  ["commons"] = { ["nom"] = "commons", ["tèxte"] = "commons" },
  ["wikicommons"] = { ["nom"] = "wikicommons", ["tèxte"] = "[[:commons:Accueil|Wikicommons]]" },
  ["wikispecies"] = { ["nom"] = "wikispecies", ["tèxte"] = "[[:species:Accueil|Wikispecies]]" },
  ["worms"] = { ["nom"] = "worms", ["tèxte"] = "[http://www.marinespecies.org/ WoRMS]" }
}


--[[
  Données d'exclusion de l'italique.
  Chaque élément contient deux chaînes : l'expression régulière à vérifier, et par quoi la remplacer (les "contre-italiques").
  Note : n'appliquer ceci *que si le nom doit être en italiques* !
  Note : la présence d'une espace avant certains termes est nécessaire. Exemple : "var[.]" correspond aussi à "convar[.]" et
         s'appliquerait deux fois siquenon.
--]]
p.exclusion = {
    { " cl[.]", " ''cl.''" },
    { "convar[.]", "''convar.''" },
    { " f[.]", " ''f.''" },
    { " gen[.]", " ''gen.''" },
    { "kl[.]", "''kl.''" },
    { "nothog[.]", "''nothog.''" },
    { "nothosp[.]", "''nothosp.''" },
    { "nothovar[.]", "''nothovar.''" },
    { " ord[.]", " ''ord.''" },
    { " fam[.]", " ''fam.''" },
    { " sect[.]", " ''sect.''" },
    { " ser[.]", " ''ser.''" },
    { " sp[.]", " ''sp.''" },
    { "subg[.]", "''subg.''" },
    { "subsp[.]", "''subsp.''" },
    { " tr[.]", " ''tr.''" },
    { " var[.]", " ''var.''" },
    { "×", "''×''" },
    { "[(]", "''(''" },
    { "[)]", "'')''" }
}
-- exclusion : noms français de clades sans que ce soit détectable
p.exclusion_clade = {
    "Angiospermes"
}

-- le module
return p