Template:Qud text/doc: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
m (related template link)
(Added example for notxml)
Line 7: Line 7:


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.
<syntaxhighlight lang = "c#">
{{Qud text|&REat &rthe rich!| notxml }}
</syntaxhighlight>
{{Qud text|&REat &rthe rich!| notxml }}


== Related Templates ==
== Related Templates ==


[[Template:Color|&#91;&#91;Color&#93;&#93;]]
[[Template:Color|&#91;&#91;Color&#93;&#93;]]

Revision as of 12:56, 2 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 &), add "notxml" as a second argument.

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

Eat the rich!

Related Templates

[[Color]]