模板:Official website
頁面Module:Documentation/styles.css沒有內容。
Template:Lua 腳本錯誤:沒有「High-use」這個模塊。 package.lua第80行Lua錯誤:module 'Module:CGroup/core' not found
模板介紹[編輯]
本模板用於在條目中添加官方網站的連結,它是規範的書寫格式,請注意格式。本模板使用於條目的「外部連結」章節,信息框中應使用{{Official URL}}。
使用方法[編輯]
頁面Module:Side box/styles.css沒有內容。頁面Template:Sister project/styles.css沒有內容。| 代碼 | 結果 |
|---|---|
{{Official website}}
|
官方網站(維基數據上必須有d:Property:P856的URL值) |
{{Official website|example.org}}
|
官方網站 |
{{Official website|www.example.org}}
|
官方網站 |
{{Official website|//www.example.org}}
|
官方網站 |
{{Official website|http://www.example.org/}}
|
官方網站 |
{{Official website|https://www.example.org/}}
|
官方網站 |
{{Official website|1=http://www.example.org/?action=view}}
|
官方網站 |
{{Official website|http://www.example.org|name=Example}}
|
Example |
{{Official website|example.org|mobile=http://m.example.org}}
|
官方網站 (行動端) |
{{Official website|mobile=http://m.example.org|URL=example.org}}
|
官方網站 (行動端) |
{{Official website|example.org|format=flash}}
|
官方網站 頁面Template:Color/styles.css沒有內容。(需要Adobe Flash Player) |
模板數據[編輯]
<TemplateData> { "description": "本模板用於在條目中添加官方網站的連結。", "params": { "1": { "label": "網址", "description": "需要連結的網址", "type": "string" }, "name": { "label": "顯示文字", "description": "連結要顯示的文字,若不指定將會顯示預設的「官方網站」", "type": "string", "default": "官方網站", "required": false }, "mobile": { "label": "行動版網址", "description": "如果該網站為了行動裝置設有不同的網址,請將之填入此處", "type": "string", "required": false }, "format": { "label": "需要Flash", "description": "如果該網站需要Adobe Flash Player才能顯示,請在本項參數填入「flash」", "type": "string", "required": false } }, "format": "inline" } </TemplateData>
重定向[編輯]
- {{Official website}} = {{Official}} = {{官方網站}} = {{官網}}
參見[編輯]
- {{Official websites}}
- {{URL}}