55 lines
1.3 KiB
Markdown
55 lines
1.3 KiB
Markdown
[[!templatebody <<ENDBODY
|
|
<div class="ibox">
|
|
<h4 class="ibox-head">
|
|
[[!color
|
|
foreground=<TMPL_IF colorfg><TMPL_VAR raw_colorfg><TMPL_ELSE>black</TMPL_IF>
|
|
background=<TMPL_IF colorbg><TMPL_VAR raw_colorbg><TMPL_ELSE>white</TMPL_IF>
|
|
text="<TMPL_VAR name>"]]
|
|
</h4>
|
|
<TMPL_IF image>
|
|
<img class="ibox-img" src="<TMPL_VAR image>"/>
|
|
</TMPL_IF>
|
|
<table class="ibox-table">
|
|
<tbody>
|
|
<TMPL_IF compose>
|
|
<tr><td><b>Composition</b></td><td><TMPL_VAR compose></td></tr>
|
|
</TMPL_IF>
|
|
<TMPL_IF lyric>
|
|
<tr><td><b>Lyrics</b></td><td><TMPL_VAR lyric></td></tr>
|
|
</TMPL_IF>
|
|
<TMPL_IF vocal>
|
|
<tr><td><b>Vocals</b></td><td><TMPL_VAR vocal></td></tr>
|
|
</TMPL_IF>
|
|
<TMPL_IF video>
|
|
<tr><td><b>Video</b></td><td><a href="<TMPL_VAR video>">Link</a></td></tr>
|
|
</TMPL_IF>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
ENDBODY]]
|
|
|
|
This template is a simple info box for songs.
|
|
|
|
Parameters:
|
|
|
|
| Name | Description |
|
|
| ---- | ----------- |
|
|
| name | Required. Name of the song. |
|
|
| colorfg | The foreground color for the name. Defaults to black. |
|
|
| colorbg | The background color for the name. Defaults to white. |
|
|
| compose | The composer. |
|
|
| lyric | The lyricist. |
|
|
| vocal | The vocalist. |
|
|
| video | A video, if one exists. |
|
|
|
|
Example usage:
|
|
|
|
\[[!sidebar content="""
|
|
[[!template
|
|
id=iboxsong
|
|
name="Some Song"
|
|
compose="Me"
|
|
lyric="Also Me"
|
|
vocal="Not Me"]]
|
|
"""]]
|