« Module:Infobox/Serveur » : différence entre les versions
Ajout du module de l'infobox Serveur |
Ajout de champs "hardware" |
||
Ligne 25 : | Ligne 25 : | ||
{ | { | ||
type = "table", | type = "table", | ||
title = " | title = "Informations logiciel", | ||
rows = { | rows = { | ||
{type = "row", label = "OS", value = "os"}, | {type = "row", label = "OS", value = "os"}, | ||
Ligne 32 : | Ligne 32 : | ||
{type = "row", label = "IPv4", value = "ipv4"}, | {type = "row", label = "IPv4", value = "ipv4"}, | ||
{type = "row", label = "IPv6", value = "ipv6"}, | {type = "row", label = "IPv6", value = "ipv6"}, | ||
}, | |||
}, | |||
{ | |||
type = "table", | |||
title = "Informations physique", | |||
rows = { | |||
{type = "row", label = "RAM", value = "ram"}, | |||
{type = "row", label = "CPU", value = "cpu"}, | |||
{type = "row", label = "Mémoire", value = "mémoire"}, | |||
}, | }, | ||
}, | }, | ||
} | } | ||
} | } |
Dernière version du 1 mars 2025 à 01:59
La documentation pour ce module peut être créée à Module:Infobox/Serveur/doc
local general = require("Module:Infobox/Fonctions")
local localdata = require("Module:Infobox/Localdata")
return {
parts = {
general.title(),
general.image(),
{
type = "table",
title = "Général",
rows = {
{type = "row", label = "Domaine", value = "domaine"},
{type = "row", label = "Localisation", value = "localisation"},
{type = "row", label = "Locataire", value = "locataire"},
},
},
{
type = "table",
title = "Services",
rows = {
{type = "row", label = "Accessibles", value = "accessibles"},
{type = "row", label = "Internes", value = "internes"},
},
},
{
type = "table",
title = "Informations logiciel",
rows = {
{type = "row", label = "OS", value = "os"},
{type = "row", label = "Version", value = "version"},
{type = "row", label = "Ports", value = "ports"},
{type = "row", label = "IPv4", value = "ipv4"},
{type = "row", label = "IPv6", value = "ipv6"},
},
},
{
type = "table",
title = "Informations physique",
rows = {
{type = "row", label = "RAM", value = "ram"},
{type = "row", label = "CPU", value = "cpu"},
{type = "row", label = "Mémoire", value = "mémoire"},
},
},
}
}