Template:Qud dialogue: Difference between revisions

423 bytes removed ,  22:00, 19 July 2019
changed qud dialoge so it depends on qud look instead. shouldnt change usage
(added padding)
(changed qud dialoge so it depends on qud look instead. shouldnt change usage)
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; padding:0em {{{padding|1}}}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]]
{{Qud look|title=&amp;W{{{title|{{BASEPAGENAME}}}}}|text={{{text|text here}}}|bottomtext=none|bordercolor=y|padding=1|lineheight={{{lineheight|1.5}}}}}<noinclude>[[Category:Templates]]
{| class="wikitable"
{| class="wikitable"
! title
! title
Line 13: Line 13:
! bottomtext
! bottomtext
| The text that appears on the bottom of the border. defaults to none, which makes it disappear entirely.
| 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
! lineheight
| takes a float and changes line height to that in em. defaults to 1.5em.
| takes a float and changes line height to that in em. defaults to 1.5em.
|-
! padding
| left padding. defaults to 1em.
|}
|}
==Example==
==Example==


{{Qud dialogue
{{Qud dialogue
| text=Qud is a strange and terrifying mesa to the northeast. Her tainted rivers breed life in &amp;Gall&amp;y its motley forms; her poisoned jungles shelter priceless relics of a forgotten past.
|nodetitle=node title here| text=Qud is a strange and terrifying mesa to the northeast. Her tainted rivers breed life in &amp;Gall&amp;y 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.
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.