Template:Qud dialogue:choice: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(replaced font with source code pro)
(remove obsolete number arg)
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{|class="wikitable" style="text-align: center; margin:.5%; width:69%; font-family:Source Code Pro, Lucida Console, Consolas; border-width:1px; border-color:#b1c9c3;"
<includeonly><div style="overflow:hidden;">
{{#vardefine:num|0}}{| style="text-align: center; font-family:Source Code Pro, Lucida Console, Consolas; width:100%;border-spacing:0px 0.3em;border-collapse: separate;"
{{{1}}}
{{{1}}}
|}</includeonly>
|}</div></includeonly><noinclude>[[Category:Qud Templates]]A list of choices in conjunction with [[Template:Qud dialogue]]. There is only one argument, the usage is as follows:
<noinclude>[[Category:Templates]]A list of choices in conjunction with [[Template:Qud dialogue]]. There is only one argument, the usage is as follows:


use [[Template:Qud dialogue:choice row]] (check that page for what arguments to pass) for each choice you want to create, and separate each choice with <code><nowiki>{{!}}-</nowiki></code>.
use [[Template:Qud dialogue:choice row]] (check that page for what arguments to pass) for each choice you want to create, and separate each choice with <code><nowiki>{{!}}-</nowiki></code>.
Line 10: Line 10:
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
{{Qud dialogue:choice|
{{Qud dialogue:choice|
{{Qud dialogue:choice row|number=1|tonode=f|text=testing, testing!|end= true}}
{{Qud dialogue:choice row|tonode=end|text=testing, testing!|end= true}}
{{!}}-
{{!}}-
{{Qud dialogue:choice row|number=2|tonode=asjklfa|text=this is choice 2!}}
{{Qud dialogue:choice row|tonode=asjklfa|text=this is choice 2!}}
}}
}}
</syntaxhighlight>
</syntaxhighlight>


{{Qud dialogue:choice|
{{Qud dialogue:choice|
{{Qud dialogue:choice row|number=1|tonode=f|text=testing, testing!|end= true}}
{{Qud dialogue:choice row|tonode=end|text=testing, testing!}}
{{!}}-
{{!}}-
{{Qud dialogue:choice row|number=2|tonode=asjklfa|text=this is choice 2!}}
{{Qud dialogue:choice row|tonode=asjklfa|text=this is choice 2!|comment=this is a comment.}}}}
}}
</noinclude>
</noinclude>

Latest revision as of 17:13, 17 January 2023

A list of choices in conjunction with Template:Qud dialogue. There is only one argument, the usage is as follows:

use Template:Qud dialogue:choice row (check that page for what arguments to pass) for each choice you want to create, and separate each choice with {{!}}-.

Example

{{Qud dialogue:choice|
{{Qud dialogue:choice row|tonode=end|text=testing, testing!|end= true}}
{{!}}-
{{Qud dialogue:choice row|tonode=asjklfa|text=this is choice 2!}}
}}
1) testing, testing! [End]
2) this is choice 2! this is a comment.