Template:Quotes: Difference between revisions

Template page
(Created page with "<includeonly><tr> <th rowspan="{{{rowspan|}}}" {{#ifeq:{{{rowspan|}}}|0|style="display:none"}}>{{{situation|}}}</th> <td lang={{{lang|}}}>{{{text|}}}</td> <td>{{{audio|}}}</td...")
 
m (applies fixed column widths)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><tr>
<includeonly><tr>
<th rowspan="{{{rowspan|}}}" {{#ifeq:{{{rowspan|}}}|0|style="display:none"}}>{{{situation|}}}</th>
<th rowspan="{{{rowspan|}}}" style="width:200px; text-align:left;{{#ifeq:{{{rowspan|}}}|0|display:none;}}">{{{situation|}}}</th>
<td lang={{{lang|}}}>{{{text|}}}</td>
<td lang={{{lang|}}}>{{{text|}}}</td>
<td>{{{audio|}}}</td>
<td style="width:100px;">{{#arraymap:{{{audio|}}}|,|x|{{Audio|x}}|\s}}</td>
</tr></includeonly><noinclude>
</tr></includeonly><noinclude>
A new template standardizing the previous quotes templates and streamlining them for use with [[Form:Quotes]].
A template standardizing quotes and streamlining them.


==Usage==
==Usage==
<pre><nowiki>
<pre><nowiki>
{{Quotes
{{Quotes
|rowspan=a number, setting to 0 will hide {{{situation}}}
|rowspan=rowspan of the table row. Use 0 for repeat situations. The default rowspan is 1.
|situation=optional
|situation=description of the line's trigger, the move name, etc.
|text=
|text=
|audio={{Audio|File:filename.ogg}}
|audio=filename.ogg,file2.ogg,file3.ogg,file4.ogg (no spaces necessary)
|lang=
|lang=language code (en or ja)
}}
}}
e.g.
{{Quotes|rowspan=2|situation=Vs. [[Ragna the Bloodedge]]|text=|lang=en}}
{{Quotes|rowspan=0|situation=Vs. [[Ragna the Bloodedge]]|text=|audio=|lang=ja}}
</nowiki></pre>
</nowiki></pre>


==Example==
==Example==
<table class="wikitable" style="width:100%">
{{Quotes Header}}
<tr><th>Situation</th><th>Quote</th><th>Audio</th></tr>
{{Quotes|rowspan=2|situation=Vs. [[Ragna the Bloodedge]]|text=Hmm... Not bad. Still, no match for me.|audio=BBCP Amane Win Quote vs Ragna (En).ogg|lang=en}}
{{Quotes|rowspan=4|situation=situation|text=some text here|audio=|lang=en}}
{{Quotes|rowspan=0|situation=Vs. [[Ragna the Bloodedge]]|text=|audio=BBCP Amane Win Quote vs Ragna (Jp).ogg|lang=ja}}
{{Quotes|rowspan=0|situation=situation|text=some text here|audio=|lang=jp}}
{{Quotes|rowspan=2|situation=Vs. [[Jin Kisaragi]]|text=You're a cutie, aren't you? You wanna join me?|audio=BBCP Amane Win Quote vs Jin (En).ogg|lang=en}}
{{Quotes|rowspan=0|situation=situation|text=some text here|audio=|lang=en}}
{{Quotes|rowspan=0|situation=Vs. [[Jin Kisaragi]]|text=|audio=BBCP Amane Win Quote vs Jin (Jp).ogg|lang=ja}}
{{Quotes|rowspan=0|situation=situation|text=some text here|audio=|lang=jp}}
{{Quotes Footer}}
</table>
 
<pre><nowiki>
<table class="wikitable" style="width:100%">
<tr><th>Situation</th><th>Quote</th><th>Audio</th></tr>
{{Quotes|rowspan=4|situation=situation|text=some text here|audio=|lang=en}}
{{Quotes|rowspan=0|situation=situation|text=some text here|audio=|lang=jp}}
{{Quotes|rowspan=0|situation=situation|text=some text here|audio=|lang=en}}
{{Quotes|rowspan=0|situation=situation|text=some text here|audio=|lang=jp}}
</table>
</nowiki></pre>


[[Category:Quotes Templates]]
[[Category:Quotes Templates]]
</noinclude>
</noinclude>

Latest revision as of 19:44, 23 January 2021

A template standardizing quotes and streamlining them.

Usage

{{Quotes
|rowspan=rowspan of the table row. Use 0 for repeat situations. The default rowspan is 1.
|situation=description of the line's trigger, the move name, etc.
|text=
|audio=filename.ogg,file2.ogg,file3.ogg,file4.ogg (no spaces necessary)
|lang=language code (en or ja)
}}

e.g.
{{Quotes|rowspan=2|situation=Vs. [[Ragna the Bloodedge]]|text=|lang=en}}
{{Quotes|rowspan=0|situation=Vs. [[Ragna the Bloodedge]]|text=|audio=|lang=ja}}

Example

Situation Quote Audio
Vs. Ragna the Bloodedge Hmm... Not bad. Still, no match for me. Play
Vs. Ragna the Bloodedge Play
Vs. Jin Kisaragi You're a cutie, aren't you? You wanna join me? Play
Vs. Jin Kisaragi Play