Template:Opacity: Difference between revisions
Template page
More actions
Created page with "<includeonly>{{{{{|safesubst:}}}#if:{{{1|}}}|<span style="opacity:{{{1}}}|<span style="opacity:0.5}}">{{{2}}}</span></includeonly><noinclude><span style="opacity:0.5">Example Text</span> {{Documentation}} <!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! --> </noinclude>" |
(No difference)
|
Latest revision as of 01:54, 23 February 2025
Example Text
Changes the opacity of some text. Contains an optional parameter to specify opacity between 0 (transparent) and 1 (opaque)
The following is used to create text with 25% opacity:
{{opacity|0.25|Example Text}}
Which produces this: Example Text
You can also leave the first parameter blank to use the default of 50%.
{{opacity||Example Text}}
Which produces this: Example Text
Invalid inputs for opacity will produce text will full opacity.