LLWiki正在建设中,欢迎加入我们!
“Template:Tracklist”的版本间差异
跳转到导航
跳转到搜索
(创建页面,内容为“<includeonly>{{#vardefine:info |{{#if: {{{all_writing|}}}|全碟-{zh-hans:作词;zh-hant:填詞;zh-tw:作詞;}-及作曲:{{{all_writing}}} }}{{#if: {{{all_mu…”) |
(// Edit via Wikiplus) |
||
(未显示2个用户的16个中间版本) | |||
第1行: | 第1行: | ||
<noinclude>{{Documentation|Module:Tracklist/doc}}[[category:歌曲模板]] |
|||
<includeonly>{{#vardefine:info |
|||
</noinclude><includeonly><!--</includeonly><pre class="wiki-highlight">-->{{#invoke:tracklist|main}}<!--</pre><includeonly>--></includeonly> |
|||
|{{#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}}} }}{{#if: {{{all_producer|}}}|全碟监制:{{{all_producer}}} }}{{#switch: {{{all_note}}} | except | yes = <small>(下面注明例外曲目)</small> | {{{all_note|}}} }}{{#if: {{{all_note2}}} | {{{all_note2|}}} }} |
|||
}}<!-- |
|||
-->{{#vardefine:length_check<!-- 是否至少一个长度值不为空的检测参数 --> |
|||
|0 |
|||
}}<!-- |
|||
-->{{#forargs:length |
|||
| key |
|||
| val |
|||
| {{#ifeq:{{#var:val}} | | | <!-- |
|||
-->{{#ifeq:{{#var:length_check}} | 0 | {{#vardefine:length_check |1 }} | }} }}<!-- 是否至少一个长度值不为空,若是则设置检测参数为1 --> |
|||
}}<!-- |
|||
--><div class="tracklist" style="margin: -1px {{{reserve_width|290px}}} 0 0; min-width: 340px; {{#switch: {{{collapsed}}}|open|closed|yes = border: #aaa 1px solid; padding: 3px|padding: 4px}}"> |
|||
<table class="{{#switch: {{{collapsed}}}|closed|yes = mw-collapsible mw-collapsed|open = mw-collapsible }}" cellpadding="0" style="width: 100%;"> |
|||
<tr> |
|||
<th class="tlheadline" colspan="10" style="{{#switch: {{{headline_align|<!--/* 根据是否有全碟参数提出不同默认值 -->{{#if: {{#var:info}} | center | left }}<!-- */-->}}} | center = text-align: center; | right = text-align: right; padding-right: 3em; | #default = text-align: left; padding-left: 3em; }} background-color: #fff;">{{#if: {{{headline|}}}{{{1|}}} | {{{headline|}}}{{{1|}}} | 曲目列表 }}<!-- 左边是headline,右边是全碟参数 -->{{#if: {{#var:info|}} | <div style="font-weight: normal; ">{{#var:info}}</div>}}</th> |
|||
</tr> |
|||
{{#ifeq: {{{hidden}}} | yes |
|||
| <!-- 如果要求隐藏 --><tr> |
|||
<th colspan="10" style="text-align: left; background-color: #fff"> |
|||
<div style="padding-left: 2em">{{nobold|{{{hidden_note|}}} }}</div> |
|||
</th> |
|||
</tr> |
|||
| <!-- 否则 --><tr style="background-color: #eee"> |
|||
<th class="tlheader" scope="col" style="width: 3em;">{{nowrap|曲序}}</th> |
|||
<th class="tlheader" style="text-align: left;">曲目</th> |
|||
{{ #ifeq: {{{writing_credits|}}}|yes| |
|||
<th class="tlheader" style="text-align: left;">-{zh-hans:作词;zh-hant:填詞;zh-tw:作詞;}-及作曲</th> |
|||
|{{ #ifeq: {{{lyrics_credits|}}}|yes| |
|||
<th class="tlheader" style="text-align: left;">-{zh-hans:作词;zh-hant:填詞;zh-tw:作詞;}-</th> |
|||
}}{{ #ifeq: {{{music_credits|}}}|yes| |
|||
<th class="tlheader" style="text-align: left;">作曲</th> |
|||
}} |
|||
}}{{#ifeq: {{{arranger_credits|}}}|yes| |
|||
<th class="tlheader" style="text-align: left;">编曲</th> |
|||
}}{{#ifeq: {{{singer_credits|}}}|yes| |
|||
<th class="tlheader" style="text-align: left;">演唱</th> |
|||
}}{{#ifeq: {{{producer_credits|}}}|yes| |
|||
<th class="tlheader" style="text-align: left;">监制</th> |
|||
}}{{#if: {{{extra_column|}}} | |
|||
<th class="tlheader" style="text-align: left;">{{{extra_column}}}</th> |
|||
}}{{#ifeq: {{{longnote_column}}}|yes| |
|||
<th class="tlheader" style="text-align: left;">备注</th> |
|||
}}{{#ifeq:{{#var:length_check}} | 0 | | |
|||
<th class="tlheader" style="padding-right: 10px; text-align: right; width: 3em;">{{nowrap|时长}}</th> |
|||
}} |
|||
</tr> |
|||
{{#forargs:title |
|||
| key |
|||
| val |
|||
|{{Tracklist/Track |
|||
|switch_colour={{{switch_colour|}}} |
|||
|lyrics_credits={{{lyrics_credits|}}} |
|||
|music_credits={{{music_credits|}}} |
|||
|writing_credits={{{writing_credits|}}} |
|||
|arranger_credits={{{arranger_credits|}}} |
|||
|singer_credits={{{singer_credits|}}} |
|||
|producer_credits={{{producer_credits|}}} |
|||
|extra_column={{{extra_column|}}} |
|||
|longnote_column={{{longnote_column|}}} |
|||
|1={{#var:key|}} |
|||
|2={{#var:val|}} |
|||
|3={{{note{{#var:key|}}|}}} |
|||
|4={{{length{{#var:key|}}|}}} |
|||
|5={{{lyrics{{#var:key|}}|}}} |
|||
|6={{{music{{#var:key|}}|}}} |
|||
|7={{{writer{{#var:key|}}|}}} |
|||
|8={{{arranger{{#var:key|}}|}}} |
|||
|9={{{singer{{#var:key|}}|}}} |
|||
|10={{{producer{{#var:key|}}|}}} |
|||
|11={{{extra{{#var:key|}}|}}} |
|||
|12={{{longnote{{#var:key|}}|}}} |
|||
}} |
|||
}} |
|||
{{#ifeq: {{#var:length_check}} | 0 | | {{#widget:TracklistSongLengthCalc}} |
|||
<tr style="text-align: right; background-color: #fff"> |
|||
<td colspan="{{#expr: (2 |
|||
{{#ifeq: {{{writing_credits}}}|yes|+1| |
|||
{{#ifeq: {{{lyrics_credits}}}|yes|+1}} |
|||
{{#ifeq: {{{music_credits}}}|yes|+1}} |
|||
}} |
|||
{{#ifeq: {{{arranger_credits}}}|yes|+1}} |
|||
{{#ifeq: {{{singer_credits}}}|yes|+1}} |
|||
{{#ifeq: {{{producer_credits}}}|yes|+1}} |
|||
{{#if: {{{extra_column|}}}|+1}} |
|||
{{#ifeq: {{{longnote_column}}}|yes|+1}} |
|||
) }}"><div style="text-align: right; padding: 5px 0 5px 10px; margin: 0">'''总时长:'''</div></td> |
|||
<td style="text-align: right; padding: 5px 10px" class="total_length"> - </td> |
|||
</tr> |
|||
}} }} |
|||
<tr style="background-color: #fff"><td colspan="10">{{{more|}}}</td></tr> |
|||
</table></div></includeonly><noinclude> |
|||
{{Documentation}} |
|||
</noinclude> |
2021年3月13日 (六) 17:05的最新版本
模板文档
这个文档嵌入自模块:Tracklist/doc。
这个模板用于表示专辑收录曲目。
参数说明
总参数 | |
---|---|
headline | 列表标题 |
collapsed | 可选参数,非空时该模板可折叠,yes/closed时初始状态默认折叠 |
lyrics_credits | 非空时添加作词一栏 |
music_credits | 非空时添加作曲一栏 |
arranger_credits | 非空时添加编曲一栏 |
singer_credits | 非空时添加演唱者一栏 |
extra_column | 自定义栏标题 |
longnote_column | 非空时添加备注一栏 |
length | 非空时添加歌曲时长一栏 |
more | 补充说明 |
number | 非空时需要手动填写曲序一栏 |
firstNumber | 更改第一行的起始序号,默认为 1 |
display_cv | 非空时显示的演唱者从“角色(声优)”格式变为“声优(角色役)”格式 |
全碟参数 | |
all_writing | 全碟作词及作曲 |
all_music | 全碟作曲 |
all_lyrics | 全碟作词 |
all_arranger | 全碟编曲 |
all_singer | 全碟演唱 |
all_note | except/yes,与all_note2配套使用以添加例外曲目;或直接添加其他全碟备注 |
all_note2 | 例外曲目 |
分参数顺序(全部为匿名参数,按照表格内容的顺序依次填写即可,空单元格需要留空参数) | |
曲目标题 | 必需 |
曲目作词 | 需要lyrics_credits |
曲目作曲 | 需要music_credits |
曲目编曲 | 需要arranger_credits |
曲目演唱 | 需要singer_credits |
自定义栏目 | 需要extra_column |
曲目备注 | 需要longnote_column |
曲目时长 | 填“分:秒”例如4:01,需要length |
模板示范
{{tracklist | headline = CD | color = nijigaku | lyrics_credits = yes | music_credits = yes | arranger_credits= yes | singer_credits = yes | longnote_column = yes | number = yes | firstNumber = 2 | | [[無敵級*ビリーバー]] | Ayaka Miyake | DECO*27 | Rockwell | kasumi | | | [[未来ハーモニー]] | Kanata Okajima | Akira Sunset、ulala | ulala、Akira Sunset | nijigaku | | 5. | かすみのトキメキ{{ruby|祝祭|カーニバル}}! | | | | | {{lj|[ドラマパート]}} }}
CD | ||||||||
---|---|---|---|---|---|---|---|---|
曲序 | 曲目 | 作词 | 作曲 | 编曲 | 演唱 | 备注 | ||
2. | 無敵級*ビリーバー | Ayaka Miyake | DECO*27 | Rockwell | 中须霞(相良茉优) | |||
3. | 未来ハーモニー | Kanata Okajima | Akira Sunset、ulala | ulala、Akira Sunset | 虹咲学园学园偶像同好会 | |||
5. | かすみのトキメキ |
[ドラマパート] |
外部链接
本页面含有来自萌娘百科的文本,以CC BY-NC-SA 3.0授权引入。经过双方的修改,内容可能已与来源有很大差异。
-->{{#invoke:tracklist|main}}<!--