Module:Infobox/Société

De Starfield Wiki
Révision datée du 23 juillet 2022 à 07:55 par Kims (discussion | contributions) (Page créée avec « local localdata = require('Module:Infobox/Localdata') function buildSubject(localdata) local subject = 'Compagnie' if localdata['type'] then local types = { ['spatiale'] = 'spatiale', } local type = types[localdata['type']:lower()] if type then subject = subject .. ' ' .. type end end return subject end return { parts = { { type = 'title', value = 'nom', subtitle = 'sous-titre', icon = 'icône', subhead = { subject = build... »)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Documentation[voir] [modifier] [purger]
local localdata = require('Module:Infobox/Localdata')

function buildSubject(localdata)
	local subject = 'Compagnie'
	
	if localdata['type'] then
		local types = {
			['spatiale']           = 'spatiale',
		}
		
		local type = types[localdata['type']:lower()]
		if type then
			subject = subject .. ' ' .. type
		end
	end

	return subject
end

return {
	parts = {
		{ type = 'title', value = 'nom', subtitle = 'sous-titre', icon = 'icône', subhead = { subject = buildSubject(localdata), link = 'Compagnie' }},
		{ type = 'images', imageparameters = { 'image', 'image2', 'image3', 'image4', 'image5' }, captionparameter = { 'légende', 'image desc' }},
		{ type = 'table', separator = true, rows = {
			{ type = 'row', label = 'Activité', value = 'activité' },
			{ type = 'row', label = 'Produits', value = 'produits' }
		}},
		{ type = 'table', title = 'Personnalité', rows = {
			{ type = 'row', label = 'Fondateur', value = 'fondateur' },
			{ type = 'row', label = 'Employés', value = 'employés' }
		}},
		{ type = 'table', title = 'Localisation', rows = {
			{ type = 'row', label = 'Planète', value = 'planète' },
			{ type = 'row', label = 'Siège social', value = { 'siège', 'siège social' }},
			{ type = 'row', label = 'Propriétés', value = { 'propriétés', 'localisations' }}
		}},
		{ type = 'table', title = 'Relation', rows = {
			{ type = 'row', label = 'Société mère', value = { 'société mère', 'parent' }},
			{ type = 'row', label = 'Filiale', value = { 'filiale', 'divisions' }},
			{ type = 'row', label = 'Associé', value = { 'associé', 'relative' }}
		}},
		{ type = 'text', value = 'pied' }
	}
}