Difference between revisions of "Template:LyricsKai"

From Moegirlpedia
Jump to: navigation, search
(Fixed grammar)
(Added categories and documentation)
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
 
[[File:OtherWiki-gray-large.svg|20px|Other Wiki|link=]] The {{#switch:{{{type|}}}|lyrics=lyrics|data=data|#default=data or lyrics}} of this {{#vardefineecho:noticetype|{{#ifeq:{{{paragraph|{{{sect|}}}}}}|1|paragraph|article}}}} are copyrighted by {{#if:{{{author|}}}|{{{author|}}}|the respective owner}}, and are quoted for the purpose of introduction only.
 
[[File:OtherWiki-gray-large.svg|20px|Other Wiki|link=]] The {{#switch:{{{type|}}}|lyrics=lyrics|data=data|#default=data or lyrics}} of this {{#vardefineecho:noticetype|{{#ifeq:{{{paragraph|{{{sect|}}}}}}|1|paragraph|article}}}} are copyrighted by {{#if:{{{author|}}}|{{{author|}}}|the respective owner}}, and are quoted for the purpose of introduction only.
  
<div class="Lyrics" style="display:inline-block;width:{{#if:{{{width|}}}|{{{width}}}|calc(100% - {{{reserveWidth|0px}}})}};min-width:300px;">{{#invoke:Lyrics|lyrics}}</div></includeonly><noinclude>
+
<div class="Lyrics" style="display:inline-block;width:{{#if:{{{width|}}}|{{{width}}}|calc(100% - {{{reserveWidth|0px}}})}};min-width:300px;">{{#invoke:Lyrics|lyrics}}</div></includeonly><noinclude>{{doc}}
 
+
[[Category:Music informational templates]]
 +
[[Category:Templates using template styles]]
 +
[[zh:Template:LyricsKai]]
 
</noinclude>
 
</noinclude>

Latest revision as of 15:29, 18 November 2023

Template-info.svg Template Documentation  [View] [Edit] [History] [Refresh]

This template provides an easy way to create large paragraphs with translated lyrics.

The template will then follow the rows for you-- Correspondence generates a contrast between the original and the translated text. At high resolution, this will be a left-right aligned control. At low resolution, the original and the translation will each take up one line. The corresponding module for this template is Module:Lyrics.

To use multiple colors in lyrics to distinguish between different singers, please refer to the use of {{LyricsKai/colors}}. Note: It is not recommended to use this template for articles about songs with only one singer.

Parameters

The template currently has the following parameter:

  • original: The song's original lyrics.
  • translated: The song's translated lyrics. The number of lines in the original lyrics and the translation need to match.
  • llang: Original language label. When not specified, the default value is Japanese (ja).
  • rlang: Translated language label. The default value is English (en). Format as above.
  • lstyle: Style of the original text. Colors and other styles can be specified here.
  • rstyle: Style of the translated text. Colors and other styles can be specified here.
  • width: Width of the design template. The default value is 100%.
  • containerstyle: Styles applied to the entire container. Styles such as background colors that work on both the original and translated text can be specified here.

Furthermore, there is also a parameter related to copyright marking:

  • Author: Lyricist/song copyright owner. If there is an article on the site, it can be written in the form of an internal link.

Example usage

※Note: If you try to change the style (lstyle, rstyle, containerstyle), please note the use of colons as well as semicolons.

{{LyricsKai
|lstyle=color:left-font-color;
|rstyle=color:right-font-color;
|original=
Original text
|translated=
Translated text
}}

Background color example

The above example demonstrates changing the font color, this example is used to change the background color of the entire lyrics section.

{{LyricsKai
|containerstyle=background:bcolor;
|original=
Original text
|translated=
Translated text
}}