Différences entre les pages « Module:Yesno » et « Module:Bandeau/Class »
De Les Mots de l'agronomie
(Différence entre les pages)
imported>Jacques Ducloy m (1 révision importée) |
imported>Jacques Ducloy m (1 révision importée) |
||
Ligne 1 : | Ligne 1 : | ||
− | |||
− | |||
− | + | local formes = { | |
− | -- | + | article = 'bandeau-article', |
− | -- | + | systeme = 'bandeau-systeme', |
− | -- | + | section = 'bandeau-section', |
− | + | discussion = 'bandeau-discussion', | |
− | + | simple = 'bandeau-simple', | |
− | + | } | |
− | + | formes['système']=formes.systeme | |
− | + | ||
− | + | local niveau = { | |
− | + | grave = 'bandeau-niveau-grave', | |
− | + | modere = 'bandeau-niveau-modere', | |
− | + | information = 'bandeau-niveau-information', | |
− | + | detail = 'bandeau-niveau-detail', | |
− | + | neutre = 'bandeau-niveau-neutre', | |
− | + | ebauche = 'bandeau-niveau-ebauche', --nécessaire pour le gadget "EbauchesOff" | |
− | + | } | |
− | + | niveau['modéré'] = niveau.modere | |
− | + | niveau.attention = niveau.modere | |
− | + | niveau['ébauche'] = niveau.ebauche | |
− | + | ||
− | + | local icones = { | |
− | + | stop = 'grosse-icone gros-warning', | |
− | + | attention = 'grosse-icone attention', | |
− | + | information = 'grosse-icone information', | |
− | + | ebauche = 'grosse-icone ebauche', | |
− | + | archives = 'grosse-icone archives', | |
− | + | outils = 'grosse-icone maintenance', | |
− | + | protection = 'grosse-icone protection-admin', | |
− | + | semiprotection = 'grosse-icone semi-protection', | |
+ | engrenage = 'grosse-icone roue-dentee', | ||
+ | conflit = 'grosse-icone conflit-edition', | ||
+ | protege = 'grosse-icone titre-protege', | ||
+ | ADQ = 'grosse-icone etoile-or', | ||
+ | BA = 'grosse-icone etoile-argent', | ||
+ | loupe = 'loupe', | ||
+ | general = 'general', | ||
+ | accessibilite = 'accessibilite', | ||
+ | categorie = 'categorie', | ||
+ | biblio = 'biblio', | ||
+ | recyclage = 'recyclage', | ||
+ | sons = 'sons', | ||
+ | videos = 'videos', | ||
+ | incomplet = 'incomplet', | ||
+ | sources = 'sources', | ||
+ | important = 'important', | ||
+ | travaux = 'en-travaux', | ||
+ | } | ||
+ | icones.grave = icones.stop | ||
+ | icones['gros-warning'] = icones.stop | ||
+ | icones['Octagon delete.svg'] = icones.stop | ||
+ | icones['Crystal Clear action stop.png'] = icones.stop | ||
+ | icones['Fairytale no.svg'] = icones.stop | ||
+ | icones['modéré'] = icones.attention | ||
+ | icones.modere = icones.attention | ||
+ | icones['Ambox content.png'] = icones.attention | ||
+ | icones['Ambox important.svg'] = icones.attention | ||
+ | icones['Emblem-important.svg'] = icones.attention | ||
+ | icones['Ambox notice.png'] = icones.information | ||
+ | icones['Gtk-dialog-info.svg'] = icones.information | ||
+ | icones['Info icon 002.svg'] = icones.information | ||
+ | icones['Info non-talk.svg'] = icones.information | ||
+ | icones['Information icon.svg'] = icones.information | ||
+ | icones['ébauche'] = icones.ebauche | ||
+ | icones['Nuvola apps kedit.svg'] = icones.ebauche | ||
+ | icones['Filing cabinet icon.svg'] = icones.archives | ||
+ | icones['Replacement filing cabinet.svg'] = icones.archives | ||
+ | icones['Tools nicu buculei 01.svg'] = icones.outils | ||
+ | icones['Crystal Clear action lock1.png'] = icones.protection | ||
+ | icones['Crystal Clear action half lock.png'] = icones.semiprotection | ||
+ | icones['Crystal Clear action run.png'] = icones.engrenage | ||
+ | icones['accessibilité'] = icones.accessibilite | ||
+ | icones['catégorie'] = icones.categorie | ||
+ | |||
+ | local class = { | ||
+ | formes = formes, | ||
+ | niveau = niveau, | ||
+ | icones = icones, | ||
+ | } | ||
+ | |||
+ | return class |
Version actuelle datée du 7 décembre 2020 à 16:43
La documentation pour ce module peut être créée à Module:Bandeau/Class/doc
local formes = {
article = 'bandeau-article',
systeme = 'bandeau-systeme',
section = 'bandeau-section',
discussion = 'bandeau-discussion',
simple = 'bandeau-simple',
}
formes['système']=formes.systeme
local niveau = {
grave = 'bandeau-niveau-grave',
modere = 'bandeau-niveau-modere',
information = 'bandeau-niveau-information',
detail = 'bandeau-niveau-detail',
neutre = 'bandeau-niveau-neutre',
ebauche = 'bandeau-niveau-ebauche', --nécessaire pour le gadget "EbauchesOff"
}
niveau['modéré'] = niveau.modere
niveau.attention = niveau.modere
niveau['ébauche'] = niveau.ebauche
local icones = {
stop = 'grosse-icone gros-warning',
attention = 'grosse-icone attention',
information = 'grosse-icone information',
ebauche = 'grosse-icone ebauche',
archives = 'grosse-icone archives',
outils = 'grosse-icone maintenance',
protection = 'grosse-icone protection-admin',
semiprotection = 'grosse-icone semi-protection',
engrenage = 'grosse-icone roue-dentee',
conflit = 'grosse-icone conflit-edition',
protege = 'grosse-icone titre-protege',
ADQ = 'grosse-icone etoile-or',
BA = 'grosse-icone etoile-argent',
loupe = 'loupe',
general = 'general',
accessibilite = 'accessibilite',
categorie = 'categorie',
biblio = 'biblio',
recyclage = 'recyclage',
sons = 'sons',
videos = 'videos',
incomplet = 'incomplet',
sources = 'sources',
important = 'important',
travaux = 'en-travaux',
}
icones.grave = icones.stop
icones['gros-warning'] = icones.stop
icones['Octagon delete.svg'] = icones.stop
icones['Crystal Clear action stop.png'] = icones.stop
icones['Fairytale no.svg'] = icones.stop
icones['modéré'] = icones.attention
icones.modere = icones.attention
icones['Ambox content.png'] = icones.attention
icones['Ambox important.svg'] = icones.attention
icones['Emblem-important.svg'] = icones.attention
icones['Ambox notice.png'] = icones.information
icones['Gtk-dialog-info.svg'] = icones.information
icones['Info icon 002.svg'] = icones.information
icones['Info non-talk.svg'] = icones.information
icones['Information icon.svg'] = icones.information
icones['ébauche'] = icones.ebauche
icones['Nuvola apps kedit.svg'] = icones.ebauche
icones['Filing cabinet icon.svg'] = icones.archives
icones['Replacement filing cabinet.svg'] = icones.archives
icones['Tools nicu buculei 01.svg'] = icones.outils
icones['Crystal Clear action lock1.png'] = icones.protection
icones['Crystal Clear action half lock.png'] = icones.semiprotection
icones['Crystal Clear action run.png'] = icones.engrenage
icones['accessibilité'] = icones.accessibilite
icones['catégorie'] = icones.categorie
local class = {
formes = formes,
niveau = niveau,
icones = icones,
}
return class