mNo edit summary |
mNo edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{documentation subpage}} |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
__TOC__ |
|||
⚫ | |||
** Defines the columns and their orders |
|||
** Adds a hidden HTML tag for the lyrics option fieldset to attach to |
|||
⚫ | |||
⚫ | |||
==Parameters== |
== Parameters == |
||
<templatedata> |
<templatedata> |
||
{ |
{ |
||
Line 35: | Line 37: | ||
}, |
}, |
||
"format": "block", |
"format": "block", |
||
"description": "Template for a |
"description": "Template for a verse of song lyrics for lyrics tables. Parameters \"japanese\", \"romaji\", and \"english\" are only defined if their respective columns are defined in the \"Lyrics head\" template." |
||
} |
} |
||
</templatedata> |
</templatedata> |
||
==Usage== |
== Usage == |
||
<pre> |
<pre> |
||
{{Lyrics head |
|||
{{LyricsHead}} |
|||
| id = |
|||
{{LyricsLine |
|||
| |
| column = |
||
|romaji = |
|||
|english = |
|||
}} |
}} |
||
{{ |
{{Lyrics line}} |
||
{{Lyrics tail}} |
|||
</pre> |
</pre> |
||
This template doesn't have any parameters by default. The names of these parameters are defined by {{t|Lyrics head}} with the "columns" parameter. |
|||
⚫ | |||
{{LyricsHead}} |
|||
⚫ | |||
{{LyricsLine |
|||
Below is a simple example of how to use the collection of lyrics templates. For a more detailed guide, see [[Help:Adding song lyrics]]. |
|||
{{Lyrics head |
|||
| columns = japanese,romaji,english |
|||
| japanese = Japanese lyrics |
|||
| romaji = Romanized lyrics |
|||
| english = English translation |
|||
}} |
|||
{{Lyrics line |
|||
|japanese = 形のない気持ち忘れないように |
|japanese = 形のない気持ち忘れないように |
||
|romaji = katachi no nai kimochi wasurenai you ni |
|romaji = katachi no nai kimochi wasurenai you ni |
||
|english = Not to forget the intangible feelings |
|english = Not to forget the intangible feelings |
||
}} |
}} |
||
{{Lyrics line |
|||
{{LyricsLine |
|||
|japanese = 決まりきったレイアウトを消した |
|japanese = 決まりきったレイアウトを消した |
||
|romaji = kimari kitta LAYOUT wo keshita |
|romaji = kimari kitta LAYOUT wo keshita |
||
|english = |
|english = |
||
}} |
}} |
||
{{ |
{{Lyrics tail|Footer}} |
||
<pre> |
<pre> |
||
{{Lyrics head |
|||
{{LyricsHead}} |
|||
| columns = japanese,romaji,english |
|||
{{LyricsLine |
|||
| japanese = Japanese lyrics |
|||
| romaji = Romanized lyrics |
|||
| english = English translation |
|||
}} |
|||
{{Lyrics line |
|||
|japanese = 形のない気持ち忘れないように |
|japanese = 形のない気持ち忘れないように |
||
|romaji = katachi no nai kimochi wasurenai you ni |
|romaji = katachi no nai kimochi wasurenai you ni |
||
|english = Not to forget the intangible feelings |
|english = Not to forget the intangible feelings |
||
}} |
}} |
||
{{Lyrics line |
|||
{{LyricsLine |
|||
|japanese = 決まりきったレイアウトを消した |
|japanese = 決まりきったレイアウトを消した |
||
|romaji = kimari kitta LAYOUT wo keshita |
|romaji = kimari kitta LAYOUT wo keshita |
||
|english = |
|english = |
||
}} |
}} |
||
{{ |
{{Lyrics tail|Footer}} |
||
</pre> |
</pre> |
Latest revision as of 02:39, 15 April 2023
This is a documentation subpage for Template:Lyrics line. It contains usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
The Lyrics templates are used to list the lyrics in a song. Three templates are used to form the lyrics table:
- {{Lyrics head}} - Contains table headers for the top of the lyrics table
- Defines the columns and their orders
- Adds a hidden HTML tag for the lyrics option fieldset to attach to
- {{Lyrics line}} - Template for all the individual lyrics lines, for each verse in a song
- {{Lyrics tail}} - Contains table footer for the bottom of the lyrics table
Parameters[edit source]
Template for a verse of song lyrics for lyrics tables. Parameters "japanese", "romaji", and "english" are only defined if their respective columns are defined in the "Lyrics head" template.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Japanese | japanese | A line or block of lyrics in Japanese.
| String | suggested |
Romaji | romaji | A line or block of lyrics romanized from Japanese.
| String | suggested |
English | english | A line or block of lyrics translated to English.
| String | suggested |
Usage[edit source]
{{Lyrics head | id = | column = }} {{Lyrics line}} {{Lyrics tail}}
This template doesn't have any parameters by default. The names of these parameters are defined by {{Lyrics head}} with the "columns" parameter.
Example[edit source]
Below is a simple example of how to use the collection of lyrics templates. For a more detailed guide, see Help:Adding song lyrics.
Japanese lyrics | Romanized lyrics | English translation |
---|---|---|
形のない気持ち忘れないように | katachi no nai kimochi wasurenai you ni | Not to forget the intangible feelings |
決まりきったレイアウトを消した | kimari kitta LAYOUT wo keshita | |
Footer |
{{Lyrics head | columns = japanese,romaji,english | japanese = Japanese lyrics | romaji = Romanized lyrics | english = English translation }} {{Lyrics line |japanese = 形のない気持ち忘れないように |romaji = katachi no nai kimochi wasurenai you ni |english = Not to forget the intangible feelings }} {{Lyrics line |japanese = 決まりきったレイアウトを消した |romaji = kimari kitta LAYOUT wo keshita |english = }} {{Lyrics tail|Footer}}