跳转到内容
打开/关闭菜单
  • 451 条目
  • 806 文件
  • 22 用户
  • 9167 编辑
Blockland Wiki
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

模板:Infobox Songs:修订间差异

来自Blockland Wiki
ETTW​(留言 | 贡献)
创建页面,内容为“<infobox> <title source="title"> <default>{{PAGENAME}}</default> </title> <header>封面</header> <image source="image"/> <header>歌曲文件</header> <data source="song_file"> <label>歌曲文件</label> </data> <header>基本信息</header> <data source="artist"> <label>艺术家</label> </data> <data source="song_name"> <label>歌曲名称</label> </data> <data source="relea…”
 
ETTW​(留言 | 贡献)
无编辑摘要
第1行: 第1行:
<infobox>
    <title source="title">
        <default>{{PAGENAME}}</default>
    </title>
    <header>封面</header>
    <image source="image"/>
    <header>歌曲文件</header>
    <data source="song_file">
        <label>歌曲文件</label>
    </data>
    <header>基本信息</header>
    <data source="artist">
        <label>艺术家</label>
    </data>
    <data source="song_name">
        <label>歌曲名称</label>
    </data>
    <data source="release_date">
        <label>发行日期</label>
    </data>
    <data source="genre">
        <label>音乐类型</label>
    </data>
    <data source="length">
        <label>时长</label>
    </data>
    <data source="label">
        <label>厂牌</label>
    </data>
    <header>排行榜成绩</header>
    <data source="chart_positions">
        <label>排行榜位置</label>
    </data>
    <data source="certifications">
        <label>认证</label>
    </data>
    <header>其他信息</header>
    <data source="remarks">
        <label>备注</label>
    </data>
</infobox>
<comments></comments>
<noinclude>
<noinclude>
<templatedata>
这是一个用于展示单曲信息的标准 infobox 模板。
{
使用方式:
"description": "用于展示单首歌曲信息的 infobox 模板。",
{{歌曲信息框
"params": {
| title        = 歌曲名称(默认页面名)
"title": {
| image       = 封面文件名(不含 File: 前缀)
"label": "标题",
| song_file   = 歌曲文件链接或 URL
"description": "歌曲名称",
| artist       = 艺术家(必填)
"type": "content",
| song_name   = 歌曲正式名称(必填)
"default": "{{PAGENAME}}",
| release_date = 发行日期
"required": false
| genre       = 音乐类型
},
| length       = 时长
"image": {
| label       = 厂牌
"label": "封面图",
| chart_positions = 排行榜位置
"description": "歌曲的封面图像",
| certifications = 认证
"type": "wiki-file-name",
| remarks     = 备注
"required": false
}}
},
"song_file": {
"label": "歌曲文件",
"description": "歌曲的音频文件或下载链接",
"type": "url",
"required": false
},
"artist": {
"label": "艺术家",
"description": "演唱该歌曲的艺术家或乐队",
"type": "string",
"required": true
},
"song_name": {
"label": "歌曲名称",
"description": "歌曲的正式名称",
"type": "string",
"required": true
},
"release_date": {
"label": "发行日期",
"description": "歌曲的发行日期",
"type": "string",
"required": false
},
"genre": {
"label": "音乐类型",
"description": "歌曲的音乐类型(如:流行、摇滚等)",
"type": "string",
"required": false
},
"length": {
"label": "时长",
"description": "歌曲的时长",
"type": "string",
"required": false
},
"label": {
"label": "厂牌",
"description": "歌曲所属的厂牌",
"type": "string",
"required": false
},
"chart_positions": {
"label": "排行榜位置",
"description": "歌曲在各大排行榜的排名",
"type": "string",
"required": false
},
"certifications": {
"label": "认证",
"description": "歌曲获得的认证(如金唱片、白金唱片等)",
"type": "string",
"required": false
},
"remarks": {
"label": "备注",
"description": "其他相关信息",
"type": "string",
"required": false
}
}
}
</templatedata>
</noinclude>
</noinclude>
{| class="wikitable infobox" style="float: right; margin-left: 1em; width: 280px; font-size: 90%;"
! colspan="2" style="text-align: center; font-size: larger;" | {{{title|{{PAGENAME}}}}}
|-
{{#if:{{{image|}}}|
! colspan="2" style="text-align: center;" | [[File:{{{image}}}|frameless|280px]]
|
}}
|-
! colspan="2" style="text-align: center; background-color: #f0f0f0;" | 歌曲文件
|-
{{#if:{{{song_file|}}}|
! colspan="2" style="text-align: center;" | {{{song_file}}}
|
}}
|-
! colspan="2" style="text-align: center; background-color: #f0f0f0;" | 基本信息
|-
{{#if:{{{artist|}}}|
! 艺术家
| {{{artist}}}
|
}}
{{#if:{{{song_name|}}}|
! 歌曲名称
| {{{song_name}}}
|
}}
{{#if:{{{release_date|}}}|
! 发行日期
| {{{release_date}}}
|
}}
{{#if:{{{genre|}}}|
! 音乐类型
| {{{genre}}}
|
}}
{{#if:{{{length|}}}|
! 时长
| {{{length}}}
|
}}
{{#if:{{{label|}}}|
! 厂牌
| {{{label}}}
|
}}
|-
! colspan="2" style="text-align: center; background-color: #f0f0f0;" | 排行榜成绩
|-
{{#if:{{{chart_positions|}}}|
! 排行榜位置
| {{{chart_positions}}}
|
}}
{{#if:{{{certifications|}}}|
! 认证
| {{{certifications}}}
|
}}
|-
! colspan="2" style="text-align: center; background-color: #f0f0f0;" | 其他信息
|-
{{#if:{{{remarks|}}}|
! 备注
| {{{remarks}}}
|
}}
|}
<noinclude>
[[分类:单曲]]
[[分类:单曲]]
[[分类:歌曲]]
[[分类:歌曲]]
</noinclude>

2026年6月3日 (三) 18:22的版本

这是一个用于展示单曲信息的标准 infobox 模板。 使用方式: 模板:歌曲信息框

[[File:{{{image}}}|frameless|280px]] {{{song_file}}} {{{artist}}} {{{song_name}}} {{{release_date}}} {{{genre}}} {{{length}}} {{{label}}} {{{chart_positions}}} {{{certifications}}} {{{remarks}}}
Infobox Songs
歌曲文件
基本信息
排行榜成绩
其他信息