Template:Qud dialogue: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(changed vertical padding)
(replaced formatting with qud-box css)
Line 1: Line 1:
{{#if: {{{nodetitle|}}} | ==={{{nodetitle}}}===}}
{{#if: {{{nodetitle|}}} | ==={{{nodetitle}}}===}}
{| style="margin:1%; max-width:{{{width|68}}}%; font-family:Source Code Pro, Lucida Console, Consolas; font-size:{{{textsize|medium}}}; color:#b1c9c3; border:4px solid #{{#ifeq:{{{bordercolor|}}}| C |77bfcf|b1c9c3}}"
<div class="qud-box-wrapper {{#ifeq:{{{bordercolor|}}}| Y | white-border}}"><div class="qud-box"><span class="qud-box-header">{{Qud text|&amp;W{{{title|{{PAGENAME}}}}}}}</span><div class="qud-box-content">'''{{#tag:poem|{{Qud text|{{{text|text here}}}}}}}'''</div><span class="qud-box-footer-left">{{#ifeq: {{{bottomtext|}}}| none ||{{{bottomtext|Perfect}}}}}</span></div></div><noinclude>[[Category:Templates]]
| style="padding: 15px 30px;" |'''{{#tag:poem|{{Qud text|{{{text}}}}}}}'''
|}<noinclude>[[Category:Templates]]
{| class="wikitable"
{| class="wikitable"
! width
! title
| specifies width in percentage. default 68%
| specifies the title of the chat box. defaults to pagename in yellow.
|-
|-
! text
! text
Line 13: Line 11:
| the title that [[Template:Qud dialogue:choice|choices]] will jump to.
| the title that [[Template:Qud dialogue:choice|choices]] will jump to.
|-
|-
! textsize
! bottomtext
| size. defaults to medium. takes small/medium/large
| The text that appears on the bottom of the border. defaults to Perfect, but will be gone if set to none instead.
|-
|-
! bordercolor
! bordercolor
| if = C, change the border to cyan. defaults to off white
| if = Y, change the border to off-white. defaults to cyan
|}
|}
==Example==
==Example==
Line 26: Line 24:
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.
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!}}
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!
| title=Elder Irudad}}
</noinclude>
</noinclude>

Revision as of 15:38, 16 July 2019

Qud dialogue

text here

Perfect
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 Perfect, but will be gone if set to none instead.
bordercolor if = Y, change the border to off-white. defaults to cyan

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!

Perfect