« Module:Infobox/Configs/Plugin » : différence entre les versions
De Nefald
Autres actions
init |
correction type |
||
| Ligne 4 : | Ligne 4 : | ||
end, | end, | ||
icone = { | icone = { | ||
type = 'fas', | type = 'fas', | ||
| Ligne 21 : | Ligne 20 : | ||
end, | end, | ||
-- Configuration du champ "type" | -- Configuration du champ "type" (utilisée par le Core) | ||
typeField = { | typeField = { | ||
required = true, | required = true, | ||
allowedValues = { | allowedValues = { | ||
['économie'] = { | ['économie'] = { | ||
| Ligne 30 : | Ligne 29 : | ||
}, | }, | ||
['pvp'] = { | ['pvp'] = { | ||
display = 'PvP', | display = 'PvP', | ||
category = 'Plugins de PvP' | category = 'Plugins de PvP' | ||
}, | }, | ||
| Ligne 80 : | Ligne 79 : | ||
display = 'Mob', | display = 'Mob', | ||
category = 'Plugins de mobs' | category = 'Plugins de mobs' | ||
} | } | ||
}, | }, | ||
errorMessage = ' | errorMessage = 'Type de plugin non reconnu. Types autorisés : économie, pvp, roleplay, administration, protection, cosmétique, communication, utilitaire, mini-jeu, monde, inventaire, transport, magie, mob' | ||
}, | }, | ||
sections = { | sections = { | ||
{ | { | ||
champs = { | champs = { | ||
{ cle = 'type', label = 'Type' | { cle = 'type', label = 'Type' }, | ||
{ cle = 'dev', label = 'Développeur | { cle = 'dev', label = 'Développeur' }, | ||
{ cle = 'status', label = 'Statut' }, | |||
{ cle = 'grade', label = 'Grade requis' } | |||
{ cle = ' | |||
{ cle = ' | |||
} | } | ||
}, | }, | ||
{ | { | ||
titre = ' | titre = 'Téléchargements', | ||
champs = { | champs = { | ||
{ cle = ' | { cle = 'bukkit', label = 'Bukkit' }, | ||
{ cle = ' | { cle = 'hangar', label = 'Hangar (PaperMC)' }, | ||
{ cle = 'modrinth', label = 'Modrinth' }, | |||
{ cle = 'builtbybit', label = 'BuiltByBit' }, | |||
{ cle = 'spigot', label = 'Spigot' }, | |||
{ cle = 'sources', label = 'Code source' } | |||
} | } | ||
}, | }, | ||
{ | { | ||
titre = ' | titre = 'Compatibilité', | ||
champs = { | champs = { | ||
{ cle = ' | { cle = 'dépendance', label = 'Dépendances' }, | ||
{ cle = 'compatibilité', label = 'Compatible avec' } | |||
} | } | ||
} | } | ||
} | } | ||
} | } | ||
return config | return config | ||