Template:Qud dialogue:choice row: Difference between revisions

Added second quest argument
mNo edit summary
(Added second quest argument)
Line 1: Line 1:
<includeonly>| style="padding: 10px 10px; text-align:left; background: #103837;" |{{Qud text|&amp;W{{{number}}}&amp;y) {{#if: {{{quest|}}}{{{end|}}}|{{{text|{{{tonode}}}}}}{{{step|}}} |[[{{FULLPAGENAME}}#{{{tonode}}}|{{{text|{{{tonode}}}}}}]]}}}}
<includeonly>| style="padding: 10px 10px; text-align:left; background: #103837;" |{{Qud text|&amp;W{{{number}}}&amp;y) {{#if: {{{quest|}}}{{{end|}}}|{{{text|{{{tonode}}}}}}{{{step|}}} |[[{{FULLPAGENAME}}#{{{tonode}}}|{{{text|{{{tonode}}}}}}]]}}}}
| style="padding: 10px; width:30%;"|{{#if: {{{comment|}}}{{{quest|}}}{{{step|}}}{{{end|}}}|{{{comment|}}}{{#ifeq: {{{step|0}}} | accept |{{Color | W |[Accept Quest:[[{{{quest}}}]]]}}|
| style="padding: 10px; width:30%;"|{{#if: {{{comment|}}}{{{quest|}}}{{{step|}}}{{{end|}}}|{{{comment|}}}{{#ifeq: {{{step|0}}} | accept |{{Color | W |[Accept Quest:[[{{{quest}}}]]]}}|
{{#if: {{{quest|}}} |{{Color | K |[{{#ifeq: step | reward |Receive Quest Rewards: [[{{{quest}}}#Rewards]]|Complete Quest Step: [[{{{quest}}}{{#if: {{{step|}}}|\#{{{step}}}{{!}}{{{step}}}}}]]}}]}}}}}}{{#if: {{{end|}}}|{{#ifeq: {{{end|}}} | fight |{{Color | R |[Fight]}}|{{Color | K |[End]}}}}}}}}
{{#if: {{{quest|}}} |{{Color | K |[{{#ifeq: step | reward |Receive Quest Rewards: [[{{{quest}}}#Rewards]]|Complete Quest Step: [[{{{quest}}}{{#if: {{{step|}}}|\#{{{step}}}{{!}}{{{step}}}}}]]}}]}}}}}}{{#if: {{{end|}}}|{{#ifeq: {{{end|}}} | fight |{{Color | R |[Fight]}}|{{Color | K |[End]}}}}}}
{{#ifeq: {{{step2|0}}} | accept |{{Color | W |[Accept Quest:[[{{{quest2}}}]]]}}|
{{#if: {{{quest2|}}} |{{Color | K |[{{#ifeq: step2 | reward |Receive Quest Rewards: [[{{{quest2}}}#Rewards]]|Complete Quest Step: [[{{{quest2}}}{{#if: {{{step2|}}}|\#{{{step2}}}{{!}}{{{step2}}}}}]]}}]}}}}}}{{#if: {{{end2|}}}|{{#ifeq: {{{end2|}}} | fight |{{Color | R |[Fight]}}|{{Color | K |[End2]}}}}
}}}}
</includeonly><noinclude>[[Category:Templates]]for use in [[Template:Qud dialogue:choice]] only.  
</includeonly><noinclude>[[Category:Templates]]for use in [[Template:Qud dialogue:choice]] only.  
{| class="wikitable"
{| class="wikitable"
Line 24: Line 27:
! step
! 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]
| 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
|-
! end2
|
|-
! step2
|
|}
|}


Line 29: Line 41:
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
{{Qud dialogue:choice|
{{Qud dialogue:choice|
{{Qud dialogue:choice row|number=1|tonode=A|text=yadayadaydadayda blah blah blah blah blah|comment=any comment here!}}
{{Qud dialogue:choice row|number=1|tonode=A|text=yadayadaydadayda blah blah blah blah blah|comment=any comment here! |quest=quest 1|step=accept|quest2=quest 2|step2 = step 2|end2=fight}}
{{!}}-
{{!}}-  
{{Qud dialogue:choice row|number=2|tonode=B|quest=What's Eating the Watervine?|step=Retrieve a girshling corpse}}}}
{{Qud dialogue:choice row|number=2|tonode=B|comment = Another comment! |quest=What's Eating the Watervine?|step=Retrieve a girshling corpse}}}}
</syntaxhighlight>
</syntaxhighlight>


{{Qud dialogue:choice|
{{Qud dialogue:choice|
{{Qud dialogue:choice row|number=1|tonode=A|text=yadayadaydadayda blah blah blah blah blah|comment=any comment here!}}
{{Qud dialogue:choice row|number=1|tonode=A|text=yadayadaydadayda blah blah blah blah blah|comment=any comment here! |quest=quest 1|step=accept|quest2=quest 2|step2 = step 2|end2=fight}}
{{!}}-  
{{!}}-  
{{Qud dialogue:choice row|number=2|tonode=B|quest=What's Eating the Watervine?|step=Retrieve a girshling corpse}}}}
{{Qud dialogue:choice row|number=2|tonode=B|comment = Another comment! |quest=What's Eating the Watervine?|step=Retrieve a girshling corpse}}}}