LLWiki正在建設中,歡迎加入我們

「Template:Tracklist」修訂間的差異

出自LLWiki
跳至導覽 跳至搜尋
(// Edit via Wikiplus)
 
(未顯示由 2 位使用者於中間所作的 15 次修訂)
第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;"><span style="white-space:nowrap;">曲序</span></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;"><span style="white-space:nowrap;">时长</span></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 的最新修訂

Template-info.png 模板文檔
這個文檔嵌入模塊: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 Sunsetulala ulalaAkira Sunset 虹咲學園學園偶像同好會
5. かすみのトキメキ祝祭カーニバル [ドラマパート]

外部連結

本頁面含有來自萌娘百科的文本,以CC BY-NC-SA 3.0授權引入。經過雙方的修改,內容可能已與來源有很大差異。

-->{{#invoke:tracklist|main}}<!--