« Modèle:Button/doc » : différence entre les versions
De Nefald
Autres actions
Creation Balises : Modification par mobile Modification par le web mobile |
mAucun résumé des modifications |
||
| Ligne 1 : | Ligne 1 : | ||
== Utilisation == | == Utilisation == | ||
| Ligne 5 : | Ligne 6 : | ||
=== Syntaxe === | === Syntaxe === | ||
< | <syntaxhighlight lang="mediawiki"> | ||
{{ButtonLink | {{ButtonLink | ||
|link = URL du lien | |link = URL du lien | ||
| Ligne 16 : | Ligne 17 : | ||
|alt = Texte alternatif (défaut : valeur de text) | |alt = Texte alternatif (défaut : valeur de text) | ||
}} | }} | ||
</ | </syntaxhighlight> | ||
=== Paramètres === | === Paramètres === | ||
| Ligne 23 : | Ligne 24 : | ||
! Paramètre !! Description !! Requis !! Défaut | ! Paramètre !! Description !! Requis !! Défaut | ||
|- | |- | ||
| '''link''' || URL complète ou relative || | | '''link''' || URL complète ou relative || Oui || - | ||
|- | |- | ||
| '''image''' || Nom du fichier image (ex : "Discord-Logo-White.svg") || | | '''image''' || Nom du fichier image (ex : "Discord-Logo-White.svg") || Oui || - | ||
|- | |- | ||
| '''text''' || Texte affiché sous le logo || | | '''text''' || Texte affiché sous le logo || Non || (vide) | ||
|- | |- | ||
| '''color''' || Nom de couleur prédéfinie (voir liste ci-dessous) || | | '''color''' || Nom de couleur prédéfinie (voir liste ci-dessous) || Non || gray | ||
|- | |- | ||
| '''bg''' || Couleur d'arrière-plan personnalisée (hex, rgb, nom) || | | '''bg''' || Couleur d'arrière-plan personnalisée (hex, rgb, nom) || Non || (utilise color ou défaut) | ||
|- | |- | ||
| '''size''' || Taille de l'image (format MediaWiki) || | | '''size''' || Taille de l'image (format MediaWiki) || Non || x40px | ||
|- | |- | ||
| '''title''' || Texte du titre HTML (infobulle au survol) || | | '''title''' || Texte du titre HTML (infobulle au survol) || Non || valeur de '''text''' | ||
|- | |- | ||
| '''alt''' || Texte alternatif pour l'accessibilité || | | '''alt''' || Texte alternatif pour l'accessibilité || Non || valeur de '''text''' | ||
|} | |} | ||
| Ligne 49 : | Ligne 50 : | ||
! Code !! Plateforme !! Couleur !! Exemple | ! Code !! Plateforme !! Couleur !! Exemple | ||
|- | |- | ||
| <code>discord</code> || Discord || Blurple (#5865f2) || <code>{{ | | <code>discord</code> || Discord || Blurple (#5865f2) || <code>{{ButtonLink|link=https://wiki.nefald.fr/|color=discord}} | ||
|- | |- | ||
| <code>patreon</code> || Patreon || Rouge (#ff424d) || | | <code>patreon</code> || Patreon || Rouge (#ff424d) || {{ButtonLink|link=https://wiki.nefald.fr/|color=patreon}} | ||
|- | |- | ||
| <code>gitlab</code> || GitLab || Orange (#fc6f23) || | | <code>gitlab</code> || GitLab || Orange (#fc6f23) || {{ButtonLink|link=https://wiki.nefald.fr/|color=gitlab}} | ||
|- | |- | ||
| <code>github</code> || GitHub || Sombre (#24292e) || | | <code>github</code> || GitHub || Sombre (#24292e) || {{ButtonLink|link=https://wiki.nefald.fr/|color=github}} | ||
|- | |- | ||
| <code>twitter</code> || Twitter/X || Bleu (#1da1f2) || | | <code>twitter</code> || Twitter/X || Bleu (#1da1f2) || {{ButtonLink|link=https://wiki.nefald.fr/|color=twitter}} | ||
|- | |- | ||
| <code>youtube</code> || YouTube || Rouge (#ff0000) || | | <code>youtube</code> || YouTube || Rouge (#ff0000) || {{ButtonLink|link=https://wiki.nefald.fr/|color=youtube}} | ||
|- | |- | ||
| <code>twitch</code> || Twitch || Violet (#9146ff) || | | <code>twitch</code> || Twitch || Violet (#9146ff) || {{ButtonLink|link=https://wiki.nefald.fr/|color=twitch}} | ||
|- | |- | ||
| <code>reddit</code> || Reddit || Orange (#ff4500) || | | <code>reddit</code> || Reddit || Orange (#ff4500) || {{ButtonLink|link=https://wiki.nefald.fr/|color=reddit}} | ||
|- | |- | ||
| <code>mastodon</code> || Mastodon || Violet (#6364ff) || | | <code>mastodon</code> || Mastodon || Violet (#6364ff) || {{ButtonLink|link=https://wiki.nefald.fr/|color=mastodon}} | ||
|- | |- | ||
| <code>bluesky</code> || Bluesky || Bleu (#0085ff) || | | <code>bluesky</code> || Bluesky || Bleu (#0085ff) || {{ButtonLink|link=https://wiki.nefald.fr/|color=bluesky}} | ||
|- | |- | ||
| <code>linkedin</code> || LinkedIn || Bleu (#0077b5) || | | <code>linkedin</code> || LinkedIn || Bleu (#0077b5) || {{ButtonLink|link=https://wiki.nefald.fr/|color=linkedin}} | ||
|- | |- | ||
| <code>facebook</code> || Facebook || Bleu (#1877f2) || | | <code>facebook</code> || Facebook || Bleu (#1877f2) || {{ButtonLink|link=https://wiki.nefald.fr/|color=facebook}} | ||
|- | |- | ||
| <code>instagram</code> || Instagram || Dégradé || | | <code>instagram</code> || Instagram || Dégradé || {{ButtonLink|link=https://wiki.nefald.fr/|color=instagram}} | ||
|- | |- | ||
| <code>tiktok</code> || TikTok || Noir (#000000) || | | <code>tiktok</code> || TikTok || Noir (#000000) || {{ButtonLink|link=https://wiki.nefald.fr/|color=tiktok}} | ||
|- | |- | ||
| <code>snapchat</code> || Snapchat || Jaune (#fffc00) || | | <code>snapchat</code> || Snapchat || Jaune (#fffc00) || {{ButtonLink|link=https://wiki.nefald.fr/|color=snapchat}} | ||
|- | |- | ||
| <code>threads</code> || Threads || Noir (#000000) || | | <code>threads</code> || Threads || Noir (#000000) || {{ButtonLink|link=https://wiki.nefald.fr/|color=threads}} | ||
|} | |} | ||
| Ligne 87 : | Ligne 88 : | ||
! Code !! Plateforme !! Couleur !! Exemple | ! Code !! Plateforme !! Couleur !! Exemple | ||
|- | |- | ||
| <code>stackoverflow</code> || Stack Overflow || Orange (#f48024) || | | <code>stackoverflow</code> || Stack Overflow || Orange (#f48024) || {{ButtonLink|link=https://wiki.nefald.fr/|color=stackoverflow}} | ||
|- | |- | ||
| <code>npm</code> || npm || Rouge (#cb3837) || | | <code>npm</code> || npm || Rouge (#cb3837) || {{ButtonLink|link=https://wiki.nefald.fr/|color=npm}} | ||
|- | |- | ||
| <code>pypi</code> || PyPI || Bleu (#3775a9) || | | <code>pypi</code> || PyPI || Bleu (#3775a9) || {{ButtonLink|link=https://wiki.nefald.fr/|color=pypi}} | ||
|- | |- | ||
| <code>docker</code> || Docker || Bleu (#2496ed) || | | <code>docker</code> || Docker || Bleu (#2496ed) || {{ButtonLink|link=https://wiki.nefald.fr/|color=docker}} | ||
|- | |- | ||
| <code>kubernetes</code> || Kubernetes || Bleu (#326ce5) || | | <code>kubernetes</code> || Kubernetes || Bleu (#326ce5) || {{ButtonLink|link=https://wiki.nefald.fr/|color=kubernetes}} | ||
|- | |- | ||
| <code>codepen</code> || CodePen || Noir (#000000) || | | <code>codepen</code> || CodePen || Noir (#000000) || {{ButtonLink|link=https://wiki.nefald.fr/|color=codepen}} | ||
|- | |- | ||
| <code>gitlab-ci</code> || GitLab CI || Orange (#fc6d26) || | | <code>gitlab-ci</code> || GitLab CI || Orange (#fc6d26) || {{ButtonLink|link=https://wiki.nefald.fr/|color=gitlab-ci}} | ||
|} | |} | ||
| Ligne 107 : | Ligne 108 : | ||
! Code !! Plateforme !! Couleur !! Exemple | ! Code !! Plateforme !! Couleur !! Exemple | ||
|- | |- | ||
| <code>kofi</code> || Ko-fi || Rouge (#ff5e5b) || | | <code>kofi</code> || Ko-fi || Rouge (#ff5e5b) || {{ButtonLink|link=https://wiki.nefald.fr/|color=kofi}} | ||
|- | |- | ||
| <code>liberapay</code> || Liberapay || Jaune (#f6c915) || | | <code>liberapay</code> || Liberapay || Jaune (#f6c915) || {{ButtonLink|link=https://wiki.nefald.fr/|color=liberapay}} | ||
|- | |- | ||
| <code>buymeacoffee</code> || Buy Me a Coffee || Jaune (#ffdd00) || | | <code>buymeacoffee</code> || Buy Me a Coffee || Jaune (#ffdd00) || {{ButtonLink|link=https://wiki.nefald.fr/|color=buymeacoffee}} | ||
|- | |- | ||
| <code>opencollective</code> || Open Collective || Bleu (#7fadf2) || | | <code>opencollective</code> || Open Collective || Bleu (#7fadf2) || {{ButtonLink|link=https://wiki.nefald.fr/|color=opencollective}} | ||
|} | |} | ||
| Ligne 121 : | Ligne 122 : | ||
! Code !! Plateforme !! Couleur !! Exemple | ! Code !! Plateforme !! Couleur !! Exemple | ||
|- | |- | ||
| <code>modrinth</code> || Modrinth || Vert (#1bd96a) || | | <code>modrinth</code> || Modrinth || Vert (#1bd96a) || {{ButtonLink|link=https://wiki.nefald.fr/|color=modrinth}} | ||
|- | |- | ||
| <code>curseforge</code> || CurseForge || Orange (#f16436) || | | <code>curseforge</code> || CurseForge || Orange (#f16436) || {{ButtonLink|link=https://wiki.nefald.fr/|color=curseforge}} | ||
|- | |- | ||
| <code>hangar</code> || Hangar || Bleu (#0d6efd) || | | <code>hangar</code> || Hangar || Bleu (#0d6efd) || {{ButtonLink|link=https://wiki.nefald.fr/|color=hangar}} | ||
|- | |- | ||
| <code>spigotmc</code> / <code>spigot</code> || SpigotMC || Jaune (#f7c03e) || | | <code>spigotmc</code> / <code>spigot</code> || SpigotMC || Jaune (#f7c03e) || {{ButtonLink|link=https://wiki.nefald.fr/|color=spigot}} | ||
|- | |- | ||
| <code>bukkit</code> || Bukkit || Orange (#f89a1e) || | | <code>bukkit</code> || Bukkit || Orange (#f89a1e) || {{ButtonLink|link=https://wiki.nefald.fr/|color=bukkit}} | ||
|- | |- | ||
| <code>papermc</code> / <code>paper</code> || PaperMC || Bleu (#1a8cff) || | | <code>papermc</code> / <code>paper</code> || PaperMC || Bleu (#1a8cff) || {{ButtonLink|link=https://wiki.nefald.fr/|color=paper}} | ||
|- | |- | ||
| <code>purpur</code> || Purpur || Violet (#a855f7) || | | <code>purpur</code> || Purpur || Violet (#a855f7) || {{ButtonLink|link=https://wiki.nefald.fr/|color=purpur}} | ||
|- | |- | ||
| <code>polymart</code> || Polymart || Rose (#ec4899) || | | <code>polymart</code> || Polymart || Rose (#ec4899) || {{ButtonLink|link=https://wiki.nefald.fr/|color=polymart}} | ||
|- | |- | ||
| <code>github-releases</code> || GitHub Releases || Vert (#238636) || | | <code>github-releases</code> || GitHub Releases || Vert (#238636) || {{ButtonLink|link=https://wiki.nefald.fr/|color=github-releases}} | ||
|- | |- | ||
| <code>jenkins</code> || Jenkins || Rouge (#d24939) || | | <code>jenkins</code> || Jenkins || Rouge (#d24939) || {{ButtonLink|link=https://wiki.nefald.fr/|color=jenkins}} | ||
|- | |- | ||
| <code>maven</code> || Maven || Rouge (#c71a36) || | | <code>maven</code> || Maven || Rouge (#c71a36) || {{ButtonLink|link=https://wiki.nefald.fr/|color=maven}} | ||
|} | |} | ||
| Ligne 149 : | Ligne 150 : | ||
! Code !! Plateforme !! Couleur !! Exemple | ! Code !! Plateforme !! Couleur !! Exemple | ||
|- | |- | ||
| <code>minecraft</code> || Minecraft || Vert (#62b47a) || | | <code>minecraft</code> || Minecraft || Vert (#62b47a) || {{ButtonLink|link=https://wiki.nefald.fr/|color=minecraft}} | ||
|- | |- | ||
| <code>forge</code> || Forge || Bleu foncé (#1e2c42) || | | <code>forge</code> || Forge || Bleu foncé (#1e2c42) || {{ButtonLink|link=https://wiki.nefald.fr/|color=forge}} | ||
|- | |- | ||
| <code>fabric</code> || Fabric || Beige (#dbd3c8) || | | <code>fabric</code> || Fabric || Beige (#dbd3c8) || {{ButtonLink|link=https://wiki.nefald.fr/|color=fabric}} | ||
|- | |- | ||
| <code>quilt</code> || Quilt || Violet (#8b5cf6) || | | <code>quilt</code> || Quilt || Violet (#8b5cf6) || {{ButtonLink|link=https://wiki.nefald.fr/|color=quilt}} | ||
|- | |- | ||
| <code>neoforge</code> || NeoForge || Orange (#ff6b35) || | | <code>neoforge</code> || NeoForge || Orange (#ff6b35) || {{ButtonLink|link=https://wiki.nefald.fr/|color=neoforge}} | ||
|} | |} | ||
| Ligne 165 : | Ligne 166 : | ||
! Code !! Plateforme !! Couleur !! Exemple | ! Code !! Plateforme !! Couleur !! Exemple | ||
|- | |- | ||
| <code>velocity</code> || Velocity || Bleu (#3fa9f5) || | | <code>velocity</code> || Velocity || Bleu (#3fa9f5) || {{ButtonLink|link=https://wiki.nefald.fr/|color=velocity}} | ||
|- | |- | ||
| <code>waterfall</code> || Waterfall || Bleu (#0088ff) || | | <code>waterfall</code> || Waterfall || Bleu (#0088ff) || {{ButtonLink|link=https://wiki.nefald.fr/|color=waterfall}} | ||
|- | |- | ||
| <code>bungeecord</code> || BungeeCord || Jaune (#ffcc00) || | | <code>bungeecord</code> || BungeeCord || Jaune (#ffcc00) || {{ButtonLink|link=https://wiki.nefald.fr/|color=bungeecord}} | ||
|- | |- | ||
| <code>sponge</code> || Sponge || Jaune (#f7cf0d) || | | <code>sponge</code> || Sponge || Jaune (#f7cf0d) || {{ButtonLink|link=https://wiki.nefald.fr/|color=sponge}} | ||
|} | |} | ||
| Ligne 179 : | Ligne 180 : | ||
! Code !! Plateforme !! Couleur !! Exemple | ! Code !! Plateforme !! Couleur !! Exemple | ||
|- | |- | ||
| <code>ftb</code> / <code>feed-the-beast</code> || Feed The Beast || Violet (#8e44ad) || | | <code>ftb</code> / <code>feed-the-beast</code> || Feed The Beast || Violet (#8e44ad) || {{ButtonLink|link=https://wiki.nefald.fr/|color=ftb}} | ||
|- | |- | ||
| <code>technic</code> || Technic Pack || Rouge (#e74c3c) || | | <code>technic</code> || Technic Pack || Rouge (#e74c3c) || {{ButtonLink|link=https://wiki.nefald.fr/|color=technic}} | ||
|- | |- | ||
| <code>atlauncher</code> || ATLauncher || Bleu (#3498db) || | | <code>atlauncher</code> || ATLauncher || Bleu (#3498db) || {{ButtonLink|link=https://wiki.nefald.fr/|color=atlauncher}} | ||
|} | |} | ||