模板:Infobox OS/doc

来自Local Chinese Wikipedia
跳转到导航 跳转到搜索


地区词问题,于条目中用noteTA,而不是修改模板

本模板是使用于操作系统(OS)条目中的信息框(资讯框)。

使用方式[编辑]

复制以下代码,贴在条目页面顶端,并填入其中内容(填入字段说明如下)

{{{title}}}
{{{version_of}}}操作系统的一个版本
[[File:{{{logo}}}|{{{logo_size}}}|alt={{{logo_alt}}}|{{{logo_alt}}}]]
{{{logo caption}}}
屏幕截图
[[File:{{{screenshot}}}|{{{screenshot_size}}}|alt={{{screenshot_alt}}}|{{{screenshot_alt}}}]]
{{{caption}}}
开发者{{{developer}}}
编程语言{{{programmed_in}}}
操作系统家族{{{family}}}
运作状态{{{working_state}}}
源码模式{{{source_model}}}
发放给生产商{{{RTM_date}}}[1]
正式发售日期{{{GA_date}}}[2]
最终版本{{{latest release version}}} ({{{latest release date}}})
最终预览{{{latest preview version}}} ({{{latest preview date}}})[3]
市场取向{{{marketing_target}}}
支持的语言{{{language}}}
更新方式{{{updatemodel}}}
软件包管理系统{{{package_manager}}}
支持平台{{{supported_platforms}}}
内核类别{{{kernel_type}}}
用户空间{{{userland}}}
施影响于{{{influenced}}}
受影响于{{{influenced_by}}}
默认用户界面{{{ui}}}
许可证{{{license}}}
前一代{{{preceded_by}}}
后一代{{{succeeded_by}}}
官方网站{{{website}}}
仓库{{{repo}}}
支持状态
{{{support_status}}}
有关这系列的条目
{{{other_articles}}}


{{Infobox OS
| bodystyle =
| title =
| name =
| version_of =
| version of =
| logo =
| logo_size =
| logo size =
| logo_alt =
| logo alt =
| logo_caption =
| logo caption =
| collapsible =
| screenshot =
| screenshot_size =
| screenshot_alt =
| caption =
| developer =
| programmed_in =
| programmed in =
| prog_language =
| prog language =
| family =
| working_state =
| working state =
| source_model =
| source model =
| RTM_date =
| RTM date =
| first_release_date =
| first release date =
| GA_date =
| GA date =
| released =
| RTM_url =
| RTM url =
| GA_url =
| GA url =
| latest release =
| repo =
| marketing_target =
| marketing target =
| language =
| human_language =
| human language =
| updatemodel =
| update_model =
| update model =
| package_manager =
| package manager =
| supported_platforms =
| supported platforms =
| kernel_type =
| kernel type =
| userland =
| influenced =
| influenced_by =
| influenced by =
| ui =
| license =
| preceded_by =
| preceded by =
| succeeded_by =
| succeeded by =
| website =
| repo =
| support_status =
| support status =
| other_articles =
| other articles =
| latest release qid =
| hide latest release =
}}

详细用法[编辑]

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

Infobox OS模板数据

<templatedata> { "description": "本模板用于操作系统条目。", "params": { "title": { "label": "标题", "type": "string", "required": false, "description": "操作系统名称,在信息框顶部显示。如不填写,则显示“名称”参数中的内容或页面标题。请填写纯文本,不要加入维基链接、超链接或图像。" }, "name": { "label": "名称", "type": "string", "required": true, "description": "信息框所用名称。当“标题”参数未指定时亦会显示在页面顶部。请填写纯文本,不要加入任何维基语法。", "default": "PAGENAME" }, "logo": { "label": "标志", "description": "操作系统标志。填写例:File:Microsoft Windows XP Logo.svg", "type": "wiki-file-name", "required": false }, "logo size": { "label": "标志大小", "description": "标志宽度,以“px”(像素)结尾,默认为250px。填写例:106px", "type": "string", "required": false, "aliases": [ "logo_size" ] }, "logo caption": { "label": "标志说明", "description": "标志说明", "type": "content", "required": false, "aliases": [ "logo_caption" ] }, "screenshot": { "label": "截图", "description": "操作系统默认配置下的截图,不应包含任何非标准主题、第三方程序或可用于识别个人身份的信息。填写例:File:Windows 8 screenshot.png", "type": "wiki-file-name", "required": false }, "screenshot_size": { "label": "截图大小", "description": "截图宽度,以“px”(像素)结尾,默认为290px。填写例:200px", "type": "string", "required": false }, "screenshot_alt": { "label": "截图替代文本", "description": "截图的替代文本,视障人士使用的屏幕阅读器会读出这些文本,应写出截图在文中的作用。", "type": "string", "required": false }, "caption": { "label": "说明", "description": "截图说明。仅填写“截图”等字样会显得多余,因为截图可能会在模板中“截图”一栏下显示。填写例:Windows 8桌面截图", "type": "content", "required": false }, "collapsible": { "label": "可折叠", "description": "如果截图过大,请设置为“yes”以折叠截图", "default": "no", "type": "line", "required": false }, "version of": { "label": "所属操作系统", "description": "所属操作系统名称,信息框位于介绍操作系统某一特定版本的条目时填写。", "type": "content", "required": false, "aliases": [ "version_of" ] }, "developer": { "label": "开发者", "description": "软件的目前开发者,可以是个人或组织。填写例:微软", "type": "content", "required": false }, "family": { "label": "操作系统家族", "description": "版本所处的操作系统家族,例如“Microsoft Windows”“类Unix”或“Mac OS”。“Linux”和“Mac OS X”不是操作系统家族", "type": "string", "required": false }, "working state": { "label": "运作状态", "description": "操作系统当前状态,可填写“运作中”“停止开发”或“停止支持”", "type": "line", "required": false, "aliases": [ "working_state" ] }, "source model": { "label": "源码模式", "description": "操作系统的源码模式,可填写“开放源代码”“封闭源代码”“共享源代码”或“源代码可用”。不要使用“自由软件”“自由开源软件”或“FOSS”,这些描述更偏向于许可模式,并不一定指用“开放源代码”模式开发", "type": "line", "required": false, "aliases": [ "source_model" ] }, "released": { "label": "首次发布", "description": "操作系统首个公开发行版的发行日期,应使用年年表达式错误:无法识别标点符号“日”。,​错误:第一个参数不能被解析为日期或时间。​(年-0月-0日。如果填写了“RTM date”或“GA date”,则本参数的值不会显示", "type": "content", "required": false }, "RTM date": { "label": "发放给生产商", "description": "操作系统发放给生产商(RTM)的日期,应使用年年表达式错误:无法识别标点符号“日”。,​错误:第一个参数不能被解析为日期或时间。​(年-0月-0日。填写后,“初始版本”参数的值将被忽略。注意:本参数仅适用于介绍操作系统某一特定版本的条目", "type": "content", "aliases": [ "RTM_date", "first release date", "first_release_date" ], "required": false }, "GA date": { "label": "正式发售日期", "description": "操作系统正式发售的日期,应使用年年表达式错误:无法识别标点符号“日”。,​错误:第一个参数不能被解析为日期或时间。​(年-0月-0日。填写后,“初始版本”参数的值将被忽略。注意:本参数仅适用于介绍操作系统某一特定版本的条目", "type": "content", "required": false, "aliases": [ "GA_date" ] }, "marketing target": { "label": "市场取向", "description": "操作系统的目标受众市场", "type": "string", "required": false, "aliases": [ "marketing_target" ] }, "programmed in": { "label": "编程语言", "description": "操作系统使用的编程语言。填写例:C语言", "type": "content", "aliases": [ "prog language", "prog_language", "programmed_in" ], "required": false }, "language": { "label": "语言", "description": "操作系统支持的自然语言。避免只填写语言数量,或是加入语言内链", "type": "string", "required": false, "aliases": [ "human language", "human_language" ] }, "update model": { "label": "更新方式", "description": "用于更新操作系统的工具或方式", "type": "string", "required": false, "aliases": [ "updatemodel", "update_model" ] }, "package manager": { "label": "软件包管理系统", "description": "操作系统提供的软件包管理系统,请加入内链", "type": "content", "required": false, "aliases": [ "package_manager" ] }, "supported platforms": { "label": "支持平台", "description": "操作系统支持的硬件平台", "type": "string", "required": false, "aliases": [ "supported_platforms" ] }, "kernel type": { "label": "内核类别", "description": "操作系统内核的类别,包括“宏内核”和“微内核”。注意:Linux发行版应为“宏内核Linux)”", "type": "content", "required": false, "aliases": [ "kernel_type" ] }, "userland": { "label": "用户空间", "description": "操作系统的用户空间类型,可填写“BSD”“GNU”等", "type": "content", "required": false }, "ui": { "label": "默认用户界面", "description": "操作系统默认情况下进入的用户界面", "type": "content", "required": false }, "license": { "label": "许可证", "description": "操作系统使用的许可证(可加内链,如GPLv2)或许可模式(“专有软件”或“免费软件”)", "type": "content", "required": false }, "preceded by": { "label": "前一代", "description": "对于操作系统条目,应填写该系统正式取代的操作系统(或操作系统列表);对于特定版本条目,应填写该操作系统中上一个面向相同受众的版本", "type": "content", "required": false, "aliases": [ "preceded_by" ] }, "succeeded by": { "label": "后一代", "description": "对于操作系统条目,应填写正式取代该系统的操作系统(或操作系统列表);对于特定版本条目,应填写该操作系统中下一个面向相同受众的版本", "type": "string", "required": false, "aliases": [ "succeeded_by" ] }, "website": { "label": "官方网站", "description": "软件包的网址。为在打印时拥有更佳效果,可使用{{URL}}模板,如“www.example.com”;应避免使用对打印不友好的格式,如“Example website”。如不填写,信息框会尝试从Wikidata获取网址;如填写,Wikidata上的链接将被忽略(可在条目中有多个信息框,而部分信息框不同于条目主题时使用)。若要强制隐藏本字段,请填写特殊值“hide”,Wikidata上的链接将被忽略(可在需隐藏条目中部分信息框中网址字段,以避免重复时使用)。", "type": "content", "required": false }, "repo": { "label": "仓库", "description": "在线源代码仓库(如果有的话)。例如,sourceforge或github项目页面。和website参数一样,它应该使用{{URL|example.com|可选的显示文本}}模板。如果没有此参数,infobox将尝试从Wikidata获取存储库链接。此参数覆盖Wikidata链接。", "type": "string", "required": false }, "support status": { "label": "支持状态", "description": "操作系统特定版本的支持状态,仅适用于介绍操作系统某一特定版本的条目", "type": "string", "required": false, "aliases": [ "support_status" ] }, "other articles": { "label": "有关这系列的条目", "description": "与该条目有紧密联系条目的列表。对于联系不紧密的相关条目,可考虑在文中使用“参见”章节。", "type": "content", "required": false, "aliases": [ "other_articles" ] }, "language count": { "label": "语言总数", "description": "支持的自然语言数量。填写后,语言列表会被折叠。", "type": "number" }, "language footnote": { "label": "语言脚注", "description": "支持语言数量的来源(语言列表可使用不同的来源)。条目有脚注系统时,可使用引用错误:<ref>标签缺少关闭标签</ref> | supported platforms = i386(x86), amd64(x86-64), PowerPC, SPARC, DEC Alpha, ARM, MIPS, HPPA, S390, IA-64 | updatemodel = APT (several front-ends available) | package manager = dpkg | working state = Current }}

{{Infobox OS
| name                   = Debian GNU/Linux
| logo                   = [[File:Debian-OpenLogo.svg|Debian logo|50px]]
| screenshot             = [[File:DebianLenny.png|300px|Screenshot of Debian 5.0 (“Lenny”)]]
| caption                = Debian GNU/Linux 5.0 (“Lenny”)
| website                = [http://www.debian.org/ www.debian.org]
| developer              = Debian Project
| family                 = [[Unix-like]]
| source model           = [[Free and open source software]]
| released               = {{Start date|df=yes|1993|08|16}}
| language               = 63 languages<ref name="lenny released">{{cite web|url=http://www.debian.org/News/2009/20090214.en.html|title=Debian GNU/Linux 5.0 released|accessdate=2009-02-15|publisher=Debian|date= 2009-02-14}}</ref>
| latest release         = 4.0r2 Etch ({{release date|2007|12|27}})
| kernel type            = [[Monolithic kernel|Monolithic]] ([[Linux kernel|Linux]], [[FreeBSD]]), [[Microkernel|Micro]] ([[GNU Hurd|Hurd]])
| userland               = [[GNU Core Utilities|GNU]]
| ui                     = [[GNOME]], [[KDE]], [[Xfce]], and [[LXDE]]
| license                = [[Free software]], mainly the [[GNU GPL]], and other licenses<ref>{{cite web|url=http://www.debian.org/legal/licenses/|title=License information|publisher=Debian|accessdate=2009-02-28}}</ref>
| supported platforms    = [[IA-32|i386(x86)]], [[X86-64|amd64(x86-64)]], [[PowerPC]], [[SPARC]], [[DEC Alpha]], [[ARM architecture|ARM]], [[MIPS architecture|MIPS]], [[PA-RISC family|HPPA]], [[IBM eServer zSeries|S390]], [[IA-64]]
| updatemodel            = [[Advanced Packaging Tool|APT]] (several front-ends available)
| package manager        = [[dpkg]]
| working state          = Current
}}

参考资料

  1. {{{RTM_url}}}
  2. {{{GA_url}}}
  3. {{{preview_url}}}

追踪模板[编辑]

参见[编辑]