« Module:Infobox/Configs/Membre » : différence entre les versions
De Nefald
Autres actions
Page créée avec « local config = { titre = function(args) return args.pseudo or '{{PAGENAME}}' end, icone = { type = 'fas', nom = 'user' }, image = function(args) if args.image then return { nom = args.image, taille = args.tailleimage or "280px", legende = args.legende or args.pseudo or '{{PAGENAME}}' } end return nil end,... » |
m IRL : passe-temps |
||
(4 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 22 : | Ligne 22 : | ||
sections = { | sections = { | ||
{ | { | ||
titre = 'Informations | titre = 'Informations', | ||
champs = { | champs = { | ||
{ | { | ||
cle = 'discord', | cle = 'discord', | ||
label = 'Discord', | label = 'Discord', | ||
process = function(value, args) | process = function(value, args, frame) | ||
if not value or value == '' then | if not value or value == '' then | ||
return nil | return nil | ||
end | end | ||
return value | |||
-- Créer le lien Discord | |||
local discordLink = 'https://discord.com/users/' .. mw.text.encode(value) | |||
-- Retourner HTML flouté (CSS externe) | |||
return '<span class="discord-masked">[' .. discordLink .. ' ' .. mw.text.encode(value) .. ']</span>' | |||
end | end | ||
}, | }, | ||
{ | { | ||
cle = 'role', | cle = 'role', | ||
Ligne 43 : | Ligne 50 : | ||
local roleValues = { | local roleValues = { | ||
['fondateur'] = ' | ['fondateur'] = 'Fondateur', | ||
['propriétaire'] = ' | ['propriétaire'] = 'Propriétaire', | ||
['administrateur'] = ' | ['administrateur'] = 'Administrateur', | ||
['modérateur'] = ' | ['modérateur'] = 'Modérateur', | ||
['builder'] = ' | ['builder'] = 'Builder', | ||
['développeur'] = ' | ['développeur'] = 'Développeur', | ||
['joueur'] = ' | ['joueur'] = 'Joueur' | ||
} | } | ||
Ligne 75 : | Ligne 81 : | ||
}, | }, | ||
{ | { | ||
titre = ' | titre = 'Communauté', | ||
champs = { | champs = { | ||
{ | { | ||
Ligne 86 : | Ligne 92 : | ||
local gradeValues = { | local gradeValues = { | ||
['grand intendant'] = '[[ | ['grand intendant'] = '[[Intendant|Grand Intendant]]', | ||
['intendant'] = '[[ | ['intendant'] = '[[Intendant]]', | ||
['architecte'] = '[[ | ['officier'] = '[[Officier]]', | ||
[' | ['architecte'] = '[[Architecte]]', | ||
['batisseur'] = '[[ | ['scriptomancien'] = '[[Scriptomancien]]', | ||
[' | ['scribe'] = '[[Scribe]]', | ||
[' | ['aspirant'] = '[[Aspirant]]', | ||
[' | ['machiniste'] = '[[Machiniste]]', | ||
['batisseur'] = '[[Bâtisseur]]', | |||
['menestrel'] = '[[Ménestrel]]', | |||
['contremaitre'] = '[[Contremaître]]', | |||
['peregrin'] = '[[Pérégrin]]', | |||
['maraud'] = '[[Maraud]]' | |||
} | } | ||
Ligne 147 : | Ligne 158 : | ||
{ | { | ||
cle = 'contribution', | cle = 'contribution', | ||
label = 'Contribution', | label = 'Contribution(s) notable(s)', | ||
process = function(value, args) | process = function(value, args) | ||
if not value or value == '' then | if not value or value == '' then | ||
Ligne 162 : | Ligne 173 : | ||
{ | { | ||
cle = 'association_role', | cle = 'association_role', | ||
label = 'Rôle | label = 'Rôle', | ||
process = function(value, args) | process = function(value, args) | ||
if not value or value == '' then | if not value or value == '' then | ||
Ligne 169 : | Ligne 180 : | ||
local assoRoleValues = { | local assoRoleValues = { | ||
['président'] = '[[Président | ['président'] = '[[Association:Président|Président]]', | ||
['vice-president'] = '[[Association:Vice-Président|Vice-Président]]', | |||
['vice- | ['trésorier'] = '[[Association:Trésorier|Trésorier]]', | ||
['tresorier adjoint'] = '[[Association:Trésorier adjoint|Trésorier adjoint]]', | |||
['trésorier'] = '[[Trésorier]]', | ['secrétaire'] = '[[Association:Secrétaire|Secrétaire]]', | ||
['tresorier'] = '[[Trésorier]]', | ['secretaire adjoint'] = '[[Association:Secrétaire adjoint|Secrétaire adjoint]]' | ||
['secrétaire'] = '[[Secrétaire]]', | |||
['secretaire'] = '[[Secrétaire | |||
} | } | ||
Ligne 422 : | Ligne 429 : | ||
return sexeValues[cleanValue] or value | return sexeValues[cleanValue] or value | ||
end | |||
}, | |||
{ | |||
cle = 'passe-temps', | |||
label = 'Passe-temps', | |||
process = function(value, args) | |||
if not value or value == '' then | |||
return nil | |||
end | |||
return value | |||
end | end | ||
} | } |