« Module:Infobox/Planète » : différence entre les versions

De Starfield Wiki
Page créée avec « return { parts = { { type = 'title', value = 'nom', subtitle = 'sous-titre', icon = 'icône', subhead = { games = 'jeux', subject = 'Faction', link = 'Factions' }}, { type = 'images', imageparameters = { 'image', 'image2', 'image3', 'image4', 'image5' }, captionparameter = { 'légende', 'image desc' }}, { type = 'table', title = 'Informations générales', rows = { { type = 'row', label = 'Système', value = 'système' }, { type = 'row', label = 'Fac... »
 
+cration kit
 
(8 versions intermédiaires par 2 utilisateurs non affichées)
Ligne 1 : Ligne 1 :
local general = require("Module:Infobox/Fonctions")
return {
return {
parts = {
    parts = {
{ type = 'title', value = 'nom', subtitle = 'sous-titre', icon = 'icône', subhead = { games = 'jeux', subject = 'Faction', link = 'Factions' }},
        general.title(),
{ type = 'images', imageparameters = { 'image', 'image2', 'image3', 'image4', 'image5' }, captionparameter = { 'légende', 'image desc' }},
        general.image(),
{ type = 'table', title = 'Informations générales', rows = {
        {
{ type = 'row', label = 'Système', value = 'système' },
            type = "table",
{ type = 'row', label = 'Faction', value = 'faction' },
            title = "Caractéristiques",
}},
            rows = {
{ type = 'text', value = 'pied' }
                {type = "row", label = "Système", value = "système"},
}
                {type = "row", label = "Type", value = "type"},
                {type = "row", label = "Gravité", value = "gravité"},
                {type = "row", label = "Température", value = "température"},
                {type = "row", label = "Atmosphère", value = "atmosphère"},
                {type = "row", label = "Magnétosphère", value = "magnétosphère"},
                {type = "row", label = "Ressource", value = "ressource"},
                {type = "row", label = "Faune", value = "faune"},
                {type = "row", label = "Flore", value = "flore"},
                {type = "row", label = "Eau", value = "eau"},
                {type = "row", label = "Satellites", value = "satellites"},
                {type = "row", label = "Satellite de", value = "satellite de"},
            }
        },
        {
            type = "table",
            title = "Colonies",
            rows = {
                {type = "row", label = "Faction", value = "faction"},
                {type = "row", label = "Lieu", value = "lieu"}
            },
        },
        general.creation_kit(),
    }
}
}

Dernière version du 25 novembre 2023 à 07:41

Documentation[voir] [modifier] [purger]
local general = require("Module:Infobox/Fonctions")

return {
    parts = {
        general.title(),
        general.image(),
        {
            type = "table",
            title = "Caractéristiques",
            rows = {
                {type = "row", label = "Système", value = "système"},
                {type = "row", label = "Type", value = "type"},
                {type = "row", label = "Gravité", value = "gravité"},
                {type = "row", label = "Température", value = "température"},
                {type = "row", label = "Atmosphère", value = "atmosphère"},
                {type = "row", label = "Magnétosphère", value = "magnétosphère"},
                {type = "row", label = "Ressource", value = "ressource"},
                {type = "row", label = "Faune", value = "faune"},
                {type = "row", label = "Flore", value = "flore"},
                {type = "row", label = "Eau", value = "eau"},
                {type = "row", label = "Satellites", value = "satellites"},
                {type = "row", label = "Satellite de", value = "satellite de"},
            }
        },
        {
            type = "table",
            title = "Colonies",
            rows = {
                {type = "row", label = "Faction", value = "faction"},
                {type = "row", label = "Lieu", value = "lieu"}
            },
        },
        general.creation_kit(),
    }
}