m (clean up stray apostrophes that show up when the name is blank) |
m (change to new format: put description on a new row, along with a cell for an image) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<tr> | <tr> | ||
< | <th style="font-weight:normal;"> <b>{{{EN|}}}</b>{{#if:{{{JP|}}}|<br>{{{JP|}}}|}}{{#if:{{{romaji|}}}|<br><i>{{{romaji|}}}</i>}} </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. | ||
-->< | --><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. | ||
-->< | --><th> {{{input2|}}} </th><!-- | ||
-->}} | -->}} | ||
</tr> | |||
<tr> | |||
<td>{{#if:{{{image|}}}|[[File:{{{image|}}}|300px]]}}</td> | |||
<td {{#if:{{{input2|}}}|colspan="2"}}>{{{desc|}}}</td> | |||
</tr> | </tr> | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
Line 41: | Line 34: | ||
== Preview == | == Preview == | ||
< | === [[Template:Command List|Command List]] === | ||
{{Command List Row | {{Command List | ||
|drive= | |||
{{Command List Row | |||
| EN = English name of command | |||
| JP = 零刀(フロストバイト) | |||
| romaji = Romaji for the command | |||
| image = BlazBlue_Central_Fiction_Kagura_Mutsuki_Sprite_Idle.gif | |||
| input = 6D | |||
| input2 = SP | |||
| 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 = | | JP = 零刀(フロストバイト) | ||
| romaji = Romaji for the command | | romaji = Romaji for the command | ||
| | | image = BlazBlue_Central_Fiction_Kagura_Mutsuki_Sprite_Idle.gif | ||
| | | input = 6D | ||
| desc = | | 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. | ||
}} | }} | ||
}} | |||
== Usage == | == Usage == | ||
Line 61: | Line 69: | ||
| JP = | | JP = | ||
| romaji = | | romaji = | ||
| image = | |||
| input = | | input = | ||
| input2 = | | input2 = | ||
Line 73: | Line 82: | ||
| JP = | | JP = | ||
| romaji = | | romaji = | ||
| image = | |||
| input = | | input = | ||
}} | }} | ||
Line 84: | Line 94: | ||
| JP = Japanese name of the command | | JP = Japanese name of the command | ||
| romaji = Romaji for the command | | romaji = Romaji for the command | ||
| image = image name (without the File: prefix) | |||
| 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) |
Revision as of 21:23, 13 May 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
Command List
Command List (BBTAG)
Usage
<tabs plain> <tab name="Default">
{{Command List Row | EN = | JP = | romaji = | image = | input = | input2 = | desc = }}
</tab> <tab name="BBTAG">
{{Command List Row | EN = | JP = | romaji = | image = | input = }}
</tab> </tabs>
{{Command List Row | EN = English name of command | JP = Japanese name of the command | romaji = Romaji for the command | image = image name (without the File: prefix) | 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 |