Template:Qud text/doc: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(doc update)
mNo edit summary
Line 23: Line 23:
For dialogue from conversations.xml, you can also call <code>tildes are new lines</code> as another argument to automatically replace tildes with another linebreak.
For dialogue from conversations.xml, you can also call <code>tildes are new lines</code> as another argument to automatically replace tildes with another linebreak.
<pre>
<pre>
{{Qud text|&Cultra-light &belectronics| tildes are new lines}}
{{Qud text|Live and eat honey.~
Oh, look. It is a not-bear. Greetings, not-bear.~
Live and drink, little friend.~
I would enjoy some honey.~
*grunting*~
*snuffle*~
*whuffling*~
*heavy sigh*~|tildes are new lines}}
</pre>
</pre>
{{Qud text|&Cultra-light &belectronics| tildes are new lines}}
{{Qud text|Live and eat honey.~
Oh, look. It is a not-bear. Greetings, not-bear.~
Live and drink, little friend.~
I would enjoy some honey.~
*grunting*~
*snuffle*~
*whuffling*~
*heavy sigh*~|tildes are new lines}}


All of these arguments can be used at the same time.
All of these arguments can be used at the same time.

Revision as of 00:51, 13 November 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 amp;), it will automatically try to detect it. To manually decide this, add notxml as an extra argument.

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

Eat the rich!

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

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

ultra-light electronics

For dialogue from conversations.xml, you can also call tildes are new lines as another argument to automatically replace tildes with another linebreak.

{{Qud text|Live and eat honey.~
Oh, look. It is a not-bear. Greetings, not-bear.~
Live and drink, little friend.~
I would enjoy some honey.~
*grunting*~
*snuffle*~
*whuffling*~
*heavy sigh*~|tildes are new lines}}

Live and eat honey. Oh, look. It is a not-bear. Greetings, not-bear.

Live and drink, little friend.

I would enjoy some honey.

  • grunting*
  • snuffle*
  • whuffling*
  • heavy sigh*

All of these arguments can be used at the same time.

Related Templates

[[Color]]