Template:Qud text/doc: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(Added example for notxml)
(add unbolded example)
Line 14: Line 14:
</syntaxhighlight>
</syntaxhighlight>
{{Qud text|&REat &rthe rich!| notxml }}
{{Qud text|&REat &rthe rich!| notxml }}
To prevent automatic bolding of text, add the "unbolded" argument.
<syntaxhighlight lang = "c#">
{{Qud text|&Cultra-light &belectronics| notxml | unbolded }}
</syntaxhighlight>
{{Qud text|&Cultra-light &belectronics| notxml | unbolded }}


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


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

Revision as of 20:49, 23 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!

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

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

ultra-light electronics

Related Templates

[[Color]]