Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Command List Row: Difference between revisions

Template page
m (make desc optional)
m (Display romaji in smaller font)
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<tr>
<tr>
<td> '''{{{EN|}}}'''{{#if:{{{JP|}}}|<br>{{{JP|}}}|}}{{#if:{{{romaji|}}}|<br>''{{{romaji|}}}''}} </td>
<th style="font-weight:normal; text-align:left;"> {{#if:{{{DE|}}}{{{FR|}}}{{{ES|}}}{{{IT|}}}{{{ZH|}}}{{{KO|}}}|<!--
<td> {{{input|}}} </td>
-->{{tt|<b>{{{EN|}}}</b>{{#if:{{{JP|}}}|<br>{{{JP|}}}|}}{{#if:{{{romaji|}}}|<br><small><i>{{{romaji|}}}</i></small>}}|<!--
-->{{#if:{{{DE|}}}|German: {{{DE|}}}<br/>}}<!--
-->{{#if:{{{FR|}}}|French: {{{FR|}}}</br>}}<!--
-->{{#if:{{{ES|}}}|Spanish: {{{ES|}}}<br/>}}<!--
-->{{#if:{{{IT|}}}|Italian: {{{IT|}}}<br/>}}<!--
-->{{#if:{{{ZH|}}}|Chinese: {{{ZH|}}}<br/>}}<!--
-->{{#if:{{{KO|}}}|Korean: {{{KO|}}} }}<!--
-->}}|<!--
--><b>{{{EN|}}}</b>{{#if:{{{JP|}}}|<br>{{{JP|}}}|}}{{#if:{{{romaji|}}}|<br><small><i>{{{romaji|}}}</i></small>}}<!--
-->}} </th>
<th> {{{input|}}} </th>
{{#if:{{{input2}}}|<!--  
{{#if:{{{input2}}}|<!--  
   input2 was either omitted or has a value  
   input2 was either omitted or has a value  
   -->{{#if:{{{input2|}}}|<!--  
   -->{{#if:{{{input2|}}}|<!--  
         input2 has a value, so show it.
         input2 has a value, so show it.
   --><td> {{{input2|}}} </td>|<!--  
   --><th> {{{input2|}}} </th>|<!--  
         input2 was omitted, so don't show anything.
         input2 was omitted, so don't show anything.
   -->}}<!--
   -->}}<!--
-->|<!--  
-->|<!--  
   input2 was included but left blank, so show it.
   input2 was included but left blank, so show it.
--><td> {{{input2|}}} </td><!--
--><th> {{{input2|}}} </th><!--
-->}}
{{#if:{{{desc}}}|<!--
  desc was either omitted or has a value
  -->{{#if:{{{desc|}}}|<!--
        desc has a value, so show it.
  --><td> {{{desc|}}} </td>|<!--
        desc was omitted, so don't show anything.
  -->}}<!--
-->|<!--
  desc was included but left blank, so show it.
--><td> {{{desc|}}} </td><!--
-->}}
-->}}
</tr>
<tr>
<td style="text-align:center; max-width:200px;"><!--
-->{{#if:{{{image|}}}|[[File:{{{image|}}}|200x200px]]}}{{#if:{{{caption|}}}|<br/>{{{caption|}}}}}<!--
-->{{#if:{{{image2|}}}|<br/>[[File:{{{image2|}}}|200x200px]]}}{{#if:{{{caption2|}}}|<br/>{{{caption2|}}}}}<!--
-->{{#if:{{{image3|}}}|<br/>[[File:{{{image3|}}}|200x200px]]}}{{#if:{{{caption3|}}}|<br/>{{{caption3|}}}}}</td>
<td {{#if:{{{input2}}}|{{#if:{{{input2|}}}|colspan="2"|}}|colspan="2"}}>{{{desc|}}}</td>
</tr>
</tr>
</includeonly><noinclude>
</includeonly><noinclude>
This is a template to be used alongside [[:Template:Command List]] or [[:Template:Command List (BBTAG)]]. It defines a single row of the command list.
This is a template to be used alongside [[:Template:Command List]] or [[:Template:Command List (BBTAG)]]. It defines a single row of the command list.


If you wish to use this template on its own (without Command List), you must put it {{tt|inside a table|<pre style="text-align:left"><table class="wikitable">
If you wish to use this template on its own (without [[:Template:Command List]]), you must put it inside a table.
{{Command List Row
  | EN    =
  | JP    =
  | Romaji =
  | input  =
  | input2 =
  | desc  =
}}
</table></pre>}}.


== Preview ==
== Preview ==
<table class="wikitable">
=== [[Template:Command List|Command List]] ===
{{Command List Row
{{Command List
|drive=
  {{Command List Row
  | EN    = English name of command
  | JP    = 零刀(フロストバイト)
  | DE    = German name of command
  | FR    = French name of command
  | ES    = Spanish name of command
  | IT    = Italian name of command
  | ZH    = Chinese name of command
  | KO    = Korean name of command
  | romaji = Romaji for the command
  | input  = 6D
  | input2 =
  | image  = Kagura B Dragon's Ascent.gif |caption=Caption
  | image2 = Kagura B Dragon Spirit.gif |caption2=Caption2
  | desc  = A description of the command can be very long and might have multiple paragraphs. Note that in order to add line breaks, use <nowiki><br/></nowiki>. Here is a filler sentence.<br/>This is paragraph 2.
  }}
}}
===[[Template:Command List (BBTAG)|Command List (BBTAG)]] ===
{{Command List (BBTAG)|
|specials=
  {{Command List Row
   | EN    = English name of command
   | EN    = English name of command
   | JP    = Japanese name of the command
   | JP    = 零刀(フロストバイト)
  | DE    = German name of command
  | FR    = French name of command
  | ES    = Spanish name of command
  | IT    = Italian name of command
  | ZH    = Chinese name of command
  | KO    = Korean name of command
   | romaji = Romaji for the command
   | romaji = Romaji for the command
   | input = Input sequence for the command
   | image = BlazBlue_Central_Fiction_Kagura_Mutsuki_Sprite_Idle.gif
   | input2 = Alternate input for the command
   | input  = 6D
   | desc  = Description of the command
   | desc  = A description of the command can be very long and might have multiple paragraphs. Note that in order to add line breaks, use <nowiki><br/></nowiki>. Here is a filler sentence.<br/>This is paragraph 2.
}}  
  }}
</table>
}}


== Usage ==
== Usage ==


<tabs plain>
<tabs>
<tab name="Default">
<tab name="Default">
<pre><nowiki>
<pre><nowiki>
Line 60: Line 85:
   | EN    =  
   | EN    =  
   | JP    =  
   | JP    =  
  | DE    =
  | FR    =
  | ES    =
  | IT    =
  | ZH    =
  | KO    =
   | romaji =  
   | romaji =  
  | image  =  |caption=
  | image2 =  |caption2=
  | image3 =  |caption3=
   | input  =  
   | input  =  
   | input2 =  
   | input2 =  
Line 72: Line 106:
   | EN    =  
   | EN    =  
   | JP    =  
   | JP    =  
  | DE    =
  | FR    =
  | ES    =
  | IT    =
  | ZH    =
  | KO    =
   | romaji =  
   | romaji =  
  | image  =  |caption=
  | image2 =  |caption2=
  | image3 =  |caption3=
   | input  =  
   | input  =  
  | desc  =
}}
}}
</nowiki></pre>
</nowiki></pre>
Line 83: Line 127:
   | EN    = English name of command
   | EN    = English name of command
   | JP    = Japanese name of the command
   | JP    = Japanese name of the command
  | DE    = German
  | FR    = French
  | ES    = Spanish
  | IT    = Italian
  | ZH    = Chinese (pick traditional over simplified)
  | KO    = Korean
   | romaji = Romaji for the command
   | romaji = Romaji for the command
  | image  = image name (without the File: prefix)
  | image2 = "" for a second image
  | image3 = "" for a third image
   | input  = Input sequence for the command
   | input  = Input sequence for the command
   | input2 = Alternate input sequence for the command (omit it completely to remove the column, otherwise leave it blank to keep the column, but have it be blank e,g for BBTAG command lists - see above for templates)
   | input2 = Alternate input sequence for the command (omit it completely to remove the column, otherwise leave it blank to keep the column, but have it be blank e,g for BBTAG command lists - see above for templates)

Latest revision as of 02:14, 2 November 2019

This is a template to be used alongside Template:Command List or Template:Command List (BBTAG). It defines a single row of the command list.

If you wish to use this template on its own (without Template:Command List), you must put it inside a table.

Preview

Command List

Name Command
Normal Input Alternative Input
Drive
English name of command
零刀(フロストバイト)
Romaji for the commandGerman: German name of command
French: French name of command
Spanish: Spanish name of command
Italian: Italian name of command
Chinese: Chinese name of command
Korean: Korean name of command
6D
Kagura B Dragon's Ascent.gif
Caption
Kagura B Dragon Spirit.gif
Caption2
A description of the command can be very long and might have multiple paragraphs. Note that in order to add line breaks, use <br/>. Here is a filler sentence.
This is paragraph 2.

Command List (BBTAG)

Name Command
Smart Combo
Special
English name of command
零刀(フロストバイト)
Romaji for the commandGerman: German name of command
French: French name of command
Spanish: Spanish name of command
Italian: Italian name of command
Chinese: Chinese name of command
Korean: Korean name of command
6D
BlazBlue Central Fiction Kagura Mutsuki Sprite Idle.gif A description of the command can be very long and might have multiple paragraphs. Note that in order to add line breaks, use <br/>. Here is a filler sentence.
This is paragraph 2.
Reversal Action
Extra Skill (Takes 1 skill gauge)
Distortion Skill (Takes 2 skill gauge)

Usage

<tabs> <tab name="Default">

{{Command List Row
  | EN     = 
  | JP     = 
  | DE     = 
  | FR     = 
  | ES     = 
  | IT     = 
  | ZH     = 
  | KO     = 
  | romaji = 
  | image  =  |caption=
  | image2 =  |caption2=
  | image3 =  |caption3=
  | input  = 
  | input2 = 
  | desc   = 
}}

</tab> <tab name="BBTAG">

{{Command List Row
  | EN     = 
  | JP     = 
  | DE     = 
  | FR     = 
  | ES     = 
  | IT     = 
  | ZH     = 
  | KO     = 
  | romaji = 
  | image  =  |caption=
  | image2 =  |caption2=
  | image3 =  |caption3=
  | input  = 
  | desc   =
}}

</tab> </tabs>

{{Command List Row
  | EN     = English name of command
  | JP     = Japanese name of the command
  | DE     = German
  | FR     = French
  | ES     = Spanish
  | IT     = Italian
  | ZH     = Chinese (pick traditional over simplified)
  | KO     = Korean
  | romaji = Romaji for the command
  | image  = image name (without the File: prefix)
  | image2 = "" for a second image
  | image3 = "" for a third image
  | input  = Input sequence for the command
  | input2 = Alternate input sequence for the command (omit it completely to remove the column, otherwise leave it blank to keep the column, but have it be blank e,g for BBTAG command lists - see above for templates)
  | desc   = Description of the command. (omit it completely to remove the column, otherwise leave it blank to keep the column, but have it be blank e,g for BBTAG command lists - see above for templates)
}}

Notes

We want it so that if input2 is completely omitted, the column will disappear. If input2 is left blank, but exists, then we want to column to exist, but be blank. Finally, if input2 is filled in, then we want its column to exist.

Truth Table
{{{input2}}} {{{input2|}}}
omitted T F
"input2 =" F F
"input2 = something" T T