« Module:Infobox/Objet/Note » : différence entre les versions

Page créée avec « local general = require("Module:Infobox/Fonctions") local localdata = require("Module:Infobox/Localdata") -- Support de la note (par défaut : tablette) medium = function(localdata) local medium = localdata["support"] or "tablette" local MEDIUMS = { tablette = {"Tablette", "SF Tablette.png"}, } local medium_config = MEDIUMS[medium:lower()] if family_config == nil then error(string.format( "Valeur inconnue du paramètre « support » : « %s »", m... »
 
m Correction sur le nom d'une variable
Ligne 9 : Ligne 9 :
}
}
local medium_config = MEDIUMS[medium:lower()]
local medium_config = MEDIUMS[medium:lower()]
if family_config == nil then
if medium_config == nil then
error(string.format(
error(string.format(
"Valeur inconnue du paramètre « support » : « %s »",
"Valeur inconnue du paramètre « support » : « %s »",
Ligne 31 : Ligne 31 :
             rows = {
             rows = {
                 {type = "row", label = "Support", value = medium},
                 {type = "row", label = "Support", value = medium},
                 {type = "row", label = "Localisation", value = "localisation"},
                 {type = "row", label = "Emplacement", value = "emplacement"},
             },
             },
         },
         },