잔글 (판 1개를 가져왔습니다) |
편집 요약 없음 |
||
1번째 줄: | 1번째 줄: | ||
<span style="color:{{{ | <span style="color:{{#ifeq:{{{3|}}}|ingame|rgb({{TextColor|{{{2}}}}})|{{{2}}}}}">{{{1}}}</span><noinclude> | ||
{{ | |||
<!-- | == Summary == | ||
</noinclude> | Colors text the specified color. | ||
{{t|Color|The Text|The Color|ingame}} | |||
If <code>ingame</code> is present, the named color is passed to [[Template:TextColor]] to show in-game color, instead of using HTML notation | |||
To color links, see {{t|Color-link}} | |||
== Examples == | |||
{| class="wikitable sitecolor-generic" | |||
! Code | |||
! Result | |||
|- | |||
|<code><nowiki>{{color|Named Example|red}}</nowiki></code>||{{color|Named Example|red}} | |||
|- | |||
|<code><nowiki>{{color|In-Game Example|Orange S2|ingame}}</nowiki></code>||{{color|In-Game Example|Orange S2|ingame}} | |||
|- | |||
|<code><nowiki>{{color|Hex Example|#0055FF}}</nowiki></code>||{{color|Hex Example|#0055FF}} | |||
|} | |||
[[Category:Formatting Templates|Color]]</noinclude> |
2021년 2월 21일 (일) 06:05 판
{{{1}}}
Summary
Colors text the specified color.
{{Color|<The Text>|<The Color>|<ingame>}}
If ingame
is present, the named color is passed to Template:TextColor to show in-game color, instead of using HTML notation
To color links, see {{Color-link}}
Examples
Code | Result |
---|---|
{{color|Named Example|red}} |
Named Example |
{{color|In-Game Example|Orange S2|ingame}} |
<span style="color:rgb(Student)">In-Game Example |
{{color|Hex Example|#0055FF}} |
Hex Example |