Template:Qud text/doc: Difference between revisions
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>&</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|[[Color]]]] | [[Template:Color|[[Color]]]] |
Revision as of 12:56, 2 July 2019
Usage
{{Qud text|&olalalalala&OlALALALA&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!