Template:Chord: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 16: | Line 16: | ||
/><span | /><span | ||
{{#if:{{{width|}}}|style="display: inline-block; width:{{{width}}}ch"}} | {{#if:{{{width|}}}|style="display: inline-block; width:{{{width}}}ch"}} | ||
data-chord="{{#replace:{{#replace:{{{2|{{{1}}}}}}|b|♭}}|#|♯}}">{{{1 | data-chord="{{#replace:{{#replace:{{{2|{{{1}}}}}}|b|♭}}|#|♯}}">{{#if:{{{2|}}}|{{{1}}}}}</span></includeonly> |
Latest revision as of 06:43, 23 February 2024
Use this template to place a chord above a line of text. Usage example:
"Sore ja {{chord|ma|F}}ta ne" tte te o {{chord|fu|A}}tte
"Sore ja mata ne" tte te o futte
Notes:
- Generally the template should enclose a single syllable or mora.
- The first parameter is the text. The second parameter is the chord. However, if there is only one parameter, it is the chord.
- It will automatically convert b to ♭ and # to ♯ for you.
- If several longer chords are placed close together, they will overlap.
- If you need to avoid this, you can specify the optional width parameter, which reserves space for a specified number of letters.