Template:Rainbow text
Example text
| This template uses Lua: |
| This template uses TemplateStyles |
Makes rainbow colored text.
Usage
{{Rainbow text|Your text here}} will produce the following output: Your text here.
{{Rainbow text|Your text here|mode=background}} will produce the following output: Your text here.
All parameters
1ortext– text which will have the rainbow affect applied.mode– optional, set to "background" to make the background text colored instead, text will by default be white unless you applystyleparameter or apply it to a parent container.class– optional custom class for rainbow container.style– optional inline CSS styling for rainbow container.
Examples
Example 1
The way I see it, if you want the {{rainbow text|rainbow}}, you gotta put up with the rain.
The way I see it, if you want the rainbow, you gotta put up with the rain.
Example 2
We strongly recommend using the text parameter for larger blocks of text.
{{Rainbow text|style=font-size:14pt; font-family:Georgia|text =
<poem>
Karma, karma, karma, karma, karma chameleon
You come and go, you come and go
Loving would be easy if your colours were like my dream
Red, gold and green, red, gold and green.
</poem>
}}
Karma, karma, karma, karma, karma chameleon
You come and go, you come and go
Loving would be easy if your colours were like my dream
Red, gold and green, red, gold and green.
Example 3
Note the use of background-size in the style parameter so that the rainbow background loops back every 200px, instead encompassing the full width of the paragraph. You may also notice that links are styled with a special animation.
{{Rainbow text|style=background-size:200px|text=
Playwright, novelist, musician, poet, philanthropist, historian and [[short story]] writer: these are just some of the professions of individuals that '''Oscar "Fingers O'Flaherty" Wilde''' has corrupted with his rampant sexuality and [[w:François Rabelais|Rabelaisian]] appetites. A man whose wisdom touches on nearly every conceivable topic, often without consent, which in turn has led to several lawsuits, renown'd for his [[Penis|beautiful diction]] and his [[Oral Sex|skilled oratory]], Oscar is without doubt one of the leading literary figures of the last few millennia. He was also possibly a serial pederast, which does put a damper on all the effusive praise and the many thousands of references to him on this very wiki: drats! Wilde was born on 16 October 1854 in [[Dublin]], [[Ireland]] to an Anglo-Irish family. His father [[H.R. Pufnstuf|Sir Jack Wilde]] was an author and a scientist (his most famous contribution to the world was an early form of [[LSD]]), whilst his mother Gaynor made her name as an entertainer of little note.
Playwright, novelist, musician, poet, philanthropist, historian and short story writer: these are just some of the professions of individuals that Oscar "Fingers O'Flaherty" Wilde has corrupted with his rampant sexuality and Rabelaisian appetites. A man whose wisdom touches on nearly every conceivable topic, often without consent, which in turn has led to several lawsuits, renown'd for his beautiful diction and his skilled oratory, Oscar is without doubt one of the leading literary figures of the last few millennia. He was also possibly a serial pederast, which does put a damper on all the effusive praise and the many thousands of references to him on this very wiki: drats! Wilde was born on 16 October 1854 in Dublin, Ireland to an Anglo-Irish family. His father Sir Jack Wilde was an author and a scientist (his most famous contribution to the world was an early form of LSD), whilst his mother Gaynor made her name as an entertainer of little note.