Difference between revisions of "Template:VN:Dialogue"

From Tokyo Afterschool Summoners
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly>{{#vardefine:portrait|
<includeonly>{{#ifexist:File:{{{character}}}_{{#if:{{{variant|}}}|_{{{variant}}}_|}}expression_{{{face|neutral}}}.png
  {{#ifexist:File:{{{character}}}_{{#if:{{{variant|}}}|_{{{variant}}}_|}}expression_{{{face|neutral}}}.png
   | {{#vardefine:portait|File:{{{character}}}{{#if:{{{variant|}}}|_{{{variant}}}_|}}_expression_{{{face|neutral}}}.png}}
   | File:{{{character}}}{{#if:{{{variant|}}}|_{{{variant}}}_|}}_expression_{{{face|neutral}}}.png
   | {{#vardefine:portrait|{{#show:{{#ask:[[Has game context::Transient]]
   | {{#show:{{#ask:[[Has game context::Transient]]
[[Has lowercase English name::{{lc:{{{character|}}}}}]]
[[Has lowercase English name::{{lc:{{{character|}}}}}]]
{{#if:{{{rarity|}}}|[[Has rarity::{{{rarity}}}]]}}
{{#if:{{{rarity|}}}|[[Has rarity::{{{rarity}}}]]}}
{{#if:{{{variant|}}}|[[Has variant::{{{variant}}}]]}}
{{#if:{{{variant|}}}|[[Has variant::{{{variant}}}]]}}
}}|?Has icon#}}
}}|?Has icon#}}
  |}}
}}{{#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/>}}

Revision as of 20:34, 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.
}}

{{#ifexist:File:Leib_expression_neutral.png

 | 
 | {| class="wikitable" style="min-width:35em;"

|

[[<ul><li>The symbol "[[" was used in a place where it is not useful.</li> <!--br--><li>The part ", " of the query was not understood.Results might not be as expected.</li> <!--br--><li>The part "|Leib#transient1" of the query was not understood.Results might not be as expected.</li> <!--br--><li>The part "|Leib#transient2" of the query was not understood.Results might not be as expected.</li> <!--br--><li>The part "" of the query was not understood.Results might not be as expected.</li> <!--br--><li>The part "]]" of the query was not understood.Results might not be as expected.</li></ul>|70px]]

Yare yare. |}

{{VN:Dialogue
| character = Gouryou
| dialogue = Checkmate.
}}

{{#ifexist:File:Gouryou_expression_neutral.png

 | 
 | {| class="wikitable" style="min-width:35em;"

| Gouryou: Checkmate. |}