打开/关闭菜单
打开/关闭个人菜单
未登录
如果您进行任何编辑,您的IP地址会公开展示。

Template:Officialwebsite

模板页面

模板样式的src属性不得为空。

模板介绍[编辑源代码]

本模板用于在条目中添加官方网站的连结,它是规范的书写格式,请注意格式。本模板使用于条目的“外部链接”章节,信息框中应使用{{Official URL}}。

使用方法[编辑源代码]

代码 结果
{{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

如果该网站为了行动装置设有不同的网址,请将之填入此处

字符串可选
需要Flashformat

如果该网站需要Adobe Flash Player才能显示,请在本项参数填入“flash”

字符串可选

重定向[编辑源代码]

参见[编辑源代码]

我们提供服务需要使用Cookie。您使用我们的服务,即表示您同意我们使用Cookie。