Template:MomoTalk: Difference between revisions

add option group, which will help the js script identify which lines to show/hide
m (just add id in container)
(add option group, which will help the js script identify which lines to show/hide)
Line 5:
|{{#switch:{{#var: value}}
|sensei=<tr><td></td><td><div class="momotalk-sensei-line-container"><div class{{=}}"momotalk-sensei-line">{{{ text{{#var:index}} }}}</div></div></td></tr>
|student-text=<tr {{#if:{{{ group{{#var:index}}|}}}|id="momotalk-student-option-{{{ group{{#var:index}} | }}}-{{{ option{{#var:index}} }}}"}}>{{#if: {{{ profile{{#var:index}}| }}} | <td class{{=}}"momotalk-profile-picture">[[File:{{{ profile{{#var:index}}| }}}.png|50px]]</td> | <td></td> }}<!--
--><td>{{#if: {{{ name{{#var:index}}| }}} | <div class{{=}}"momotalk-student-name">{{{ name{{#var:index}}| }}}</div> |}} <div class{{=}}"momotalk-student-line-container"><div class{{=}}"momotalk-student-line">{{{ text{{#var:index}} }}}</div></div></td></tr>
|reply=<tr><td></td><td><div {{#if:{{{ group{{#var:index}}|}}}|id="momotalk-sensei-option-group-{{{ group{{#var:index}} | }}}"}} class="momotalk-reply-container"><div class="momotalk-reply-header">Reply</div><hr><!--
Line 56:
|group9=1
 
|10=student-imagetext
|name10=SerikaMiyako
|profile10=SerikaMiyako
|group10=1
|file10=Mo_Serika_01
|option10=1
|text10=Ok. We will keep investigating.
 
|11=student-text
|name11=Miyako
|profile11=Miyako
|group11=1
|option11=2
|text11=Sensei! What are you doing with your student alone in a room?
 
|12=student-text
|name12=Miyako
|profile12=Miyako
|group12=1
|option12=3
|text12=Sensei! Don't say jokes like that.
 
|13=student-image
|name13=Serika
|profile13=Serika
|file10file13=Mo_Serika_01
 
|14=student-text
|name14=Serika
|profile14=Serika
|text14=Ooops
}}