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 (alter to work with BBTAG command lists)
m (clean up parameters)
Line 3: Line 3:
<td> '''{{{EN|}}}'''{{#if:{{{JP|}}}|<br>{{{JP|}}}|}}{{#if:{{{romaji|}}}|<br>''{{{romaji|}}}''}} </td>
<td> '''{{{EN|}}}'''{{#if:{{{JP|}}}|<br>{{{JP|}}}|}}{{#if:{{{romaji|}}}|<br>''{{{romaji|}}}''}} </td>
<td> {{{input|}}} </td>
<td> {{{input|}}} </td>
{{#switch:{{{type|}}}|BBTAG=|#default=<td> {{{input2|}}} </td>}}
{{#if:{{{input2}}}|<!--
  input2 was either omitted or has a value
  -->{{#if:{{{input2|}}}|<!--
        input2 has a value, so show it.
  --><td> {{{input2|}}} </td>|<!--
        input2 was omitted, so don't show anything.
  -->}}<!--
-->|<!--
  input2 was included but left blank, so show it.
--><td> {{{input2|}}} </td><!--
-->}}
<td> {{{desc|}}} </td>
<td> {{{desc|}}} </td>
</tr>
</tr>
Line 15: Line 25:
   | Romaji =  
   | Romaji =  
   | input  =  
   | input  =  
   | input2 =  
   | input2 =
   | desc  =  
   | desc  =  
}}
}}
Line 21: Line 31:


== Preview ==
== Preview ==
<table class="wikitable">
<table class="wikitable">
{{Command List Row
{{Command List Row
Line 28: Line 37:
   | romaji = Romaji for the command
   | romaji = Romaji for the command
   | input  = Input sequence for the command
   | input  = Input sequence for the command
   | input2 = Alternate input sequence for the command<br>(omitted for BBTAG command lists)
   | input2 =
   | desc  = Description of the command.
   | desc  = Description of the command.
   | type  = BBTAG (only necessary for BBTAG command lists. Omit this for all other lists)
   | type  = BBTAG
}}
}}  
</table>
</table>


Line 42: Line 51:
   | EN    =  
   | EN    =  
   | JP    =  
   | JP    =  
   | Romaji =  
   | romaji =  
   | input  =  
   | input  =  
   | input2 =  
   | input2 =  
Line 54: Line 63:
   | EN    =  
   | EN    =  
   | JP    =  
   | JP    =  
   | Romaji =  
   | romaji =  
   | input  =  
   | input  =  
  | input2 =
   | desc  =  
   | desc  =  
  | type  = BBTAG
}}
}}
</nowiki></pre>
</nowiki></pre>
Line 70: Line 77:
   | romaji = Romaji for the command
   | romaji = Romaji for the command
   | input  = Input sequence for the command
   | input  = Input sequence for the command
   | input2 = Alternate input sequence for the command<br>(omitted for BBTAG command lists)
   | 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.
   | desc  = Description of the command.
  | type  = BBTAG (only necessary for BBTAG command lists. Omit this for all other lists)
}}
}}
</nowiki></pre>
</nowiki></pre>
== 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.
{| class=wikitable
! colspan="3" | Truth Table
|-
!
! <nowiki>{{{input2}}}</nowiki>
! <nowiki>{{{input2|}}}</nowiki>
|-
! omitted
| T
| F
|-
! "input2 ="
| F
| F
|-
! "input2 = something"
| T
| T
|}


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

Revision as of 20:25, 26 March 2018

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

inside a table
<table class="wikitable">
{{Command List Row
  | EN     = 
  | JP     = 
  | Romaji = 
  | input  = 
  | input2 =
  | desc   = 
}}
</table>

.

Preview

English name of command
Japanese name of the command
Romaji for the command
Input sequence for the command Description of the command.

Usage

<tabs plain> <tab name="Default">

{{Command List Row
  | EN     = 
  | JP     = 
  | romaji = 
  | input  = 
  | input2 = 
  | desc   = 
}}

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

{{Command List Row
  | EN     = 
  | JP     = 
  | romaji = 
  | input  = 
  | desc   = 
}}

</tab> </tabs>

{{Command List Row
  | EN     = English name of command
  | JP     = Japanese name of the command
  | romaji = Romaji 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)
  | desc   = Description of the command.
}}

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