ထလာ်တိတ်အာနကဵုမာတိကာညိ

ထာမ်ပလိက်:color

နူ ဝိက်ရှေန်နရဳ


Changes the color of text. The first parameter is color, the second is text:

  • {{color|purple|I'm purple!}} ⇒
    <span style="background:transparent;Lua error in မဝ်ဂျူ:string at line 1: You probably mean Module:string/templates.." title="transparent">I'm purple!
  • {{color|#888888|And I'm gr(a/e)y!}} ⇒
    <span style="background:transparent;Lua error in မဝ်ဂျူ:string at line 1: You probably mean Module:string/templates.." title="transparent">And I'm gr(a/e)y!

If you omit the first parameter, a red colour that adapts to dark mode is used:

  • {{color||Default red}} ⇒
    <span style="background:transparent;Lua error in မဝ်ဂျူ:string at line 1: You probably mean Module:string/templates.." title="transparent">Default red

Do not use this template in entries, or in templates that will be used in entries unless specifying a colour from the palette (as in the example below). Otherwise the text may be unreadable for users of dark mode.

  • {{color|var(--wikt-palette-purple-9)|this text adapts to dark mode}} ⇒
    <span style="background:transparent;Lua error in မဝ်ဂျူ:string at line 1: You probably mean Module:string/templates.." title="transparent">this text adapts to dark mode