模板:TED talk/doc
| 此页面是Template:TED talk的模板文档。 此页面可能包含了模板的使用说明、分类和其他内容。 |
| 这是 TED talk 模板的说明文件页面。 本文件并不是为直接浏览而撰写。若是其中使用了跨维基计划连结,某些连结可能会显示损毁。请勿将这些连结替换为硬编码的页面名称或网址。 |
本模板产生一个链接到外部视频TED网站的通话页面。
使用模板
[编辑]Use one of:
{{TED talk}}{{TED talk | ID }}{{TED talk | ID | NAME }}{{TED talk | ID | NAME | SPEAKER }}{{TED talk | ID | NAME | SPEAKER | SPEAKERLINK}}
模板数据
[编辑]This template generates an external link to a speaker page at the TED website.
| 参数 | 描述 | 类型 | 状态 | |
|---|---|---|---|---|
| ID | 1 | ID string used in the URL. | 字符串 | 可选 |
| Name | 2 | Name displayed in the link text. If not specified it defaults to the article's {{PAGENAME}}, without disambiguation. | 字符串 | 可选 |
| Speaker | 3 | Name of speaker. Will link to this article if parameter 4 not specified | 字符串 | 可选 |
| Speaker link | 4 | Link to article about speaker, if disambiguated | 字符串 | 可选 |
范例
[编辑]The following example shows a link to the page for Tim Berners-Lee: A Magna Carta for the web:
https://www.ted.com/talks/tim_berners_lee_a_magna_carta_for_the_web
一个参数
[编辑]使用规则:
{{
TED talk | tim_berners_lee_a_magna_carta_for_the_web }}
结果模板:
二个参数
[编辑]使用规则:
{{
TED talk | tim_berners_lee_a_magna_carta_for_the_web | A Magna Carta for the web }}
结果模板:
三个参数
[编辑]使用规则:
{{
TED talk | tim_berners_lee_a_magna_carta_for_the_web | A Magna Carta for the web | Tim Berners-Lee }}
结果模板:
四个参数
[编辑]使用规则:
{{
TED talk | tim_berners_lee_a_magna_carta_for_the_web | A Magna Carta for the web | Tim Berners-Lee | Tim Berners-Lee (example) }}
结果模板: