LLWiki正在建设中,欢迎加入我们!
“Template:Tracklist”的版本间差异
跳转到导航
跳转到搜索
小 |
小 |
||
第1行: | 第1行: | ||
<noinclude>{{Documentation}}[[category:功能模板]] |
|||
⚫ | |||
</noinclude><includeonly><!--</includeonly><syntaxhighlight lang="html+handlebars"> |
|||
⚫ | |||
⚫ | |||
⚫ | |{{#if:{{{all_writing|}}}|全碟-{zh-hans:作词;zh-hant:填詞;zh-tw:作詞;}-及作曲:{{{all_writing}}} |{{#if:{{{all_music|}}}|全碟作曲:{{{all_music}}} |}}{{#if:{{{all_lyrics|}}}|全碟-{zh-hans:作词;zh-hant:填詞;zh-tw:作詞;}-:{{{all_lyrics}}} |}}}}{{#if:{{{all_arranger|}}}|全碟编曲:{{{all_arranger}}} |}}{{#if: {{{all_singer|}}}|全碟演唱:{{{all_singer}}} |}}{{#switch:{{{all_note|}}}|except|yes = <small>(下面注明例外曲目)</small> |{{{all_note|}}} }}{{#if:{{{all_note2|}}}|{{{all_note2}}}}} |
||
}}<!-- |
}}<!-- |
||
-->{{#vardefine:ljcols |
|||
⚫ | |||
|{{#expr:1 {{#if:{{{lyrics_credits|}}}|+1}} {{#if:{{{music_credits|}}}|+1}} {{#if:{{{arranger_credits|}}}|+1}} }}}}<!-- |
|||
⚫ | |||
-->{{#vardefine:ncols |
|||
⚫ | |||
| |
|{{#expr:{{#var:ljcols}} {{#if:{{{singer_credits|}}}|+1}} {{#if:{{{extra_column|}}}|+1}} {{#if:{{{longnote_column|}}}|+1}} {{#if:{{{length|}}}|+1}} }}}}<!-- |
||
⚫ | |||
⚫ | |||
⚫ | |||
|-{{#if:{{{color|}}}|style="background-color:{{ {{{color}}}/color}};color:white;"|}} |
|||
! 曲序 !! 曲目<!-- |
! 曲序 !! 曲目<!-- |
||
-->{{ |
-->{{#if:{{{lyrics_credits|}}}|!! -{zh-hans:作词;zh-hant:填詞;zh-tw:作詞;}-}}<!-- |
||
-->{{ |
-->{{#if:{{{music_credits|}}}|!! 作曲}}<!-- |
||
-->{{#if: |
-->{{#if:{{{arranger_credits|}}}|!! 编曲}}<!-- |
||
-->{{#if: |
-->{{#if:{{{singer_credits|}}}|!! 演唱}}<!-- |
||
-->{{#if: |
-->{{#if:{{{extra_column|}}} |!! {{{extra_column}}}}}<!-- |
||
-->{{#if: |
-->{{#if:{{{longnote_column|}}}|!! 备注}}<!-- |
||
-->{{#if: |
-->{{#if:{{{length|}}} |!! style="width:3em" {{!}} 时长}}<!-- |
||
⚫ | |||
-->{{#if:{{{length|}}} |{{#vardefine:ncols|{{#expr: {{#var:ncols}} + 1 }}}} !! style="width:3em" {{!}} 时长}}<!-- |
|||
⚫ | |||
⚫ | |||
⚫ | |||
| key |
|||
| val |
|||
⚫ | |||
⚫ | |||
{{!-}} |
{{!-}} |
||
{{!}} {{#expr:ceil( {{#var:key}} / {{#var:ncols}} )}}. {{!!}} {{#var:val}} |
{{!}} {{#expr:ceil( {{#var:key}} / {{#var:ncols}} )}}. {{!!}} {{#var:val}} |
||
| |
|#default = {{!!}} {{#ifexpr:{{#var:rval}} <= {{#var:ljcols}}|{{lj|{{#var:val}}}}|{{#var:val}}}} |
||
}} |
}} |
||
}}<!-- |
|||
-->{{#if:{{{more|}}}|-{}- |
|||
{{!-}} |
|||
{{!}} colspan="{{#var:ncols}}" style="text-align: right;" {{!}} '''总时长:''' |
|||
{{!}} class="total_length" {{!}} 计算中 |
|||
}}{{#if:{{{more|}}}|-{}- |
|||
{{!-}} |
{{!-}} |
||
{{!}} colspan=" |
{{!}} colspan="9" {{!}} {{{more}}} |
||
}} |
}} |
||
|} |
|} |
||
</div>< |
</div><!-- |
||
</syntaxhighlight><includeonly>--></includeonly> |
|||
{{Documentation}} |
|||
</noinclude> |
2020年9月25日 (五) 01:08的版本
模板文档
这个文档嵌入自Template:Tracklist/doc。
<syntaxhighlight lang="html+handlebars">
-->
曲目列表 | ||||||||
---|---|---|---|---|---|---|---|---|
曲序 | 曲目 |
</includeonly>