LLWiki正在建设中,欢迎加入我们!
“Template:Tracklist”的版本间差异
跳转到导航
跳转到搜索
小 |
小 (以“<noinclude>{{Documentation}}category:功能模板 </noinclude><includeonly><!--</includeonly><syntaxhighlight lang="html+handlebars"> -->{{#invoke:tracklist|main}}<!-- </…”替换内容) 标签:替换 移动版网页编辑 移动版编辑 |
||
第1行: | 第1行: | ||
<noinclude>{{Documentation}}[[category:功能模板]] |
<noinclude>{{Documentation}}[[category:功能模板]] |
||
</noinclude><includeonly><!--</includeonly><syntaxhighlight lang="html+handlebars"> |
</noinclude><includeonly><!--</includeonly><syntaxhighlight lang="html+handlebars"> |
||
-->{{#invoke:tracklist|main}}<!-- |
|||
-->{{#vardefine:info |
|||
|{{#if:{{{all_writing|}}}|全碟-{zh-hans:作词;zh-hant:填詞;zh-tw:作詞;}-及作曲:{{lj|{{{all_writing}}}}} |{{#if:{{{all_music|}}}|全碟作曲:{{lj|{{{all_music}}}}} |}}{{#if:{{{all_lyrics|}}}|全碟-{zh-hans:作词;zh-hant:填詞;zh-tw:作詞;}-:{{lj|{{{all_lyrics}}}}} |}}}}{{#if:{{{all_arranger|}}}|全碟编曲:{{lj|{{{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}} }}}}<!-- |
|||
--><div class="tracklist {{#if:{{{length|}}}|tracklist-length|}}" style="min-width: calc(100% - {{{reserve_width|300px}}}); {{#switch:{{{collapsed|}}}|open|closed|yes = border: #aaa 1px solid;}}"> |
|||
{| class="{{#switch:{{{collapsed|}}}|closed|yes = mw-collapsible mw-collapsed|open = mw-collapsible}}" |
|||
! colspan="9" | {{#if:{{{headline|}}}|{{{headline}}} |曲目列表 }}<!-- 左边是headline,右边是全碟参数 -->{{#if:{{#var:info|}}|<div style="font-weight: normal;">{{#var:info}}</div>}} |
|||
|-{{#if:{{{color|}}}|style="background-color:{{ {{{color}}}/color}};color:white;"|}} |
|||
! 曲序 !! 曲目<!-- |
|||
-->{{#if:{{{lyrics_credits|}}}|!! -{zh-hans:作词;zh-hant:填詞;zh-tw:作詞;}-}}<!-- |
|||
-->{{#if:{{{music_credits|}}}|!! 作曲}}<!-- |
|||
-->{{#if:{{{arranger_credits|}}}|!! 编曲}}<!-- |
|||
-->{{#if:{{{singer_credits|}}}|!! 演唱}}<!-- |
|||
-->{{#if:{{{extra_column|}}} |!! {{{extra_column}}}}}<!-- |
|||
-->{{#if:{{{longnote_column|}}}|!! 备注}}<!-- |
|||
-->{{#if:{{{length|}}} |!! style="width:3em" {{!}} 时长}}<!-- |
|||
-->{{#fornumargs:|key|val |
|||
|{{#switch:{{#vardefineecho:rval|{{#expr: ({{#var:key}} - 1) mod {{#var:ncols}} }}}} |
|||
|0 = -{}- |
|||
{{!-}} |
|||
{{!}} {{#expr:ceil( {{#var:key}} / {{#var:ncols}} )}}. {{!!}} {{lj|{{#var:val}}}} |
|||
|#default = {{!!}} {{#ifexpr:{{#var:rval}} < {{#var:ljcols}}|{{lj|{{#var:val}}}}|{{#var:val}}}} |
|||
}} |
|||
}}<!-- |
|||
-->{{#if:{{{more|}}}|-{}- |
|||
{{!-}} |
|||
{{!}} colspan="9" {{!}} {{{more}}} |
|||
}} |
|||
|}</div><!-- |
|||
</syntaxhighlight><includeonly>--></includeonly> |
</syntaxhighlight><includeonly>--></includeonly> |
2020年9月26日 (六) 12:38的版本
模板文档
这个文档嵌入自Template:Tracklist/doc。
<syntaxhighlight lang="html+handlebars">
-->
曲目列表 | ||||||||
---|---|---|---|---|---|---|---|---|
曲序 | 曲目 |
</includeonly>