Difference between revisions of "Template:VN:Dialogue"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#vardefine:portrait| | ||
{{#ifexist:File:{{{character}}}_{{#if:{{{variant|}}}|_{{{variant}}}_|}}expression_{{{face|neutral}}}.png | {{#ifexist:File:{{{character}}}_{{#if:{{{variant|}}}|_{{{variant}}}_|}}expression_{{{face|neutral}}}.png | ||
| File:{{{character}}}{{#if:{{{variant|}}}|_{{{variant}}}_|}}_expression_{{{face|neutral}}}.png | | File:{{{character}}}{{#if:{{{variant|}}}|_{{{variant}}}_|}}_expression_{{{face|neutral}}}.png | ||
| | | | ||
}} | }} | ||
}}{{#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: {{NAMESPACE}} | <!-- don't create subobj within namespace --> | | }}{{#if: {{NAMESPACE}} | <!-- don't create subobj within namespace --> | | ||
[[Category:Translation]]{{#subobject:dialogue{{#vardefineecho:dialoguenumber|{{#expr:{{#var:dialoguenumber|-1}}+1}}}} | [[Category:Translation]]{{#subobject:dialogue{{#vardefineecho:dialoguenumber|{{#expr:{{#var:dialoguenumber|-1}}+1}}}} | ||
Line 23: | Line 15: | ||
| Has dialogue = {{{dialogue}}} | | Has dialogue = {{{dialogue}}} | ||
| Has portrait = {{#var:portrait}} | | Has portrait = {{#var:portrait}} | ||
|}}}}<!-- end subobject | |}} | ||
}}<!-- end subobject | |||
-->{| 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}}}} | ||
Line 58: | Line 51: | ||
| character = Gouryou | | character = Gouryou | ||
| dialogue = Checkmate. | | dialogue = Checkmate. | ||
}} | |||
{{VN:Dialogue | |||
|character=Bathym | |||
|face=neutral | |||
|dialogue=Yaaaahooo!!! | |||
}} | |||
To all the fans of the underground fighting arena,<br/> | |||
a single demon lets out a high-pitched roar. | |||
{{VN:Dialogue | |||
|character=Bathym | |||
|face=neutral | |||
|dialogue=Bathym-chan is a fever on stage!<br/> | |||
Today is another day I’ll be charming everyone. | |||
}} | }} | ||
[[Category:Infobox templates]][[Category:Subobject templates]] | [[Category:Infobox templates]][[Category:Subobject templates]] | ||
</noinclude> | </noinclude> |
Revision as of 20:47, 3 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 = Gouryou | dialogue = Checkmate. }}
Checkmate. |
Yaaaahooo!!! |
To all the fans of the underground fighting arena,
a single demon lets out a high-pitched roar.
Bathym-chan is a fever on stage! |