模板:Infobox software/doc

维基百科,自由的百科全书
(差异) ←上一修订 | 最后版本 (差异) | 下一修订→ (差异)
跳转到导航 跳转到搜索

用法[编辑]

选择性地复制以下空白源代码,并将其放在软件条目页面的顶端。

{{{name}}}
[[File:{{{logo}}}|frameless|alt={{{logo alt}}}|upright=0.55|{{{logo alt}}}]]
{{{logo caption}}}
[[File:{{{screenshot}}}|{{{screenshot size}}}|alt={{{screenshot alt}}}|upright=1|{{{caption}}}]]
{{{caption}}}
其他名称{{{other_names}}}
原作者{{{author}}}
开发者{{{developer}}}
首次发布{{{released}}}
当前版本{{{latest release}}}
源代码库{{{repo}}}
编程语言{{{programming language}}}
中间件{{{middleware}}}
引擎{{{engine}}}
操作系统{{{operating system}}}
平台{{{platform}}}
内置于{{{included with}}}
前任{{{replaces}}}
继任{{{replaced_by}}}
服务名称{{{service_name}}}
文件大小{{{size}}}
标准{{{standard}}}
语言{{{language count}}}种语言{{{language footnote}}}
语言列表
{{{language}}}
类型{{{genre}}}
许可协议{{{license}}}
网站{{{website}}}
数据截至{{{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”,否则省略 -->
}}

范例[编辑]

Example: Yoyodyne
File:Yoyo patent 1866.png
Yoyodyne v0.9 截图
开发者Yoyodyne Industries Inc.
首次发布1911年,​115年前​(1911
当前版本0.9(2006年1月1日,​20年前​(2006-01-01
源代码库
  • {{URL|example.com|可选的显示文本}}
Module:EditAtWikidata第29行Lua错误:attempt to index field 'wikibase' (a nil value)
引擎
    Module:EditAtWikidata第29行Lua错误:attempt to index field 'wikibase' (a nil value)
    操作系统Unix-like
    文件大小25 MB
    类型Yoyonics
    许可协议GNU General Public License
    网站www.example.org
    {{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&nbsp;[[Megabyte|MB]]
    | genre                  = Yoyonics
    | license                = [[GNU General Public License]]
    | website                = {{URL|www.example.org}}
    }}
    

    参数[编辑]

    以下是该模板的模板数据,适用于可视化编辑器等工具。

    Infobox software模板数据

    <templatedata> { "description": "在计算机软件中使用的信息框。", "params": { "title": { "label": "标题", "description": "若未指定,则使用“name”参数或 PAGENAME。", "type": "string", "required": false }, "name": { "label": "名称", "description": "标题未指定时使用的名称。", "default": "PAGENAME", "type": "line", "required": false }, "logo": { "label": "标志", "description": "标志(图像)的文件名。", "type": "wiki-file-name", "required": false, "example": "The GIMP icon - gnome.svg" }, "logo_size": { "label": "标志尺寸", "type": "line", "required": false, "example": "64px" }, "logo_alt": { "label": "标志的替代文本", "type": "line", "required": false }, "logo caption": { "label": "标志的标题",

    "description": "如果只是简单的“X 的标志”,那么直接留空更好。保留用于特殊情况,如说明一些必要的情况或用于插入 Template:Ffdc


    本文件可能会被随时删除。

    1. REDIRECT T:Dated maintenance category

    。", "type": "unbalanced-wikitext", "required": false }, "screenshot": { "label": "截图", "description": "截图的文件名。", "type": "wiki-file-name", "required": false, "example": "GIMP_screenshot.png" }, "screenshot_size": { "label": "截图尺寸", "type": "line", "required": false, "example": "300px" }, "screenshot_alt": { "label": "截图的替代文本", "type": "line", "required": false }, "caption": { "label": "截图的标题", "type": "line", "required": false }, "collapsible": { "label": "可折叠", "description": "当本截图默认隐藏时,设为“yes”以在可折叠区域中显示截图,不建议在合理使用的软件截图上使用\"collapsible\"参数,详见Wikipedia:非自由内容使用准则#8。", "type": "line", "required": false }, "author": { "label": "原作者", "description": "软件的原始作者或发布者名。可以是个人或组织机构名。多数情况下指定了开发者字段后才会用到该参数。", "type": "string", "required": false }, "developer": { "label": "开发者", "description": "软件目前的开发者名。可以是个人或组织机构名称。", "type": "string", "required": false }, "released": { "label": "首次发布", "description": "在软件开发到正式发布(RTM)阶段时发布 1.0 版本(或最接近版本)的日期。如果条目是有关某个主流版本的内容(如 Internet Explorer 8 或 Microsoft Office 2007),则该字段应包含该主流版本正式发布(即到达 RTM 阶段)的日期。如果软件仍在开发中且尚未正式发布,请忽略该字段,即不要使用该字段指定首个预览版或测试版的发布日期,因为已经存在该用途的参数。该字段的格式应类似:year年表达式错误:无法识别词语“day”。,​错误:第一个参数不能被解析为日期或时间。​(year-month-day。如果条目使用 DMY 的日期格式,请相应替换为:year年表达式错误:无法识别词语“day”。,​错误:第一个参数不能被解析为日期或时间。​(year-month-day 。如果您不确定日期格式,请参考 WP:MOSDATES。", "type": "unbalanced-wikitext", "required": false }, "latest release": { "label": "最新版本", "description": "该软件最新发布的版本号和发布日期,如“1.0.0(year年表达式错误:无法识别词语“day”。,​错误:第一个参数不能被解析为日期或时间。​(year-month-day)”。", "type": "unbalanced-wikitext", "required": false }, "latest release qid": { "label": "最新版本的qid", "description": "latest release使用的wikidata的Q标识符,默认为条目对应的Q标识符。", "type": "line", "required": false }, "hide latest release": { "label": "隐藏最新版本", "description": "是否隐藏latest release,默认为no。", "type": "line", "required": false }, "programming language": { "label": "编程语言", "description": "编写软件的语言。如果该语言在维基百科中有相应条目,请加上链接,如 C++Python。", "type": "unbalanced-wikitext", "aliases": [ "programming_language" ], "required": false }, "operating system": { "label": "操作系统", "description": "软件适用的操作系统。请尽可能准确指明(同时也注意长度)、避免模糊的表达,如跨平台、多平台。对于可运行于 unix/linux 所有版本的软件可使用“Unix-like”,对于适用 Windows 平台的则可使用“Microsoft Windows”、“Windows”或“Windows XP 及更高版本”。如果软件是与操作系统无关的网页程序,则忽略此参数。", "type": "string", "aliases": [ "operating_system" ], "required": false }, "platform": { "label": "平台", "description": "软件运行的计算平台。可以指定处理器,如“IA-32”(i386)、“x86-64”、“Itanium”、“ARM”或“MIPS”。", "type": "unbalanced-wikitext", "required": false }, "size": { "label": "安装包大小", "description": "安装包大小。只适用于可下载的软件。如“48 MB”。", "type": "unbalanced-wikitext", "required": false }, "language": { "label": "语言", "description": "软件用户界面支持的自然语言列表。不要使用“多语言”或类似的模糊说法。", "type": "string", "required": false }, "language count": { "label": "支持语言数", "description": "软件用户界面支持的自然语言数。", "type": "number", "required": false }, "language footnote": { "label": "对支持语言的脚注", "description": "该参数用于提供可用翻译的引文。", "type": "string", "required": false }, "genre": { "label": "类型", "description": "程序类型。应该内部链接到其他条目。更多信息请参考软件分类列表。", "type": "unbalanced-wikitext", "required": false, "example": "桌面搜索" }, "license": { "label": "许可证", "description": "允许消费者使用软件的许可证类型。", "type": "unbalanced-wikitext", "required": false, "example": "专有" }, "licence": { "label": "licence", "description": "Alternative to license for articles using Commonwealth English.", "type": "string", "required": false }, "repo": { "label": "代码库", "description": "软件代码库的网址。格式:www.example.com/repo。", "type": "string", "required": false }, "website": { "label": "网站", "description": "软件包网站的网址。格式:www.example.com。", "type": "unbalanced-wikitext", "required": false }, "standard": { "label": "技术标准", "description": "软件的技术标准。", "type": "string", "required": false }, "AsOf": { "label": "AsOf", "description": "Month Year.", "type": "string", "required": false }, "bodystyle": { "label": "bodystyle", "description": "应用于信息框整体的 CSS 样式。", "type": "string", "required": false }, "screenshot-hans": { "label": "简体版截图", "description": "简体版截图的文件名。", "example": "GIMP_screenshot_(zh-hans).png", "type": "wiki-file-name" }, "screenshot-hant": { "label": "繁体版截图", "description": "繁体版截图的文件名。", "example": "GIMP_screenshot_(zh-hant).png", "type": "wiki-file-name" }, "discontinued": { "label": "是否停产", "description": "如果软件已停产,则设为“yes”,否则省略。", "example": "yes", "type": "string" }, "included with": { "aliases": [ "included_with" ], "label": "内置于", "type": "string" }, "middleware": { "label": "中间件", "description": "软件的中间件。", "type": "string" }, "other_names": { "label": "别名", "description": "其它的名称", "type": "string" } }, "format": "block", "paramOrder": [ "title", "name", "logo", "logo_size", "logo_alt", "logo caption", "screenshot", "screenshot-hans", "screenshot-hant", "screenshot_size", "screenshot_alt", "caption", "collapsible", "author", "developer", "released", "latest release", "latest release qid", "hide latest release", "programming language", "operating system", "platform", "size", "language", "language count", "language footnote", "genre", "license", "licence", "repo", "website", "standard", "AsOf", "bodystyle", "discontinued", "included with", "middleware", "other_names" ] } </templatedata>

    微格式[编辑]

    此模板产生的HTML标记包含了hCalendar微格式,能够让电脑解析事件的详情,便于维基百科将该条目归类,或让用户通过浏览器将该事件添加进日历或日记应用程序中。关于微格式的更多使用资讯,请参阅维基百科的微格式专题

    日期只会在使用了{{Start date}}或{{End date}}的情况下显示,URL只会在使用了{{Url}}的情况下被包含。

    hCalendar使用的HTML class包括:

    • attendee
    • contact
    • description
    • dtend
    • dtstart
    • location
    • organiser
    • summary
    • url
    • vevent

    请勿移除或修改这些class,也请勿更改或移除有相关设定之模板及设定。

    追踪模板[编辑]

    参见[编辑]