Template:Shadow: Difference between revisions

From Songs of Syx Wiki
Jump to navigation Jump to search
(Created page with "<span style="text-shadow:-2px 2px 0px {{{2}}}, 0px 0px 6px #0000;}">{{{1}}}</span><noinclude><br />This template adds a shadow drop effect to text.<br /> The format of this te...")
 
No edit summary
Line 7: Line 7:
However, adding a seventh and eighth number can control opacity, with 00 being lowest and FF being highest.<br />
However, adding a seventh and eighth number can control opacity, with 00 being lowest and FF being highest.<br />


The following example: <code><nowiki>{{shadow|Some more text.|#00000055}}</nowiki></code><br />
The following example: <code><nowiki>{{shadow|Some more text.|#000000</nowiki><span style="color:#f66;">77</span><nowiki>}}</nowiki></code><br />
{{shadow|Some more text.|#00000077}} <-- Notice the shadow is more faded here.<br />
{{shadow|Some more text.|#00000077}} <-- Notice the shadow is more faded here.<br />
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 18:10, 5 June 2021

{{{1}}}
This template adds a shadow drop effect to text.
The format of this templates is as follows: {{shadow|text|shadow color}}.
...Which creates this.

Note that the opacity of the shadow can also be modified.
The first two numbers in a color code, with the next two and last two resemble red, green and blue respectivelty.
However, adding a seventh and eighth number can control opacity, with 00 being lowest and FF being highest.

The following example: {{shadow|Some more text.|#00000077}}
Some more text. <-- Notice the shadow is more faded here.