Template:Color

From Elwiki
Revision as of 16:15, 6 March 2022 by Ritsu (talk | contribs)

Usage

{{color|textcolor|bgcolor|text|link=yes/link|size=number}}

Parameters

(colors accept any CSS3 colors)

  • {{color|textcolor|bgcolor|text}} - color of the text (first parameter)
  • {{color|textcolor|bgcolor|text}} - color of the background (second parameter)
  • {{color|textcolor|bgcolor|text}} - content (second or third parameter, depending on whether bgcolor was provided)
  • size - size of the font in pixels
  • link - if yes provided, creates a local link from the content provided. Any other parameter creates a local link from the link parameter itself.

Examples

{{color|teal|Lorem ipsum}}

result: Lorem ipsum

{{color|white|teal|Lorem ipsum}}

result: Lorem ipsum

{{color|teal|Lorem ipsum|size=25}}

result: Lorem ipsum

{{color|purple|Aisha|link=yes}}

result: Aisha

{{color|purple|Genius Magician|link=Aisha}}

result: Genius Magician