Template:Colored text/doc: Difference between revisions
From Space Station 14 Wiki
(Created page with "=== Colors === ==== {{Colored text|red|Red}} text using one of the predefined CSS colors: <code>red</code> ==== <syntaxhighlight lang="mediawiki">{{Colored text|red|hello world, I'm red}}</syntaxhighlight> This text {{Colored text|red|hello world, I'm red}} has a custom color. ==== {{Colored text|#ffd700|Gold}} text using hex code for gold: <code>#ffd700</code> ==== <syntaxhighlight lang="mediawiki">{{Colored text|#ffd700|GOLD GOLD GOLD}}</syntaxhighlight> This text {{C...") |
No edit summary |
||
Line 1: | Line 1: | ||
== Colors == | |||
=== {{Colored text|red|Red}} text using one of the predefined CSS colors: <code>red</code> === | |||
<syntaxhighlight lang="mediawiki">{{Colored text|red|hello world, I'm red}}</syntaxhighlight> | <syntaxhighlight lang="mediawiki">{{Colored text|red|hello world, I'm red}}</syntaxhighlight> | ||
This text {{Colored text|red|hello world, I'm red}} has a custom color. | This text {{Colored text|red|hello world, I'm red}} has a custom color. | ||
=== {{Colored text|#ffd700|Gold}} text using hex code for gold: <code>#ffd700</code> === | |||
<syntaxhighlight lang="mediawiki">{{Colored text|#ffd700|GOLD GOLD GOLD}}</syntaxhighlight> | <syntaxhighlight lang="mediawiki">{{Colored text|#ffd700|GOLD GOLD GOLD}}</syntaxhighlight> | ||
This text {{Colored text|#ffd700|GOLD GOLD GOLD}} has a custom color. | This text {{Colored text|#ffd700|GOLD GOLD GOLD}} has a custom color. | ||
=== {{Colored text|hsl(24, 100%, 50%)|Orange}} text using HSL: <code>hsl(24, 100%, 50%)</code> === | |||
<syntaxhighlight lang="mediawiki">{{Colored text|hsl(24, 100%, 50%)|orange energy}}</syntaxhighlight> | <syntaxhighlight lang="mediawiki">{{Colored text|hsl(24, 100%, 50%)|orange energy}}</syntaxhighlight> | ||
This text {{Colored text|hsl(24, 100%, 50%)|orange energy}} has a custom color. | This text {{Colored text|hsl(24, 100%, 50%)|orange energy}} has a custom color. | ||
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> | ||
== See also == | |||
* {{t|Color}} - for quickly selecting in-game and wiki colors. Useful in bundle with this template. |
Latest revision as of 15:52, 9 August 2024
Colors
Red text using one of the predefined CSS colors: red
{{Colored text|red|hello world, I'm red}}
This text hello world, I'm red has a custom color.
Gold text using hex code for gold: #ffd700
{{Colored text|#ffd700|GOLD GOLD GOLD}}
This text GOLD GOLD GOLD has a custom color.
Orange text using HSL: hsl(24, 100%, 50%)
{{Colored text|hsl(24, 100%, 50%)|orange energy}}
This text orange energy has a custom color.
See also
- {{Color}} - for quickly selecting in-game and wiki colors. Useful in bundle with this template.