模板: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,也請勿更改或移除有相關設定之模板及設定。

    追蹤模板[編輯]

    參見[編輯]