Template:CutsceneText: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
imported>Blondeshell
(Created page with "{|style="background: #F4F4F4; border: 1px solid #4169E1; width:100%; text-align: left; margin: 0.5em;" |- align=left |style="width: 45px;" valign=top|Image:Balloon.png |{{#if...")
 
m (margin/padding adjust)
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{|style="background: #F4F4F4; border: 1px solid #4169E1; width:100%; text-align: left; margin: 0.5em;"
<div role="figure" {{#if:{{{Char|}}}|aria-labelledby="cutscenetext-{{anchorencode:{{{Char}}}}}"}} style="display: flow-root; position: relative; margin: 0.5em; border: 1px solid #4169E1; padding: 0 1em 0 48px; max-width: 70ch; background: #F4F4F4; text-align: left; {{{style|}}}">
|- align=left
<div style="position: absolute; left: 8px; top: 10px;">[[File:Balloon.png|link=|alt=]]</div>
|style="width: 45px;" valign=top|[[Image:Balloon.png]]
{{#if:{{{Char|}}}|
|{{#if:{{{Char|}}}|'''{{{Char}}}''':<br />|}}{{{Text}}}
<div style="margin: 1em 0;"><span id="cutscenetext-{{anchorencode:{{{Char}}}}}" style="font-weight: bold;">{{{Char}}}</span>:</div>
|}<noinclude>
}}
<blockquote style="margin: 1em 0; border: 0; padding: 0;">
{{{Text}}}
</blockquote>
</div><noinclude>


== Example Usage ==
== Example Usage ==
Line 12: Line 16:
{{CutsceneText|Char=Lin Chiao Ryu|Text=Curses!<br />Foiled again!}}
{{CutsceneText|Char=Lin Chiao Ryu|Text=Curses!<br />Foiled again!}}


'''Note:''' The usage of this template differs from [[:Template:Cutscene]] in that this is for recording text and dialogue that does not actually occur in a cutscene.
{{EdNote|note=The usage of this template differs from {{tl|Cutscene}} in that this is for recording in-game text and dialogue that occurs outside a cutscene, or for a character's cutscene dialogue copied onto their page's own "Quotes" section. For other meta-related quotes from devs, players, or outside sources, use {{tl|Quotebox}}.}}
 
The icon used in this template is [[:File:Balloon.png]].
[[Category:Mission Templates]]</noinclude>
[[Category:Mission Templates]]</noinclude>

Latest revision as of 14:09, 18 November 2022

{{{Text}}}

Example Usage

This:

{{CutsceneText|Char=Lin Chiao Ryu|Text=Curses!<br />Foiled again!}}

Yields:

Lin Chiao Ryu:

Curses!
Foiled again!

Editor's Note:

The usage of this template differs from {{Cutscene}} in that this is for recording in-game text and dialogue that occurs outside a cutscene, or for a character's cutscene dialogue copied onto their page's own "Quotes" section. For other meta-related quotes from devs, players, or outside sources, use {{Quotebox}}.

The icon used in this template is File:Balloon.png.