2,158
edits
m (related template link) |
(Category:Template documentation) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
== Usage == | == Usage == | ||
<pre> | |||
< | |||
{{Qud text|&olalalalala&OlALALALA&YLALA!}} | {{Qud text|&olalalalala&OlALALALA&YLALA!}} | ||
</ | </pre> | ||
{{Qud text|&olalalalala&OlALALALA&YLALA!}} | {{Qud text|&olalalalala&OlALALALA&YLALA!}} | ||
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>), it will automatically try to detect it. To manually decide this, add <code>notxml</code> as an extra argument. | |||
<pre> | |||
{{Qud text|&REat &rthe rich!}} | |||
</pre> | |||
{{Qud text|&REat &rthe rich!}} | |||
To prevent automatic bolding of text, add the "unbolded" argument. | |||
<pre> | |||
{{Qud text|&Cultra-light &belectronics| unbolded }} | |||
</pre> | |||
{{Qud text|&Cultra-light &belectronics| unbolded }} | |||
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> | |||
{{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> | |||
{{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. | |||
== Related Templates == | == Related Templates == | ||
[[Template:Color|[[Color]]]] | [[Template:Color|[[Color]]]] | ||
<noinclude>[[Category:Template documentation]]</noinclude> |
edits