Template:MomoTalk: Difference between revisions

1,002 bytes added ,  1 month ago
transfer dark mode fixes by User:JoeXYZ
(need a long sentence for testing)
(transfer dark mode fixes by User:JoeXYZ)
 
(15 intermediate revisions by the same user not shown)
Line 1:
<includeonly><templatestyles src="MomoTalk/style.css" /><div class="momotalk-container">
<div class="momotalk-top mw-no-invert"><span class="momotalk-logo-text">MomoTalk</span><span class="momotalk-close">✕</span></div>
<table class="momotalk-table">
{{#fornumargs: index | value
|{{#switch:{{#var: value}}
|sensei=<tr {{#if:{{{ group{{#var:index}}|}}}|class="momotalk-student-option-{{{ group{{#var:index}} | }}}-{{{ option{{#var:index}} }}}"}}><td></td><td><div class{{=}}"momotalk-sensei-line-container mw-no-invert"><div class{{=}}"momotalk-dialogsensei-textline">{{{ text{{#var:index}} }}}</div></div></td></tr>
|student-text=<tr {{#if:{{{ group{{#var:index}}|}}}|class="momotalk-student-option-{{{ group{{#var:index}} | }}}-{{{ option{{#var:index}} }}}"}}>{{#if: {{{ imageprofile{{#var:index}}| }}} | <td class{{=}}"momotalk-profile-picture">[[File:{{{ imageprofile{{#var:index}}| }}}.png|50px58px]]</td> | <td></td> }}<!--
--><td>{{#if: {{{ name{{#var:index}}| }}} | <div class{{=}}"momotalk-student-name">{{{ name{{#var:index}}| }}}</div> |}} <div class{{=}}"momotalk-student-line-container mw-no-invert"><div class{{=}}"momotalk-student-line momotalk-dialog-text">{{{ 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><!--
-->{{#loop:option_i | 1 | 4 | {{#if:{{{ option{{#var:index}}_{{#var:option_i}} | }}} | <div class="momotalk-reply-option">{{{ option{{#var:index}}_1_{{#var:option_i}} }}}</div> | }} }}<!--
--></div></td></tr>
-->{{#if: {{{ option{{#var:index}}_2| }}} | <div class="momotalk-reply-option">{{{ option{{#var:index}}_2| }}}</div> |}}<!--
|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 mw-no-invert">To {{{ name{{#var:index}} }}}'s Relationship Story</div></div></td></tr>
-->{{#if: {{{ option{{#var:index}}_3| }}} | <div class="momotalk-reply-option">{{{ option{{#var:index}}_3| }}}</div> |}}<!--
- |student-image=<tr>{{#if: {{{ optionprofile{{#var:index}}_4| }}} | <divtd class{{=}}"momotalk-replyprofile-optionpicture">[[File:{{{ optionprofile{{#var:index}}_4| }}}.png|58px]]</divtd> |}} </divtd></td> }}</tr>!--
|relationship=<tr--><td></td><td><div{{#if: {{{ name{{#var:index}}| }}} | class="momotalk-relationship-story-container"><div class{{=}}"momotalk-relationshipstudent-story-headername">Relationship{{{ Eventname{{#var:index}}| }}}</div><hr> |}} <div class{{=}}"momotalk-relationshipstudent-storyline-optioncontainer">To [[File:{{{ namefile{{#var:index}} }}}'s Relationship Story</div>.png|class=momotalk-image]]</div></td></tr>
}}
}}
</table>
</div></includeonly><noinclude>
 
TODO: weird line wrapping, need to fix dialogue width.
 
{{MomoTalk
 
|1=student-text
|name1=Shiroko
|image1profile1=Shiroko
|text1=Sensei
 
|2=student-text
|text2=Can I getgo supplementary lessons into your Schale office today? IThe haveAbydos anForeclosure uncontrollableTaskforce urgeneeds to rob a bank again, so I think I need someyour advice on self-controlsomething. IAyane knowis thatbusy youwith haveselling alwaysscrap cared deeply for memetal, so youshe aresent theme personto I'mtalk seekingto help fromyou.
 
|3=sensei
Line 36 ⟶ 33:
|option4_1=Come to my office at 3pm
|option4_2=Meet me in my office whenever you are ready
|group4=999
 
|5=student-text
|name5=Shiroko
|image5profile5=Shiroko
|text5=See you in Schale
 
Line 47 ⟶ 45:
|7=student-text
|name7=Miyako
|image7profile7=Miyako
|text7=Sensei, I got reports of a female student going into a room with a suspicious adult
 
Line 56 ⟶ 54:
|option9_1=Uhhh... No?
|option9_2=Trust me! I can explain everything.
|option9_3=Uohhhhhhhhh. Shiroko is the best! And so are you, Miyako!
|group9=1
 
|10=student-text
|name10=Miyako
|profile10=Miyako
|group10=1
|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
|file13=Mo_Serika_01
 
|14=student-text
|name14=Serika
|profile14=Serika
|text14=Ooops
}}