Template:MomoTalk: Difference between revisions

new parameter "group" to control which group of options it is to prepare for js
m (use loop to go through options instead of hard-coding)
(new parameter "group" to control which group of options it is to prepare for js)
Line 8:
--><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 class="momotalk-reply-container"><div class="momotalk-reply-header">Reply</div><hr><!--
-->{{#loop:option_i | 1 | 4 | {{#if:{{{ option{{#var:index}}_{{#var:option_i}} | }}} | <div {{#if:{{{ group{{#var:index}}|}}}|id="momotalk-sensei-option-{{{ group{{#var:index}} | }}}-{{#var:option_i}}"}} class="momotalk-reply-option">{{{ option{{#var:index}}_{{#var:option_i}} }}}</div> | }} }}<!--
--></div></td></tr>
|relationship=<tr><td></td><td><div class="momotalk-relationship-story-container"><div class="momotalk-relationship-story-header">Relationship Event</div><hr><div class="momotalk-relationship-story-option">To {{{ name{{#var:index}} }}}'s Relationship Story</div></div></td></tr>
Line 54:
|option9_2=Trust me! I can explain everything.
|option9_3=Uohhhhhhhhh. Shiroko is the best! And so are you, Miyako!
|group9=1
 
|10=student-image