模板:Infobox software/doc:修订间差异
小 导入1个版本 |
小 导入1个版本 |
(没有差异)
|
2025年5月1日 (四) 21:15的最新版本
文件:Edit-copy green.svg | This is a documentation subpage for 模板:Terminate sentence It may contain usage information, categories and other content that is not part of the original 模板 page. |
Warning | This template is used on approximately 14,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. |
文件:Ambox warning yellow.svg | 本模板含有複雜而精密的扩展语法。 編輯本模板前,建議您先熟悉解析器函數与本模板的设计思路、运作原理等。若您的編輯引發了意外的問題,請儘快撤銷編輯,因為本模板可能被大量頁面使用。 您所作的编辑可先在模板沙盒或您的个人页面中进行測試。 |
文件:Lua-Logo.svg | This template uses Lua: |
用法[编辑源代码]
选择性地複製以下空白原始碼,并将其放在軟體條目頁面的頂端。
[[File:{{{logo}}}|frameless|alt={{{logo alt}}}|upright=0.55]] {{{logo caption}}} | |
[[File:{{{screenshot}}}|{{{screenshot size}}}|alt={{{screenshot alt}}}|upright=1]] {{{caption}}} | |
Other names | {{{other_names}}} |
---|---|
Original author(s) | {{{author}}} |
Developer(s) | {{{developer}}} |
Initial release | {{{released}}} |
Repository | {{{repo}}} |
Written in | {{{programming language}}} |
Middleware | {{{middleware}}} |
Engine | {{{engine}}} |
Operating system | {{{operating system}}} |
Platform | {{{platform}}} |
Included with | {{{included with}}} |
Predecessor | {{{replaces}}} |
Successor | {{{replaced_by}}} |
Service name | {{{service_name}}} |
Size | {{{size}}} |
Standard(s) | {{{standard}}} |
Available in | {{{language count}}} languages{{{language footnote}}} |
List of languages {{{language}}} | |
Type | {{{genre}}} |
License | {{{license}}} |
Website | {{{website}}} |
As of | {{{AsOf}}} |
{{Infobox software
| name =
| logo = <!-- 只填图片名 -->
| logo alt =
| logo caption =
| screenshot = <!-- 只填图片名 -->
| screenshot-hans = <!-- 圖片分為簡繁兩版時,填寫簡體版圖片名 -->
| screenshot-hant = <!-- 圖片分為繁簡兩版時,填寫繁體版圖片名 -->
| screenshot size =
| screenshot alt =
| caption =
| collapsible = <!-- 填写任意文本均会折叠截图,只允許「screenshot」或「screenshot-hans」、「screenshot-hant」參數是自由版權時才能隱藏截圖 -->
| author =
| developer =
| released = <!-- {{Start date and age|YYYY|MM|DD}} -->
| repo = <!-- {{URL|example.org}} 如果留空,会自动从wikidata填充 -->
| programming language =
| middleware =
| engine = <!-- 或 engines 如果留空,会自动从wikidata填充-->
| operating system =
| platform =
| included with =
| size =
| language =
| language count = <!-- 仅数字 -->
| language footnote =
| genre =
| license = <!-- 如果留空,会自动从wikidata填充 -->
| website = <!-- {{URL|example.org}} 如果留空,会自动从wikidata填充 -->
| standard =
| AsOf =
| latest release = <!-- 如果留空,会自动从wikidata填充 -->
| latest release qid = <!-- latest release使用的wikidata的Q标识符,默认为条目对应的Q标识符 -->
| hide latest release = <!-- 是否隐藏latest release,默认为no -->
| discontinued = <!-- 如果软件已停产,则设为“yes”,否则省略 -->
}}
範例[编辑源代码]
文件:Yoyo patent 1866.png Yoyodyne v0.9 截圖 | |
Developer(s) | Yoyodyne Industries Inc. |
---|---|
Initial release | 1911 |
Repository |
|
Engine | |
Operating system | Unix-like |
Size | 25 MB |
Type | Yoyonics |
License | GNU General Public License |
Website | www |
{{Infobox Software
| name = Example: Yoyodyne
| logo =
| screenshot = [[File:Yoyo patent 1866.png|200px]]
| caption = Yoyodyne v0.9 screenshot
| developer = Yoyodyne Industries Inc.
| released = {{Start date|1911}}
| latest release = 0.9({{Start date and age|2006|01|01}})
| operating system = [[Unix-like]]
| size = 25 [[Megabyte|MB]]
| genre = Yoyonics
| license = [[GNU General Public License]]
| website = {{URL|www.example.org}}
}}
參數[编辑源代码]
TemplateData for Infobox software
在计算机软件中使用的信息框。
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
标题 | title | 若未指定,则使用‘name’参数或 PAGENAME。 | 字符串 | 可选 |
名称 | name | 标题未指定时使用的名称。
| 单行文本 | 可选 |
标志 | logo | 标志(图像)的文件名。
| 文件 | 可选 |
标志尺寸 | logo_size | 无描述
| 单行文本 | 可选 |
标志的替代文本 | logo_alt | 无描述 | 单行文本 | 可选 |
标志的标题 | logo caption | 如果只是简单的‘X 的标志’,那么直接留空更好。保留用于特殊情况,如说明一些必要的情况或用于插入 {{ffdc}} 或 {{deletable image-caption}}。 | wikitext片段 | 可选 |
截图 | screenshot | 截图的文件名。
| 文件 | 可选 |
简体版截图 | screenshot-hans | 简体版截图的文件名。
| 文件 | 可选 |
繁体版截图 | screenshot-hant | 繁体版截图的文件名。
| 文件 | 可选 |
截图尺寸 | screenshot_size | 无描述
| 单行文本 | 可选 |
截图的替代文本 | screenshot_alt | 无描述 | 单行文本 | 可选 |
截图的标题 | caption | 无描述 | 单行文本 | 可选 |
可折叠 | collapsible | 当本截图默认隐藏时,设为‘yes’以在可折叠区域中显示截图,不建議在合理使用的軟體截圖上使用"collapsible"參數,詳見Wikipedia:非自由内容使用准则#8。 | 单行文本 | 可选 |
原作者 | author | 软件的原始作者或发布者名。可以是个人或组织机构名。多数情况下指定了开发者字段后才会用到该参数。 | 字符串 | 可选 |
开发者 | developer | 软件目前的开发者名。可以是个人或组织机构名称。 | 字符串 | 可选 |
首次发布 | released | 在软件开发到正式发布(RTM)阶段时发布 1.0 版本(或最接近版本)的日期。如果条目是有关某个主流版本的内容(如 Internet Explorer 8 或 Microsoft Office 2007),则该字段应包含该主流版本正式发布(即到达 RTM 阶段)的日期。如果软件仍在开发中且尚未正式发布,请忽略该字段,即不要使用该字段指定首个预览版或测试版的发布日期,因为已经存在该用途的参数。该字段的格式应类似:{{Start date and age|year|month|day}}。如果条目使用 DMY 的日期格式,请相应替换为:{{Start date and age|year|month|day}} 。如果您不确定日期格式,请参考 WP:MOSDATES。 | wikitext片段 | 可选 |
最新版本 | latest release | 该软件最新发布的版本号和发布日期,如‘1.0.0({{Start date and age|year|month|day}})’。 | wikitext片段 | 可选 |
最新版本的qid | latest release qid | latest release使用的wikidata的Q标识符,默认为条目对应的Q标识符。 | 单行文本 | 可选 |
隐藏最新版本 | hide latest release | 是否隐藏latest release,默认为no。 | 单行文本 | 可选 |
编程语言 | programming language programming_language | 编写软件的语言。如果该语言在维基百科中有相应条目,请加上链接,如 [[C++]]、[[Python]]。 | wikitext片段 | 可选 |
操作系统 | operating system operating_system | 软件适用的操作系统。请尽可能准确指明(同时也注意长度)、避免模糊的表达,如跨平台、多平台。对于可运行于 unix/linux 所有版本的软件可使用‘[[Unix-like]]’,对于适用 Windows 平台的则可使用‘[[Microsoft Windows]]’、‘[[Windows]]’或‘[[Windows XP]] 及更高版本’。如果软件是与操作系统无关的网页程序,则忽略此参数。 | 字符串 | 可选 |
平台 | platform | 软件运行的计算平台。可以指定处理器,如‘[[IA-32]]’(i386)、‘[[x86-64]]’、‘Itanium’、‘ARM’或‘MIPS’。 | wikitext片段 | 可选 |
安装包大小 | size | 安装包大小。只适用于可下载的软件。如‘{{Nowrap|48 MB}}’。 | wikitext片段 | 可选 |
语言 | language | 软件用户界面支持的自然语言列表。不要使用‘多语言’或类似的模糊说法。 | 字符串 | 可选 |
支持语言数 | language count | 软件用户界面支持的自然语言数。 | 数字 | 可选 |
对支持语言的脚注 | language footnote | 该参数用于提供可用翻译的引文。 | 字符串 | 可选 |
类型 | genre | 程序类型。应该内部链接到其他条目。更多信息请参考软件分类列表。
| wikitext片段 | 可选 |
许可证 | license | 允许消费者使用软件的许可证类型。
| wikitext片段 | 可选 |
licence | licence | Alternative to license for articles using Commonwealth English. | 字符串 | 可选 |
代码库 | repo | 软件[[仓库 (版本控制)|代码库]]的網址。格式:{{URL|http://www.example.com/repo}}。 | 字符串 | 可选 |
网站 | website | 软件包网站的网址。格式:{{URL|http://www.example.com}}。 | wikitext片段 | 可选 |
技术标准 | standard | 软件的技术标准。 | 字符串 | 可选 |
AsOf | AsOf | Month Year. | 字符串 | 可选 |
bodystyle | bodystyle | 应用于信息框整体的 CSS 样式。 | 字符串 | 可选 |
是否停产 | discontinued | 如果软件已停产,则设为“yes”,否则省略。
| 字符串 | 可选 |
内置于 | included with included_with | 无描述 | 字符串 | 可选 |
中间件 | middleware | 软件的中间件。 | 字符串 | 可选 |
别名 | other_names | 其它的名称 | 字符串 | 可选 |
微格式[编辑源代码]
此模板產生的HTML标记包含了hCalendar微格式,能夠讓電腦解析事件的详情,便于维基百科将该条目归类,或让用户通过浏览器将该事件添加进日历或日记应用程序中。關於微格式的更多使用資訊,請參閱維基百科的微格式專題。
日期只会在使用了{{Start date}}或{{End date}}的情况下显示,URL只会在使用了{{Url}}的情况下被包含。
hCalendar使用的HTML class包括:
- attendee
- contact
- description
- dtend
- dtstart
- location
- organiser
- summary
- url
- vevent
請勿移除或修改這些class,也請勿更改或移除有相關設定之模板及設定。
追踪模板[编辑源代码]
參見[编辑源代码]
- {{Infobox OS}}:操作系統專用
- {{Infobox VG}}:電子遊戲專用
- {{Infobox programming language}}:编程语言专用