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

De Pikmin FR
fr>Fxfxfx0
Aucun résumé des modifications
m Text replacement - "ColorScheme" to "Color scheme"
Ligne 26 : Ligne 26 :
== Example ==
== Example ==
<pre><nowiki>
<pre><nowiki>
<span style="background-color: {{ColorScheme|Splatoon 2}}; color: {{ColorScheme|Splatoon 2|textColor}}; border-radius: 5px; display: inline-block; padding: 0px 5px 0px 5px;">It works!</span>
<span style="background-color: {{Color scheme|Splatoon 2}}; color: {{Color scheme|Splatoon 2|textColor}}; border-radius: 5px; display: inline-block; padding: 0px 5px 0px 5px;">It works!</span>
</nowiki></pre>
</nowiki></pre>


<span style="background-color:{{ColorScheme|Splatoon 2}}; color:{{ColorScheme|Splatoon 2|textColor}}; border-radius:5px; display:inline-block; padding: 0px 5px 0px 5px;">It works!</span>
<span style="background-color:{{Color scheme|Splatoon 2}}; color:{{Color scheme|Splatoon 2|textColor}}; border-radius:5px; display:inline-block; padding: 0px 5px 0px 5px;">It works!</span>
 
[[Category:Templates]]
</noinclude>
</noinclude>

Version du 17 septembre 2024 à 05:14

Arguments

This template takes 2 arguments:

  • scheme: The color scheme to pick a color from.
  • color: The color to apply. Optional; when specified, this should be one of the following:
    • themeColor: The main color of the color scheme.
    • textColor: The color to use for text set against a background of the main color.
    • contentBackground: The background color for the content of a navbox, etc.

When color is blank or is otherwise none of the values specified, the main color of the scheme given is returned.

Example

<span style="background-color: {{Color scheme|Splatoon 2}}; color: {{Color scheme|Splatoon 2|textColor}}; border-radius: 5px; display: inline-block; padding: 0px 5px 0px 5px;">It works!</span>

It works!