Difference between revisions of "Template:VN:Dialogue"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
Line 6: Line 6:
}}{{#vardefine:name title
}}{{#vardefine:name title
   |<b>{{{character}}}</b>: {{#ifeq:{{{face|neutral}}}|neutral||<i>({{{face|neutral}}} face)</i><br/>}}
   |<b>{{{character}}}</b>: {{#ifeq:{{{face|neutral}}}|neutral||<i>({{{face|neutral}}} face)</i><br/>}}
}}{{#if:{{#var:transientnumber}}|N|{{#subobject:dialogue{{#vardefineecho:dialoguenumber|{{#expr:{{#var:dialoguenumber|-1}}+1}}}}
}}{{#if:{{#var:transientnumber}}| N |{{#subobject:dialogue{{#vardefineecho:dialoguenumber|{{#expr:{{#var:dialoguenumber|-1}}+1}}}}
| Has game context = Dialogue
| Has game context = Dialogue
| Has character = {{{character|}}}
| Has character = {{{character|}}}
Line 17: Line 17:
| Has portrait = {{#var:portrait}}
| Has portrait = {{#var:portrait}}
}}
}}
}}{| class={{#if:{{{frameless|}}}||"wikitable"}} style="min-width:35em;"
}}
{| class={{#if:{{{frameless|}}}||"wikitable"}} style="min-width:35em;"
| {{#if:{{#var:portrait|}}|<div style="float:left;padding:10px">[[{{#var:portrait}}{{!}}70px]]</div>|{{#var:name title}}}}
| {{#if:{{#var:portrait|}}|<div style="float:left;padding:10px">[[{{#var:portrait}}{{!}}70px]]</div>|{{#var:name title}}}}
{{{dialogue}}}
{{{dialogue}}}
|}[[Category:Translation]]</includeonly><noinclude>
|}
[[Category:Translation]]</includeonly><noinclude>
== Description ==
== Description ==
This templates creates an infobox for VN dialogue, as well as a VN dialogue subobject using the following properties:
This templates creates an infobox for VN dialogue, as well as a VN dialogue subobject using the following properties:

Revision as of 00:11, 7 October 2018

Description

This templates creates an infobox for VN dialogue, as well as a VN dialogue subobject using the following properties:

  • Has character
  • Is variant
  • Has expression
  • Has dialogue
  • Has portrait

Usage

{{VN:Dialogue
}}

Parameters

character
Character speaking.
variant
Variant (if any) of the character speaking.
face
Expression (if any) of the character speaking.
dialogue
What the character is speaking.

Examples

{{VN:Dialogue
| character = Leib
| dialogue = Yare yare.
}}
Leib expression neutral.png

Yare yare.

{{VN:Dialogue
| character = Gabriel
| expression = cheerful
| dialogue = Her words shit the atmosphere in the room like magic. The earlier tension vanishes as if it was never there to begin with.
}}
Gabriel expression neutral.png

Her words shit the atmosphere in the room like magic. The earlier tension vanishes as if it was never there to begin with.