编辑“︁
Template:Listen/doc
”︁
跳转到导航
跳转到搜索
Template:Editnotice load/content
警告:
您没有登录。如果您进行任何编辑,您的IP地址会公开展示。如果您
登录
或
创建账号
,您的编辑会以您的用户名署名,此外还有其他益处。
反垃圾检查。
不要
加入这个!
{{Documentation subpage}} {{lua|模組:Listen}} {{Uses TemplateStyles|Module:Listen/styles.css}} 本模板連結至「'''位於中文維基百科或[[維基共享資源]]'''」的音訊檔案。在文章中使用本模板,可讓讀者聆聽輔助文章內容的音訊檔案。要使用本模板,請參閱以下說明: *重定向:{{tl|聽}} = {{tl|Listen}} = {{tl|試聽}} = {{tl|聆聽}}。 ==用法== <pre style="overflow: auto">-{}-{{Listen |filename = 檔案名稱.副檔名 |title = 檔案標題 |description = 檔案的描述 |pos = 填入left或right控制左右 |image = 填入[[File:Example.jpg|50px]] |style = 模板的樣式 |play = 填入yes啟用另一種顯示方式 |plain = 填入yes或no決定是否帶邊框 |embed = 填入yes或no決定是否嵌入資訊框 }}</pre> 其中<code>|filename=</code>參數的檔案格式必須是[[commons:Commons:File types#Sound|音訊]]檔案。 ===多重檔案=== <pre style="overflow: auto">-{}- {{Listen |filename = |title = |alt = |description = |filename2 = |title2 = |alt2 = |description2 = |filename3 = |title3 = |alt3 = |description3 = }}</pre> ==範例== :<code><nowiki>{{Listen|filename=Accordion chords-01.ogg|title=手風琴和絃|description=用手風琴彈奏的和絃|pos=left}} </nowiki></code> {{Listen|left|filename=Accordion chords-01.ogg|title=手風琴和絃|description=用手風琴彈奏的和絃|pos=left}} {{-}} == 模板数据 == {{collapse top|title=模板数据}} {{TemplateData header}} <templatedata> { "description": "Allows audio and video files to be embedded in articles.", "format": "{{_\n| ____________ = _\n}}\n", "params": { "header": { "label": "Header", "description": "Text or other content to go above all the files in the template (but within the template boundary). Allows markup.", "type": "content" }, "type": { "label": "Music or speech icon", "description": "Enter \"music\" or \"speech\" here to change the template icon to a speaker with music notes or a microphone.", "type": "line", "example": "music", "default": "sound", "suggestedvalues": [ "sound", "music", "speech" ] }, "image": { "label": "Custom icon", "description": "Custom image to replace the speaker icon in the template. Alternatively, enter \"none\" here to hide the icon entirely.", "type": "wiki-file-name", "example": "[[File:Example.jpg|50px]], none" }, "filename": { "label": "Filename", "description": "The filename of the file. Filename2, filename3, etc. can be used for subsequent files.", "type": "wiki-file-name", "required": true }, "title": { "label": "Title", "description": "The title to display for the file. Title2, title3, etc. can be used for subsequent files.", "type": "string", "required": true }, "description": { "label": "Description", "description": "A description of the file. Description2, description3, etc. can be used for subsequent files.", "type": "string", "suggested": true }, "start": { "label": "Start time", "description": "Timestamp at which the first file should start playing (start2, start3, etc. can be used for subsequent files)", "type": "line", "example": "0:20" }, "length": { "label": "Hide duration?", "description": "Enter \"hide\" here to hide the duration of the first file (length2, length3, etc. can be used for subsequent files).", "type": "line", "example": "hide" }, "play": { "label": "Hide player?", "description": "Enter \"no\" here to hide the file player for the first file (play2, play3, etc. can be used for subsequent files). To be used for some media files that cannot be displayed inline, to prevent a broken inline link from showing.", "type": "line", "example": "no" }, "help": { "label": "Hide help text?", "description": "Enter \"no\" here to hide the \"Problems playing this file? See media help.\" text at the bottom of the template. Must not be done on the first instance of the template; optional on subsequent instances of the template.", "type": "line", "example": "no" }, "pos": { "label": "Position", "description": "Enter \"left\" or \"center\" here to change the default position of the template from on the right.", "type": "line", "example": "left", "default": "right", "suggestedvalues": [ "left", "center", "right" ] }, "plain": { "label": "Plain style?", "description": "Enter \"yes\" here to remove most of the ornamentation (border, background, icon and help text) and the float/positioning of the template to give a minimalist version, allowing the user to use the custom CSS (\"style\") parameter to style and position the template.", "type": "line", "example": "yes" }, "embed": { "label": "Optimise for embedding?", "description": "Enter any text here to remove the left, right and bottom border, the background, the icon, the help text and the padding of the template for use in an infobox.", "type": "line", "example": "y" }, "style": { "label": "Custom CSS", "description": "Custom CSS for the template", "type": "content", "example": "float:none; clear:none" } }, "paramOrder": [ "header", "type", "image", "filename", "title", "description", "start", "length", "play", "help", "pos", "plain", "embed", "style" ] } </templatedata> {{collapse bottom}} == 參見 == * {{tl|Listen interwiki}},與本模板類似,適用於位於其他語言版本維基百科上的音訊檔案。 * {{tl|Audio}},與本模板功能類似的另一個模板,主要以直接將音訊檔案插入文字行中。 * {{tl|Pronunciation}},與本模板功能類似的另一個模板,用於發音說明等用途。 {{Film and Television related infobox templates}} <includeonly>{{Sandbox other|| [[Category:音訊模板]] }} </includeonly>
摘要:
请注意,所有对Local Chinese Wikipedia的贡献均可能会被其他贡献者编辑、修改或删除。如果您不希望您的文字作品被随意编辑,请不要在此提交。
您同时也向我们承诺,您提交的内容为您自己所创作,或是复制自公共领域或类似自由来源(详情请见
Project:著作权
)。
未经许可,请勿提交受著作权保护的作品!
取消
编辑帮助
(在新窗口中打开)
导航菜单
个人工具
未登录
讨论
贡献
创建账号
登录
命名空间
模板
讨论
大陆简体
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
臺灣正體
查看
阅读
编辑
查看历史
更多
搜索
导航
首页
最近更改
随机页面
MediaWiki帮助
工具
链入页面
相关更改
特殊页面
页面信息