Template:Qud dialogue: Difference between revisions

1,589 bytes added ,  00:01, 12 April 2021
m
no edit summary
(changed default to basepagename)
mNo edit summary
 
(14 intermediate revisions by the same user not shown)
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">'''{{#tag:poem|{{Qud text|{{{text|text here}}}}}}}'''</div><span class="qud-box-footer-left">{{#ifeq: {{{bottomtext|none}}}| none ||{{{bottomtext}}}}}</span></div></div><noinclude>[[Category:Templates]]
{{#invoke: qud look|qudlook||title=[ &amp;W{{{title|{{plain name}} }}} &amp;y]|text={{grammar|text={{#if:{{{1|}}}|{{{1}}}|{{{text|text here}}}}}}}|bottomtext=none|bordercolor=y|padding=1|linebreaks=yes}}<noinclude>[[Category:Qud Templates]]
{| class="wikitable"
{| class="wikitable"
! title
! title
| specifies the title of the chat box. defaults to basepagename in yellow.
| specifies the title of the chat box. defaults to pagename in yellow.
|-
|-
! text
! text
Line 14: Line 14:
| 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
! unnamed argument
| if = C, change the border to cyan. defaults to off-white
| returns just the text dialogue with everything set to its default.
|}
|}
==Example==
==Example==
<syntaxhighlight lang="xml">
{{Qud dialogue
|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.


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}}
</syntaxhighlight>
{{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.
Line 26: Line 34:
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}}
| title=Elder Irudad}}
<syntaxhighlight lang="xml">
{{Qud dialogue
|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.
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!}}
</syntaxhighlight>
{{Qud dialogue
|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.
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!}}
</noinclude>
</noinclude>