Template:Qud dialogue: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(made all text autobold and added a new value: textsize)
(increased margin. goodbye 69)
Line 1: Line 1:
{{#if: {{{nodetitle|}}} | ==={{{nodetitle}}}===}}
{{#if: {{{nodetitle|}}} | ==={{{nodetitle}}}===}}
{| style="margin:.5%; width:{{{width|69}}}%; font-family:Source Code Pro, Lucida Console, Consolas; font-size:{{{textsize|medium}}}; color:#b1c9c3; border:4px solid #b1c9c3"
{| style="margin:1%; width:{{{width|68}}}%; font-family:Source Code Pro, Lucida Console, Consolas; font-size:{{{textsize|medium}}}; color:#b1c9c3; border:4px solid #b1c9c3"
| style="padding: 20px 40px;" |'''{{#tag:poem|{{Qud text|{{{text}}}}}}}'''
| style="padding: 20px 40px;" |'''{{#tag:poem|{{Qud text|{{{text}}}}}}}'''
|}<noinclude>[[Category:Templates]]
|}<noinclude>[[Category:Templates]]
{| class="wikitable"
{| class="wikitable"
! width
! width
| specifies width in percentage. default 69%
| specifies width in percentage. default 68%
|-
|-
! text
! text

Revision as of 21:59, 15 July 2019

text

width specifies width in percentage. default 68%
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.
textsize size. defaults to medium. takes small/medium/large

Example

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!