Anonyme

« Modèle:SiteColor » : différence entre les versions

De Inkipédia
994 octets enlevés ,  5 septembre 2023
making into module invocation (stand back, I'm trying science)
(Page créée avec « <includeonly>{{#switch: "{{{1|}}}" |"Normale" = 0, 153, 255 <!-- #0099FF --> |"NIWA" = 255, 128, 0 <!-- #FF8000 --> |"Splatoon" = 170, 220, 0 <!-- #... »)
 
FRInki>Slate
(making into module invocation (stand back, I'm trying science))
Ligne 1 : Ligne 1 :
<includeonly>{{#switch: "{{{1|}}}"
<includeonly>{{#invoke:SiteColor|main}}</includeonly><noinclude>
|"Normale"    = 0, 153, 255    <!-- #0099FF -->
Template invocation of [[Module:SiteColor]].
|"NIWA"      = 255, 128, 0    <!-- #FF8000 -->
|"Splatoon"  = 170, 220, 0    <!-- #AADC00 -->
|"Splatoon 2" = 240, 60, 120    <!-- #F03C78 -->
|#default    = 192, 192, 192  <!-- #C0C0C0 -->
}}</includeonly><noinclude>__NOTOC__
Couleurs utilisées sur le site d'Inkipédia (et d'Inkipedia).


=== Paramètres ===
{{:Module:SiteColor/doc}}
{|
|- style="vertical-align: top;"
|<code>theme</code>||Unnamed.
|L'ID de la couleur utilisée doit être :
*{{Ink|custom|16|rgb({{SiteColor|Normale}})}} Normale
*{{Ink|custom|16|rgb({{SiteColor|Splatoon}})}} Splatoon
*{{Ink|custom|16|rgb({{SiteColor|Splatoon 2}})}} Splatoon 2
*{{Ink|custom|16|rgb({{SiteColor}})}} ''N'importe quelle autre valeur''
|}
 
=== Exemple ===
==== À marquer ====
<nowiki><span style="color: rgb({{SiteColor|Splatoon 2}});">Texte normal</span></nowiki>
 
Pour utiliser dans des templates avec une autre valeur :  
<nowiki>style=" background:rgb({{#if:{{{color|}}}|{{{color}}}|{{SiteColor|Normale}}}}); "</nowiki>
 
==== Rendu ====
<span style="color: rgb({{SiteColor|Splatoon 2}});">Texte normal</span>
</noinclude>
</noinclude>
Utilisateur anonyme