Difference between revisions of "Template:Choice"

From Twilight Heroes Wiki
Jump to: navigation, search
(New page: <includeonly>{| !align="left" colspan="2" |[[{{{name}}}]] |- |<table cellpadding="3"><td style="background-color: black;">[[image:{{{image}}}]]</td></table> | *'''{{{choice1}}}''': {{{resu...)
 
m (choice5/result5)
 
(10 intermediate revisions by 4 users not shown)
Line 2: Line 2:
 
!align="left" colspan="2" |[[{{{name}}}]]
 
!align="left" colspan="2" |[[{{{name}}}]]
 
|-
 
|-
|<table cellpadding="3"><td style="background-color: black;">[[image:{{{image}}}]]</td></table>
+
|<table cellpadding="3"><td style="background-color: black;">[[image:{{{image}}}|200px|link={{{name}}}]]</td></table>
 
|
 
|
 
*'''{{{choice1}}}''': {{{result1}}}
 
*'''{{{choice1}}}''': {{{result1}}}
 
*'''{{{choice2}}}''': {{{result2}}}
 
*'''{{{choice2}}}''': {{{result2}}}
*'''{{{choice3}}}''': {{{result3}}}
+
{{#if:{{{choice3|}}}|*'''{{{choice3}}}''': {{{result3}}}}}
 +
{{#if:{{{choice4|}}}|*'''{{{choice4}}}''': {{{result4}}}}}
 +
{{#if:{{{choice5|}}}|*'''{{{choice5}}}''': {{{result5}}}}}
 +
{{#if:{{{notes|}}}|<br>'''Notes:''' {{{notes}}}}}
 
|}</includeonly>
 
|}</includeonly>
  
 
<noinclude>
 
<noinclude>
=Template=
+
==Template==
'''<nowiki>{{noncombat</nowiki><br><nowiki>
+
<pre>{{choice
|name=</nowiki><br><nowiki>
+
|name=
|image=</nowiki><br><nowiki>
+
|image=
|choice1=</nowiki><br><nowiki>
+
|choice1=
|result1=</nowiki><br><nowiki>
+
|result1=
|choice2=</nowiki><br><nowiki>
+
|choice2=
|result2=</nowiki><br><nowiki>
+
|result2=
|choice3=</nowiki><br><nowiki>
+
|choice3=
|result3=}}</nowiki>
+
|result3=
=Usage=
+
|choice4=
 +
|result4=
 +
|choice5=
 +
|result5=
 +
|notes=}}</pre>
 +
 
 +
==Usage==
 
'''Adding...'''
 
'''Adding...'''
  
<nowiki>
+
<pre>
{{noncombat</nowiki><br><nowiki>
+
{{choice
|name=Crime Never Sleeps ... or Does It?</nowiki><br><nowiki>
+
|name=Crime Never Sleeps ... or Does It?
|image=noimage.gif</nowiki><br><nowiki>
+
|image=Crime-never-sleeps.jpg
|choice1=Spend some time picking up litter</nowiki><br><nowiki>
+
|choice1=Spend some time picking up litter
|result1=+12 chips</nowiki><br><nowiki>
+
|result1=+12 chips
|choice2=Catch up with a friend</nowiki><br><nowiki>
+
|choice2=Catch up with a friend
|result2=+5 exp</nowiki><br><nowiki>
+
|result2=+5 exp
|choice3=Just keep walking</nowiki><br><nowiki>
+
|choice3=Just keep walking
|result3=permanently gain 1 HP</nowiki><br><nowiki>
+
|result3=permanently gain 1 HP
|exp=0}}</nowiki>
+
|choice4=Add another choice option
 +
|result4=Because something requires it}}</pre>
  
 
'''Results in...'''
 
'''Results in...'''
Line 39: Line 49:
 
!align="left" colspan="2" |[[Crime Never Sleeps ... or Does It?]]
 
!align="left" colspan="2" |[[Crime Never Sleeps ... or Does It?]]
 
|-
 
|-
|||<table cellpadding="3"><td style="background-color: black;">[[image:noimage.gif]]</td></table>
+
|||<table cellpadding="3"><td style="background-color: black;">[[image:Crime-never-sleeps.jpg|200px|link=Crime Never Sleeps ... or Does It?]]</td></table>
 
|
 
|
 
*'''Spend some time picking up litter''': +12 chips
 
*'''Spend some time picking up litter''': +12 chips
 
*'''Catch up with a friend''': +5 exp
 
*'''Catch up with a friend''': +5 exp
 
*'''Just keep walking''': permanently gain 1 HP
 
*'''Just keep walking''': permanently gain 1 HP
 +
*'''Add another choice option''': because something requires it
 
|}
 
|}
  
 
[[Category:Standardization Templates|{{PAGENAME}}]] </noinclude>
 
[[Category:Standardization Templates|{{PAGENAME}}]] </noinclude>

Latest revision as of 22:59, 15 February 2018


Template

{{choice
|name=
|image=
|choice1=
|result1=
|choice2=
|result2=
|choice3=
|result3=
|choice4=
|result4=
|choice5=
|result5=
|notes=}}

Usage

Adding...

{{choice
|name=Crime Never Sleeps ... or Does It?
|image=Crime-never-sleeps.jpg
|choice1=Spend some time picking up litter
|result1=+12 chips
|choice2=Catch up with a friend
|result2=+5 exp
|choice3=Just keep walking
|result3=permanently gain 1 HP
|choice4=Add another choice option
|result4=Because something requires it}}

Results in...

Crime Never Sleeps ... or Does It?
Crime-never-sleeps.jpg
  • Spend some time picking up litter: +12 chips
  • Catch up with a friend: +5 exp
  • Just keep walking: permanently gain 1 HP
  • Add another choice option: because something requires it