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

De Starfield Wiki
Aucun résumé des modifications
Aucun résumé des modifications
 
(19 versions intermédiaires par 4 utilisateurs non affichées)
Ligne 1 : Ligne 1 :
localdata = require( "Module:Infobox/Localdata" )
local general = require("Module:Infobox/Fonctions")
 
-- sujet
local subject = localdata['type'] or 'lieu'
subjects = {
["ville"] = "Ville",
}
subject = subjects[subject] or 'lieu'


return {
return {
parts = {
    parts = {
{ type = "title", value = "nom", subtitle = "sous-titre", icon = "icône", subhead = { subject = subject, link = "Starfield" }},
        general.title(),
{ type = "images", imageparameters = { "image", "image2", "image3", "image4", "image5" }, captionparameter = { "légende", "image desc" }},
        general.image(),
{ type = "table", separator = true, rows = {
        {
{ type = "row", label = "Corporation", value = "corporation" },
            type = "table",
}},
            title = "Informations générales",  
{ type = "text", value = "pied" }
            rows = {
}
            {type = "row", label = "Type", value = "type"},
                {type = "row", label = "Système", value = "système"},
                {type = "row", label = "Faction", value = "faction"},
                {type = "row", label = "Planète", value = "planète"},
            }
        },
        {
            type = "table",  
            title = "Technique",
            collapseparameters = {collapsible = true, collapsed = true},
            rows = {
            {type = "row", label = "Proto ID", value = "proto"},
            {type = "row", label = "[[Editor ID]]", value = "editorid"},
            {type = "row", label = "[[Form ID]]", value = "formid"},
            },
        },
    }
}
}

Dernière version du 24 novembre 2023 à 16:53

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

return {
    parts = {
        general.title(),
        general.image(),
        {
            type = "table",
            title = "Informations générales", 
            rows = {
             	{type = "row", label = "Type", value = "type"},
                {type = "row", label = "Système", value = "système"},
                {type = "row", label = "Faction", value = "faction"},
                {type = "row", label = "Planète", value = "planète"},
            }
        },
        {
            type = "table", 
            title = "Technique", 
            collapseparameters = {collapsible = true, collapsed = true}, 
            rows = {
             	{type = "row", label = "Proto ID", value = "proto"},
             	{type = "row", label = "[[Editor ID]]", value = "editorid"},
             	{type = "row", label = "[[Form ID]]", value = "formid"},
            },
        },
    }
}