Editing Template:DialogueOption

From Ephinea PSO Wiki
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
</div>
</div>
{{#switch:{{{indent|}}}|5 = :::::|4 = ::::|3 = :::|2 = ::|1 = :|0|#default =}}<div align=center class="psoBackground psoStyle" style="max-width:200px; font-size:15px;">{{{text}}}</div>
{{#switch:{{{indent|}}}|5 = :::::|4 = ::::|3 = :::|2 = ::|1 = :}}<div align=center class="psoBackground psoStyle" style="max-width:200px; font-size:15px;">{{{text}}}</div>
<div style="line-height:50%;"><noinclude></div>
<div style="line-height:50%;"><noinclude></div>


Line 6: Line 6:
Meant for showing the option(s) a player can choose in between dialogue text, can be more than one in case they lead to a similar dialogue branch.
Meant for showing the option(s) a player can choose in between dialogue text, can be more than one in case they lead to a similar dialogue branch.
<br>
<br>
Will automatically close a div tag earlier opened either by itself or <code><nowiki>{{DialogueStart}}</nowiki></code> beforehand and re-open the tag afterward to avoid issues involving the option box as well as later dialogue text.
Will automatically close the div structure beforehand and re-open it afterward to avoid issues involving the option box as well as later dialogue text.


Currently supports up to 5 indents, or <code><nowiki>:</nowiki></code> inserts preceding the option box. Due to the current Dialogue structure, at least one indent is needed if initial dialogue text is used, though it is possible to write <code><nowiki>indent=0</nowiki></code> or simply omit the indent field if an NPC starts with an option prompt without initial dialogue text.
Currently supports up to 5 indents, or <code><nowiki>:</nowiki></code> inserts preceding the option box.
<br>
Due to the current Dialogue structure, at least one indent is preferred in order to line up with initial dialogue text.


==Example==
==Example==
<pre>
<pre>
{{DialogueOption|indent=2|text=Green<br/>Blue<br/>Purple<br/>Red<br/>Yellow}}
{{DialogueOption|indent=2|text=Green<br>Blue<br>Purple<br>Red<br>Yellow}}
</pre>
</pre>
{{DialogueOption|indent=2|text=Green<br/>Blue<br/>Purple<br/>Red<br/>Yellow}}
{{DialogueOption|indent=2|text=Green<br>Blue<br>Purple<br>Red<br>Yellow}}


[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>
Please note that all contributions to Ephinea PSO Wiki are considered to be released under the CC BY-NC-SA 4.0 (see Ephinea PSO Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)