Modification de Module:Infobox/Personnalité
La modification peut être annulée. Veuillez vérifier les différences ci-dessous pour voir si c’est bien ce que vous voulez faire, puis publier ces changements pour finaliser l’annulation de cette modification.
Version actuelle | Votre texte | ||
Ligne 9 : | Ligne 9 : | ||
if ibSubject then | if ibSubject then | ||
local types = { | local types = { | ||
['acteur'] ='Acteur', | |||
['actrice'] ='Actrice', | |||
['développeur'] ='Développeur', | |||
['développeuse'] ='Développeuse', | |||
['employé'] ='Employé du jeu vidéo', | |||
['employée'] ='Employée du jeu vidéo', | |||
['groupe'] ='Groupe musical', | |||
['musicien'] ='Musicien', | |||
['musicienne'] ='Musicienne' | |||
} | } | ||
subject = types[subject:lower()] or 'Personnalité' | |||
else | else | ||
ibSubject = 'Personnalité' | ibSubject = 'Personnalité' | ||
Ligne 51 : | Ligne 43 : | ||
if imdb then imdb = '[' .. imdb .. ' ' .. pagename .. ']' end | if imdb then imdb = '[' .. imdb .. ' ' .. pagename .. ']' end | ||
if mobygames then mobygames = '[' .. | if mobygames then mobygames = '[' .. imdb .. ' ' .. pagename .. ']' end | ||
end | end | ||
Ligne 63 : | Ligne 55 : | ||
{ 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', title = 'Biographie', rows = { | { type = 'table', title = 'Biographie', rows = { | ||
{ type = 'row', label = 'Naissance', value = 'naissance' }, | { type = 'row', label = 'Naissance', value = 'naissance' }, | ||
{ type = 'row', label = 'Mort', value = 'mort' } | { type = 'row', label = 'Mort', value = 'mort' } | ||
Ligne 73 : | Ligne 64 : | ||
}}, | }}, | ||
{ type = 'table', title = 'Liens externes', rows = { | { type = 'table', title = 'Liens externes', rows = { | ||
{ type = 'row', label = 'Site personnel', value = 'personnel | { type = 'row', label = 'Site personnel', value = 'personnel' }, | ||
{ type = 'row', label = 'Wikipédia', | { type = 'row', label = 'Wikipédia', function() return wikipedia end }, | ||
{ type = 'row', label = ' | { type = 'row', label = 'IMDb', function() return imdb end }, | ||
{ type = 'row', label = ' | { type = 'row', label = 'MobyGames', function() return mobygames end }, | ||
{ type = 'row', label = 'Autres liens', value = 'autres liens' } | { type = 'row', label = 'Autres liens', value = 'autres liens' } | ||
}}, | }}, |