62 737
modifications
mAucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 9 : | Ligne 9 : | ||
if apparition then | if apparition then | ||
apparition = require( 'Module:Abréviation' ).links({ apparition, ['séparateur'] = '<br/>' }) | apparition = require( 'Module:Abréviation' ).links({ apparition, ['séparateur'] = '<br/>' }) | ||
end | |||
-- sujet | |||
local subject = localdata['type'] | |||
if subject then | |||
local types = { | |||
['personnage'] = 'Personnage fictif', | |||
} | |||
subject = types[subject:lower()] or 'Fiction' | |||
else | |||
subject = 'Fiction' | |||
end | end | ||
Ligne 17 : | Ligne 28 : | ||
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 = subject }}, | ||
{ 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 = { | ||
{ type = 'row', label = 'Rôle', value = { ' | { type = 'row', label = 'Rôle', value = 'rôle' }, | ||
{ type = 'row', label = 'Affiliation', value = 'rôle' }, | |||
}}, | |||
{ type = 'table', separator = true, rows = { | |||
{ type = 'row', label = 'Média', value = 'média' }, | { type = 'row', label = 'Média', value = 'média' }, | ||
{ type = 'row', label = 'Créateur', value = 'créateur' }, | { type = 'row', label = 'Créateur', value = 'créateur' }, | ||
{ type = 'row', label = 'Éditeur', value = 'éditeur' }, | |||
{ type = 'row', label = 'Apparitions', value = function() return apparition end } | { type = 'row', label = 'Apparitions', value = function() return apparition end } | ||
}}, | }}, |
modifications