模板樣式的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}}