Template:Colour: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|<span style="color: {{{1}}};">{{{2}}}</span>|{{{2}}}}}</includeonly><noinclude>
<includeonly>{{#if: {{{1|}}} | <span style="color: {{{1}}};">{{trim | {{{2}}} }}</span> | {{{2}}} }}</includeonly><noinclude>
Usage: {{code|<nowiki>{{color|limegreen|Text goes here.}}</nowiki>}}
Usage: {{code|<nowiki>Blah. {{color|limegreen|Text goes here.}} Blub.</nowiki>}}


Result: {{color|limegreen|Text goes here.}}
Result: Blah. {{color|limegreen|Text goes here.}} Blah.


Usage: {{code|<nowiki>{{color|#00ff00|Text goes here.}}</nowiki>}}
Usage: {{code|<nowiki>Blah. {{color|#00ff00|Text goes here.}} Blah.</nowiki>}}


Result: {{color|#00ff00|Text goes here.}}
Result: Blah. {{color|#00ff00|Text goes here.}} Blah.


Usage: {{code|<nowiki>{{color||Text goes here.}}</nowiki>}}
Usage: {{code|<nowiki>Blah. {{color||Text goes here.}} Blah.</nowiki>}}


Result: {{color||Text goes here.}}
Result: Blah. {{color||Text goes here.}} Blah.
</noinclude>
</noinclude>

Revision as of 08:34, 8 August 2023

Usage: Blah. {{color|limegreen|Text goes here.}} Blub.

Result: Blah. Text goes here. Blah.

Usage: Blah. {{color|#00ff00|Text goes here.}} Blah.

Result: Blah. Text goes here. Blah.

Usage: Blah. {{color||Text goes here.}} Blah.

Result: Blah. Text goes here. Blah.