62 737
modifications
mAucun résumé des modifications |
mAucun résumé des modifications |
||
Ligne 1 : | Ligne 1 : | ||
local localdata = require('Module:Infobox/Localdata') | |||
function buildSubject(localdata) | |||
local subject = 'Entreprise' | |||
if localdata['type'] then | |||
local types = { | |||
['avant-guerre'] = 'd\'avant-guerre', | |||
['après-guerre'] = 'd\'après-guerre', | |||
} | |||
local type = types[localdata['type']:lower()] | |||
if type then | |||
prefix = prefix..' '..type | |||
end | |||
end | |||
return subject | |||
end | |||
return { | return { | ||
parts = { | parts = { | ||
{ type = 'title', value = 'nom', subtitle = 'sous-titre', icon = 'icône', subhead = { subject = | { type = 'title', value = 'nom', subtitle = 'sous-titre', icon = 'icône', subhead = { subject = buildSubject(localdata), link = 'Entreprises' }}, | ||
{ type = 'images', imageparameters = { 'image', 'image2', 'image3', 'image4', 'image5' }, captionparameter = { 'légende', 'image desc' }}, | { type = 'images', imageparameters = { 'image', 'image2', 'image3', 'image4', 'image5' }, captionparameter = { 'légende', 'image desc' }}, | ||
{ type = 'table', separator = true, rows = { | { type = 'table', separator = true, rows = { |
modifications