User:Tiddlywinks/Template:JELyrics

|- valign="top" | style="border-width: 0px 1px 0px 0px" | | style="border-width: 0px 0px 0px 1px" | ' |- | style="border-width: 0px 1px 0px 0px" height="11px" | | style="border-width: 0px 0px 0px 1px" |


At its most basic, use this function like this...

{{User:Tiddlywinks/Template:JELyrics/h}}
{{User:Tiddlywinks/Template:JELyrics|jptext|entext}}
[...]
{{User:Tiddlywinks/Template:JELyrics|jptext|entext|last}}
{{User:Tiddlywinks/Template:JELyrics/f}}

The first call is the header (h) that starts the table and the last is the footer (f) that closes the table. Each of the calls in between are for each stanza of the song. This places each stanza in its own row of the table, hopefully alleviating some potential problems of alignment for people whose screens may have different sizes.

The jptext and entext may be formatted more or less anyhow you like, with multiple lines and template calls...just try to keep it well-formed of course (no missing closing braces or anything). Putting the text blocks in <ab></ab> tags will allow your text to appear more or less exactly as it is typed (most especially, single line breaks show up as single line breaks, rather than being ignored like when the wiki interprets it).

For a slightly more fancy style, call it like this...

{{User:Tiddlywinks/Template:JELyrics/h|scheme=Unova}}
{{User:Tiddlywinks/Template:JELyrics|jptext|entext}}
[...]
{{User:Tiddlywinks/Template:JELyrics|jptext|entext|last}}
{{User:Tiddlywinks/Template:JELyrics/f|scheme=Unova}}

The "scheme" parameter, if used, must be included in both the header and the footer calls for the table to form properly. (And if it's not used in one, it shouldn't be used in the other, either. It's all or none.) The stanza calls do not at all require the "scheme" parameter.

Parameters

Required parameters for (this) body template

  • Unnamed parameter 1: block of text to go in the cell for the Japanese lyrics. Don't forget to put <ab></ab> tags around the text (so simple line breaks are interpreted as simple line breaks and the text is generally easier to format).
  • Unnamed parameter 2: block of text to go in the cell for the English lyrics. Don't forget to put <ab></ab> tags around the text (so simple line breaks are interpreted as simple line breaks and the text is generally easier to format).

Optional parameter for (this) body template

  • Unnamed parameter 3: the string "last" if the current stanza will be the last one. This suppresses the extra blank line that usually goes between two stanzas.

Optional parameters for header/footer

  • scheme: Any valid input to Template:colorschemedark (via Template:Schemetable). Kanto, Orange, Johto, Hoenn, Emerald, Sinnoh, Pika, Side, Yellow, FRLG, Platinum, HGSS, Unova, Unova2, Kalos, Almia, Fiore, Orre, and Unknown account for all possible schemes, but most of those have other equivalent values as well.

Example

To begin with, a very basic example that should be very simple to understand.

{{User:Tiddlywinks/Template:JELyrics/h|scheme=Unova}}
{{User:Tiddlywinks/Template:JELyrics|テスト、テスト、一二三|Test, test, 1, 2, 3|last}}
{{User:Tiddlywinks/Template:JELyrics/f|scheme=Unova}}

This produces...

Japanese English
テスト、テスト、一二三 Test, test, 1, 2, 3

Usually, though, certain additions to the text may also be useful. For example, you should probably add romaji to the Japanese text using the "tt" template...

{{User:Tiddlywinks/Template:JELyrics/h|scheme=Unova}}
{{User:Tiddlywinks/Template:JELyrics|{{tt|テスト、テスト、一二三|Tesuto, tesuto, ichi, ni, san}}|Test, test, 1, 2, 3|last}}
{{User:Tiddlywinks/Template:JELyrics/f|scheme=Unova}}

This produces...

Japanese English
テスト、テスト、一二三 Test, test, 1, 2, 3

Finally, for a stanza with multiple lines of text (which is usually the case), you should use the <ab></ab> tags. You may also wish to use the <sc></sc> tags to give any English text among the Japanese lyrics a different font style.

{{User:Tiddlywinks/Template:JELyrics/h|scheme=Unova}}
{{User:Tiddlywinks/Template:JELyrics|<ab><sc>{{tt|テスト、テスト|Tesuto, tesuto}}
{{tt|一二三|Ichi, ni, san}}</sc></ab>|<ab>Test, test,
1, 2, 3</ab>}}
{{User:Tiddlywinks/Template:JELyrics|<ab><sc>{{tt|こんにちは|Kon'nichiwa}}
Hello</sc></ab>|<ab>Good afternoon
Hello</ab>|last}}
{{User:Tiddlywinks/Template:JELyrics/f|scheme=Unova}}

This produces...

Japanese English
テスト、テスト
一二三
Test, test,
1, 2, 3
こんにちは
Hello
Good afternoon
Hello

See also: Can You Name All the Pokémon, Baby?#Lyrics.