Difference between revisions of "Template:Lyrics"

From Detective Conan Wiki
m
(Testing new extension with dynamic JS Tabs (mainly for lyrics))
Line 1: Line 1:
<includeonly>{| class="wikitable" style="/*margin: auto*/"
+
<includeonly>{{#tabs:lyrics|
 
{{#if: {{{japanese|}}} |
 
{{#if: {{{japanese|}}} |
! Japanese {{{japanese-citation|}}}
+
{{#tab:Japanese {{{japanese-citation|}}}|{{#lyrics:{{{japanese}}}}}}}}}
{{!}}-
 
{{!}} style="text-align:center; padding: 5px;" {{!}} {{{japanese}}}
 
{{!}}}}
 
 
{{#if: {{{english|}}} |
 
{{#if: {{{english|}}} |
! English {{{english-citation|}}}
+
{{#tab:English {{{english-citation|}}}|{{#lyrics:{{{english}}}}}}}}}
{{!}}-
 
{{!}} style="text-align:center; padding: 5px;" {{!}} {{{english}}}
 
{{!}}}}
 
 
{{#if: {{{kanji|}}} |
 
{{#if: {{{kanji|}}} |
! Japanese Kanji {{{kanji-citation|}}}
+
{{#tab:Kanji {{{kanji-citation|}}}|{{#lyrics:{{{kanji}}}}}}}}}
{{!}}-
+
}}</includeonly><noinclude>
{{!}} style="text-align:center; padding: 5px;" {{!}} {{{kanji}}}
 
{{!}}}}
 
|}</includeonly><noinclude>
 
 
Creates a table with lyrics of a song in Japanese and/or English.
 
Creates a table with lyrics of a song in Japanese and/or English.
  

Revision as of 07:33, 7 December 2009

Creates a table with lyrics of a song in Japanese and/or English.

Usage

The following is a list of required or optional parameters:

{{Lyrics
| japanese              =    (Optional) Japanese lyrics
| japanese-citation     =    (Optional) Citation to the Japanese lyrics
| english               =    (Optional) English Lyrics
| english-citation      =    (Optional) Citation to the English lyrics
| kanji                 =    (Optional) Japanese Kanji Lyrics
| kanji-citation        =    (Optional) Citation to the Kanji lyrics
}}