Template:Qud dialogue: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
No edit summary
(fixed corner case of a line starting with a plain *)
Line 1: Line 1:
{{#if: {{{nodetitle|}}} | ==={{{nodetitle}}}===}}
{{#if: {{{nodetitle|}}} | ==={{{nodetitle}}}===}}
<div class="qud-box-wrapper {{#ifeq:{{{bordercolor|}}}| C ||white-border}}"><div class="qud-box"><span class="qud-box-header">{{Qud text|&amp;W{{{title|{{BASEPAGENAME}}}}}}}</span><div class="qud-box-content" style="line-height:{{{lineheight|1.5}}}em;">'''{{#tag:poem|{{Qud text|{{{text|text here}}}}}}}'''</div><span class="qud-box-footer-left">{{#ifeq: {{{bottomtext|none}}}| none ||{{Qud text|&amp;Y{{{bottomtext}}}}}}}</span></div></div><noinclude>[[Category:Templates]]
<div class="qud-box-wrapper {{#ifeq:{{{bordercolor|}}}| C ||white-border}}"><div class="qud-box"><span class="qud-box-header">{{Qud text|&amp;W{{{title|{{BASEPAGENAME}}}}}}}</span><div class="qud-box-content" style="line-height:{{{lineheight|1.5}}}em;">'''{{#tag:poem|{{Qud text|&amp;y{{{text|text here}}}}}}}'''</div><span class="qud-box-footer-left">{{#ifeq: {{{bottomtext|none}}}| none ||{{Qud text|&amp;Y{{{bottomtext}}}}}}}</span></div></div><noinclude>[[Category:Templates]]
{| class="wikitable"
{| class="wikitable"
! title
! title

Revision as of 00:01, 18 July 2019

Qud dialogue

text here

title specifies the title of the chat box. defaults to pagename in yellow.
text the text that is automatically parsed. uses XML parsing but if you want to not, add in {{!}} notxml to your text.
nodetitle the title that choices will jump to.
bottomtext The text that appears on the bottom of the border. defaults to none, which makes it disappear entirely.
bordercolor if = C, change the border to cyan. defaults to off-white
lineheight takes a float and changes line height to that in em. defaults to 1.5em.

Example

Elder Irudad

Qud is a strange and terrifying mesa to the northeast. Her tainted rivers breed life in all its motley forms; her poisoned jungles shelter priceless relics of a forgotten past.

But that is just the half of it, for Qud's most precious treasures -- and her most hideous children -- lie within the innumerable chrome caverns beneath the scarlet loam.

To ply those silver hollows -- a spry adventurer's dream! The years have wizened me beyond such foolish ambitions, but, you! Be not deterred so!