Template:Qud dialogue:choice row: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(Created page with "<includeonly>| style="padding: 10px 10px; text-align:left; background: #103837;" |{{Qud text|&W{{{number}}}&y) {{#if: {{{acceptquest|}}}{{{quest|}}}{{{end|}}}|{{{text|...")
 
mNo edit summary
 
(30 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>| style="padding: 10px 10px; text-align:left; background: #103837;" |{{Qud text|&amp;W{{{number}}}&amp;y) {{#if: {{{acceptquest|}}}{{{quest|}}}{{{end|}}}|{{{text|{{{tonode}}}}}}|[[{{FULLPAGENAME}}#{{{tonode}}}|{{{text|{{{tonode}}}}}}]]}}}}
<includeonly>| style="padding: 10px 10px; text-align:left; background: #103837;font-size:medium;" |{{Qud text|&amp;W{{#vardefineecho:num|{{#expr:{{#var:num}}+1}} }}&amp;Y)|unbolded }} {{#switch: {{{tonode|end}}}| end={{{text|}}}| End={{{text|}}}| EndFight={{{text|}}}|endfight={{{text|}}}|[[{{FULLPAGENAME}}#{{{tonode}}}|{{{text|{{{tonode}}}}}}]]}}
| style="padding: 10px; width:30%;"|{{#if: {{{comment|}}}{{{acceptquest|}}}{{{quest|}}}{{{step|}}}{{{end|}}} |{{{comment|}}}}}{{#if: {{{acceptquest|}}}|{{Color | W |[Accept Quest:[[{{{acceptquest}}}]]]}}}}{{#if: {{{quest|}}}|{{Color | K |[{{#ifeq: step | reward |Receive Quest Rewards: [[{{{quest}}}#Rewards]]|Complete Quest Step: [[{{{quest}}}{{#if: {{{step|}}}|\#{{{step}}}{{!}}{{{step}}}}}]]}}]}}}}{{#if: {{{end|}}}|{{Color | K |[End]}}}}
| style="padding: 10px; width:35%;background: #103837;border-left:4px solid #155352;font-size:medium;"|{{{comment|}}} {{#if: {{{step|}}}|{{#switch: {{{step}}} | accept={{Color | W |[Accept Quest:[[{{{quest}}}]]]}}| reward={{Color | K |[Receive Quest Rewards: [[{{{quest}}}#Rewards]]]}}|{{Color | K |[Complete Quest Step: [[{{{quest}}}&#35;{{{step|}}}{{!}}{{{step}}}]]]}} }} }} {{#if: {{{step2|}}}|{{#switch: {{{step2}}} | accept={{Color | W |[Accept Quest:[[{{{quest2}}}]]]}}| reward={{Color | K |[Receive Quest Rewards: [[{{{quest2}}}#Rewards]]]}}|{{Color | K |[Complete Quest Step: [[{{{quest2}}}&#35;{{{step2|}}}{{!}}{{{step2}}}]]]}} }} }} {{#switch: {{{tonode|end}}} | endfight={{Color | R |[Fight]}} | EndFight={{Color | R |[Fight]}} | end = {{Color | K |[End]}} | End = {{Color | K |[End]}} }}
</includeonly><noinclude>[[Category:Templates]]for use in [[Template:Qud dialogue:choice]] only.  
</includeonly><noinclude>[[Category:Qud Templates]]for use in [[Template:Qud dialogue:choice]] only.  
{| class="wikitable"
{| class="wikitable"
! number
| choice number
|-
! tonode
! tonode
| the next node this points to. case sensitive
| the next node this points to. case sensitive. if tonode = end or endfight, changes the link what it should be
|-
|-
! text
! text
Line 15: Line 12:
| any additional notes.
| any additional notes.
|-
|-
! end
! quest
| set something to this if the choice ends the dialogue.
| takes title of quest.
|-
|-
! acceptquest
! step
| adds [accept quest] to the comments. takes title of quest
| takes the quest step id associated with it. if step = reward, links to the rewards section of the page and changes [Complete Quest Step] to [Recieve Quest Rewards]. if step = accept, just links to the main quest page and changes the message to [Accept Quest]
|-
|-
! quest
! quest2
| same thing. takes title of quest.
| for a second quest argument
|-
|-
! step
! step2
| takes the quest step id associated with it. if step = reward, links to the rewards section of the page and changes [Complete Quest Step] to [Recieve Quest Rewards].
|
|}
|}
==Blank Template==
<pre>
{{qud dialogue|nodetitle=
|text=}}
{{qud dialogue:choice|
{{qud dialogue:choice row
| tonode=
| text=}}
{{!}}-
{{qud dialogue:choice row
| tonode=
| text=}}}}
</pre>
==Example==
<pre>
{{Qud dialogue:choice|
{{Qud dialogue:choice row|
tonode=end|text=yadayadaydadayda blah blah blah blah blah|comment=any comment here! |quest=quest 1|step=accept|quest2=quest 2|step2 = step 2}}
{{!}}-
{{Qud dialogue:choice row|tonode=endfight|text = Text here!|comment = Another comment! Your mother smelled of elderberries.|}}}}
</pre>


==Test==
{{Qud dialogue:choice|
{|class="wikitable" style="text-align: center; margin:.5%; width:69%; font-family:Lucida Console, Consolas; border-width:1px; border-color:#b1c9c3;"
{{Qud dialogue:choice row|tonode= FFFFF |text=yadayadaydadayda blah blah blah blah blah|comment=any comment here! |quest=quest 1|step=accept|quest2=quest 2|step2 = step 2}}
{{Qud dialogue:choice row|number=1|tonode=A|text=yadayadaydadayda blah blah blah blah blah|comment=any comment here!}}
{{!}}-  
|-
{{Qud dialogue:choice row|tonode=endfight|text = Text here!|comment = Another comment! Your mother smelled of elderberries.|}}}}
{{Qud dialogue:choice row|number=2|tonode=B|quest=What's Eating the Watervine?|step=Retrieve a girshling corpse}}
|}

Latest revision as of 23:30, 26 June 2020

for use in Template:Qud dialogue:choice only.

tonode the next node this points to. case sensitive. if tonode = end or endfight, changes the link what it should be
text the text that is actually shown. defaults to tonode if not specified.
comment any additional notes.
quest takes title of quest.
step takes the quest step id associated with it. if step = reward, links to the rewards section of the page and changes [Complete Quest Step] to [Recieve Quest Rewards]. if step = accept, just links to the main quest page and changes the message to [Accept Quest]
quest2 for a second quest argument
step2

Blank Template

{{qud dialogue|nodetitle=
|text=}}
{{qud dialogue:choice|
{{qud dialogue:choice row
| tonode=
| text=}}
{{!}}-
{{qud dialogue:choice row
| tonode=
| text=}}}}

Example

{{Qud dialogue:choice|
{{Qud dialogue:choice row|
tonode=end|text=yadayadaydadayda blah blah blah blah blah|comment=any comment here! |quest=quest 1|step=accept|quest2=quest 2|step2 = step 2}}
{{!}}- 
{{Qud dialogue:choice row|tonode=endfight|text = Text here!|comment = Another comment! Your mother smelled of elderberries.|}}}}
1) yadayadaydadayda blah blah blah blah blah any comment here! [Accept Quest:quest 1] [Complete Quest Step: step 2]
2) Text here! Another comment! Your mother smelled of elderberries. [Fight]