Difference between revisions of "Template:VN:Dialogue"
Jump to navigation
Jump to search
(meme test) |
|||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#if: {{NAMESPACE}} | <!-- don't create subobj within namespace --> | | ||
[[Category:Translation]] | |||
|{{#ifexist: File:{{{character}}} | {{#vardefine:portrait| | ||
{{#ifexist:File:{{{character}}}{{#if:{{{variant|}}}|_{{{variant}}}_|}}_expression_{{{face|neutral}}}.png | |||
|{{{character}}}{{#if:{{{variant|}}}|_{{{variant}}}_|}}_expression_{{{face|neutral}}}.png | |||
| | |||
}} | |||
}}{{#subobject:dialogue{{#vardefineecho:dialoguenumber|{{#expr:{{#var:dialoguenumber|-1}}+1}}}} | |||
| Has game context = Dialogue | |||
| Has character = {{{character|}}} | |||
| Is variant = {{{variant|}}} | |||
| Has expression = {{{face|neutral}}} | |||
| Has dialogue = {{{dialogue}}} | |||
| Has portrait = {{#var:portrait}} | |||
|}}}}<!-- end subobject | |||
-->{|class={{#if:{{{frameless|}}}|style="min-width:35em;"|"wikitable"}} style="min-width:35em;" | |||
|<div style="float:left;padding:10px">{{#var:portrait}}</div> | |||
|<b>{{{character}}}</b>: {{#ifeq:{{{face|neutral}}}|neutral||<i>({{{face|neutral}}} face)</i><br/>}}}} | |||
{{{dialogue}}} | {{{dialogue}}} | ||
|} | |} | ||
</includeonly><noinclude> | |||
== 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 == | |||
<pre>{{VN:Dialogue | |||
}}</pre> | |||
=== 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 == | |||
<pre>{{VN:Dialogue | |||
| character = Leib | |||
| dialogue = Yare yare. | |||
}}</pre>{{VN:Dialogue | |||
| character = Leib | |||
| dialogue = Yare yare. | |||
}} | |||
<pre>{{VN:Dialogue | |||
| character = Gouryou | |||
| dialogue = Checkmate. | |||
}}</pre>{{VN:Dialogue | |||
| character = Gouryou | |||
| dialogue = Checkmate. | |||
}} | |||
[[Category:Infobox templates]][[Category:Subobject templates]] | |||
</noinclude> |
Revision as of 20:13, 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. }}
Leib: }}
Yare yare. |
{{VN:Dialogue | character = Gouryou | dialogue = Checkmate. }}
Gouryou: }}
Checkmate. |