Template:Qud text/doc: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(add unbolded example)
mNo edit summary
Line 8: Line 8:
The text does not remove trailing whitespace, so remove any extra space there is. Use this instead of calling ColorParse directly.
The text does not remove trailing whitespace, so remove any extra space there is. Use this instead of calling ColorParse directly.


If you're reading color codes not from an xml file (it doesn't have <code>&amp;</code>), add "notxml" as a second argument.
If you're reading color codes not from an xml file (it doesn't have <code>amp;</code>), add "notxml" as a second argument.


<syntaxhighlight lang = "c#">
<syntaxhighlight lang = "c#">

Revision as of 17:26, 28 July 2019

Usage

{{Qud text|&amp;olalalalala&amp;OlALALALA&amp;YLALA!}}

lalalalalalALALALALALA!

The text does not remove trailing whitespace, so remove any extra space there is. Use this instead of calling ColorParse directly.

If you're reading color codes not from an xml file (it doesn't have amp;), add "notxml" as a second argument.

{{Qud text|&REat &rthe rich!| notxml }}

Eat the rich!

To prevent automatic bolding of text, add the "unbolded" argument.

{{Qud text|&Cultra-light &belectronics| notxml | unbolded }}

ultra-light electronics

Related Templates

[[Color]]