Difference between revisions of "Template:VN:Dialogue"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:portrait| | <includeonly>{{#vardefine:portrait|{{#ifexist:File:{{{character}}}_{{#if:{{{variant|}}}|_{{{variant}}}_|}}expression_{{{face|neutral}}}.png | ||
| File:{{{character}}}{{#if:{{{variant|}}}|_{{{variant}}}_|}}_expression_{{{face|neutral}}}.png|}} | |||
}}{{#vardefine:name title|<b>{{{character}}}</b>: {{#ifeq:{{{face|neutral}}}|neutral||<i>({{{face|neutral}}} face)</i><br/>}} | |||
}}{{#vardefine:name title | |||
}}{{#if:{{#var:transientnumber}}||{{#subobject:dialogue{{#vardefineecho:dialoguenumber|{{#expr:{{#var:dialoguenumber|-1}}+1}}}} | }}{{#if:{{#var:transientnumber}}||{{#subobject:dialogue{{#vardefineecho:dialoguenumber|{{#expr:{{#var:dialoguenumber|-1}}+1}}}} | ||
| Has game context = Dialogue | | Has game context = Dialogue | ||
Line 16: | Line 12: | ||
| Has lowercase dialogue = {{lc:{{{dialogue|}}}}} | | Has lowercase dialogue = {{lc:{{{dialogue|}}}}} | ||
| Has portrait = {{#var:portrait}} | | Has portrait = {{#var:portrait}} | ||
}} | }}{{VN:Dialogue:Table|frameless={{{frameless|}}}|dialogue={{{dialogue|}}} }}[[Category:Translation]]}}</includeonly><noinclude> | ||
{{VN:Dialogue:Table|frameless={{{frameless|}}}|dialogue={{{dialogue|}}} }}[[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:22, 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. }}
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. }}
Her words shit the atmosphere in the room like magic. The earlier tension vanishes as if it was never there to begin with. |