Template:Qud dialogue: Difference between revisions
(added grammar parser) |
No edit summary |
||
Line 1: | Line 1: | ||
{{#if: {{{nodetitle|}}} | ==={{{nodetitle}}}===}} | {{#if: {{{nodetitle|}}} | ==={{{nodetitle}}}===}} | ||
{{Qud look|title=[ &W{{{title|{{BASEPAGENAME}}}}} &y]|text={{grammar|text={{{text|text here}}}}}|bottomtext=none|bordercolor=y|padding=1|lineheight={{{lineheight|1.5}}}}}<noinclude>[[Category:Templates]] | {{Qud look|title=[ &W{{{title|{{BASEPAGENAME}}}}} &y]|text={{grammar|text={{#if:{{{1|}}}|{{{1}}}|{{{text|text here}}}}}}}|bottomtext=none|bordercolor=y|padding=1|lineheight={{{lineheight|1.5}}}}}<noinclude>[[Category:Templates]] | ||
{| class="wikitable" | {| class="wikitable" | ||
! title | ! title | ||
Line 16: | Line 16: | ||
! 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. | ||
|- | |||
! unnamed argument | |||
| 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 &Gall&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 | ||
|nodetitle=node title here| text=Qud is a strange and terrifying mesa to the northeast. Her tainted rivers breed life in &Gall&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 &Gall&y its motley forms; her poisoned jungles shelter priceless relics of a forgotten past. | ||
Line 26: | Line 37: | ||
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 &Gall&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 &Gall&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> |
Revision as of 00:30, 2 August 2019
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. |
lineheight | takes a float and changes line height to that in em. defaults to 1.5em. |
unnamed argument | returns just the text dialogue with everything set to its default. |
Example
{{Qud dialogue
|nodetitle=node title here| text=Qud is a strange and terrifying mesa to the northeast. Her tainted rivers breed life in &Gall&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}}
node title here
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!
{{Qud dialogue
|Qud is a strange and terrifying mesa to the northeast. Her tainted rivers breed life in &Gall&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!}}
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!