« Module:Infobox/Faction » : 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 = 'Politique', rows = { { type = 'row', label = 'Type', value = 'type' }, { type = 'row', label = 'Gouvernement', value = 'go... »
 
maintenance
 
(2 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 = 'Politique', rows = {
        {
{ type = 'row', label = 'Type', value = 'type' },
            type = "table",
{ type = 'row', label = 'Gouvernement', value = 'gouvernement' },
            title = "Politique",
{ type = 'row', label = 'Structure', value = 'structure' },
            rows = {
{ type = 'row', label = 'Dissolution', value = 'dissolution' }
                {type = "row", label = "Type", value = "type"},
}},
                {type = "row", label = "Gouvernement", value = "gouvernement"},
{ type = 'table', title = 'Société', rows = {
                {type = "row", label = "Structure", value = "structure"},
{ type = 'row', label = 'Fondateur', value = 'fondateur' },
                {type = "row", label = "Dissolution", value = "dissolution"},
{ type = 'row', label = 'Chef', value = { 'chefs', 'leaders' }},
            }
{ type = 'row', label = 'Membre notable', value = 'membres' }
        },
}},
        {
{ type = 'table', title = 'Territoire', rows = {
            type = "table",
{ type = 'row', label = 'Capitale', value = 'capitale' },
            title = "Société",
{ type = 'row', label = 'Territoire', value = 'territoire' },
            rows = {
{ type = 'row', label = 'Quartier-général', value = 'qg' },
                {type = "row", label = "Fondateurs", value = "fondateurs"},
{ type = 'row', label = 'Centre majeur', value = 'majeur' },
                {type = "row", label = "Chefs", value = "chefs"},
{ type = 'row', label = 'Lieu notable', value = 'lieux' }
                {type = "row", label = "Membres notables", value = "membres"},
}},
            }
{ type = 'table', title = 'Relation et association', rows = {
        },
{ type = 'row', label = 'Parent', value = 'parent' },
        {
{ type = 'row', label = 'Division', value = 'divisions' },
            type = "table",
{ type = 'row', label = 'Relation', value = 'relations' }
            title = "Territoires",
}},
            rows = {
{ type = 'text', value = 'pied' }
                {type = "row", label = "Capitale", value = "capitale"},
}
                {type = "row", label = "Territoires", value = "territoires"},
                {type = "row", label = "Quartier-général", value = "qg"},
                {type = "row", label = "Centres majeurs", value = "majeurs"},
                {type = "row", label = "Lieux notables", value = "lieux"},
                {type = "row", label = "Systèmes", value = "systèmes"},
            }
        },
        {
            type = "table",
            title = "Relations et associations",
            rows = {
                {type = "row", label = "Parent", value = "parents"},
                {type = "row", label = "Division", value = "divisions"},
                {type = "row", label = "Relation", value = "relations"},
            },
        },
        general.creation_kit(),
    }
}
}

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

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

return {
    parts = {
        general.title(),
        general.image(),
        {
            type = "table",
            title = "Politique",
            rows = {
                {type = "row", label = "Type", value = "type"},
                {type = "row", label = "Gouvernement", value = "gouvernement"},
                {type = "row", label = "Structure", value = "structure"},
                {type = "row", label = "Dissolution", value = "dissolution"},
            }
        },
        {
            type = "table",
            title = "Société",
            rows = {
                {type = "row", label = "Fondateurs", value = "fondateurs"},
                {type = "row", label = "Chefs", value = "chefs"},
                {type = "row", label = "Membres notables", value = "membres"},
            }
        },
        {
            type = "table",
            title = "Territoires",
            rows = {
                {type = "row", label = "Capitale", value = "capitale"},
                {type = "row", label = "Territoires", value = "territoires"},
                {type = "row", label = "Quartier-général", value = "qg"},
                {type = "row", label = "Centres majeurs", value = "majeurs"},
                {type = "row", label = "Lieux notables", value = "lieux"},
                {type = "row", label = "Systèmes", value = "systèmes"},
            }
        },
        {
            type = "table",
            title = "Relations et associations",
            rows = {
                {type = "row", label = "Parent", value = "parents"},
                {type = "row", label = "Division", value = "divisions"},
                {type = "row", label = "Relation", value = "relations"},
            },
        },
        general.creation_kit(),
    }
}