Template:Qud text

From Caves of Qud Wiki
Revision as of 00:13, 13 November 2019 by Teamtoto (talk | contribs) (refactor)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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]]