模板样式的src
属性不得为空。
Warning | This template is used on approximately 30,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
模板介紹[编辑源代码]
本模板用于在条目中添加官方网站的連結,它是规范的书写格式,请注意格式。本模板使用于条目的“外部链接”章节,信息框中应使用{{Official URL}}。
使用方法[编辑源代码]
File:Wikidata-logo.svg | This template uses the Wikidata property: 脚本错误:没有“Uses Wikidata”这个模块。 |
代码 | 结果 |
---|---|
{{Official website}}
|
官方网站(维基数据上必须有d:Property:P856的URL值) |
{{Official website|example.org}}
|
脚本错误:没有“Official website”这个模块。 |
{{Official website|www.example.org}}
|
脚本错误:没有“Official website”这个模块。 |
{{Official website|//www.example.org}}
|
脚本错误:没有“Official website”这个模块。 |
{{Official website|http://www.example.org/}}
|
脚本错误:没有“Official website”这个模块。 |
{{Official website|https://www.example.org/}}
|
脚本错误:没有“Official website”这个模块。 |
{{Official website|1=http://www.example.org/?action=view}}
|
脚本错误:没有“Official website”这个模块。 |
{{Official website|http://www.example.org|name=Example}}
|
脚本错误:没有“Official website”这个模块。 |
{{Official website|example.org|mobile=http://m.example.org}}
|
脚本错误:没有“Official website”这个模块。 |
{{Official website|mobile=http://m.example.org|URL=example.org}}
|
脚本错误:没有“Official website”这个模块。 |
{{Official website|example.org|format=flash}}
|
脚本错误:没有“Official website”这个模块。 |
模板數據[编辑源代码]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.
TemplateData for Officialwebsite
本模板用于在条目中添加官方网站的連結。
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
網址 | 1 | 需要連結的網址 | 字符串 | 可选 |
顯示文字 | name | 連結要顯示的文字,若不指定將會顯示預設的「官方網站」
| 字符串 | 可选 |
行動版網址 | mobile | 如果該網站為了行動裝置設有不同的網址,請將之填入此處 | 字符串 | 可选 |
需要Flash | format | 如果該網站需要Adobe Flash Player才能顯示,請在本項參數填入「flash」 | 字符串 | 可选 |
重定向[编辑源代码]
- {{Official website}} = {{Official}} = {{官方网站}} = {{官网}}
參見[编辑源代码]
- {{Official websites}}
- {{URL}}