แม่แบบ:กล่องข้อมูล เว็บเบราว์เซอร์

จากวิกิพีเดีย สารานุกรมเสรี
ไปยังการนำทาง ไปยังการค้นหา
Documentation icon คู่มือการใช้งานแม่แบบ[ดู] [แก้] [ประวัติ] [ล้างแคช]

Quick start: Comparison with {{Infobox software}}[แก้]

This template largely resembles {{Infobox software}}, except:

  1. It has the following new parameters (the descriptions of which you can study below): |ver layout=, |engine=, |included with=
  2. It does not feature the following parameter: |Alexa=

In all other areas, it works exactly like {{Infobox software}}.

Usage[แก้]

{{กล่องข้อมูล เว็บเบราว์เซอร์
| name                   = 
| logo                   = <!-- Image name is enough -->
| logo alt               = 
| logo size              = 
| screenshot             = <!-- Image name is enough -->
| caption                = 
| screenshot alt         = 
| screenshot size        = 
| collapsible            = 
| author                 = 
| slogan                 = 
| developer              = 
| released               = <!-- {{Start date and age|YYYY|MM|DD|df=yes/no}} -->
| discontinued           = 
| ver layout             = <!-- stacked / simple -->
| latest release version = 
| latest release date    = <!-- {{Start date and age|YYYY|MM|DD|df=yes/no}} -->
| latest preview version = 
| latest preview date    = <!-- {{Start date and age|YYYY|MM|DD|df=yes/no}} -->
| status                 = 
| programming language   = 
| operating system       = 
| included with          = 
| engine                 = 
| platform               = 
| size                   = 
| language               = 
| language count         = <!-- Number only -->
| language footnote      = 
| genre                  = 
| license                = 
| website                = <!-- {{URL|www.example.org}} -->
| standard               = 
| AsOf                   = 
}}

Parameters[แก้]

This infobox is intended for articles about web browsers.

พารามิเตอร์แม่แบบ

This template prefers block formatting of parameters.

พารามิเตอร์คำอธิบายชนิดสถานะ
Name of web browsername

Displayed above infobox if "title" not set. Used to retrieve versioning information from standalone templates.

สตริงจำเป็น
Name of web browsertitle

Displayed above infobox. Use only to override "name" if needed.

สตริงเลือกได้
Logo of web browserlogo

Logo image name without leading "File:" or "Image:" and parameters. Don't use wikilinks.

ไฟล์เลือกได้
Logo captionlogo caption

Caption for the logo. Must only be used to provide anything far more important than 'This is the logo of X'. e.g. used for inserting {{ffdc}} or {{deletable image-caption}}.

สตริงเลือกได้
Alternative text for logologo alt logo_alt

Plain text describing logo. Text to be displayed in popup when cursor is hovering over image; replaces logo filename when article is rendered in text-based browser, screen reader, etc.

สตริงเลือกได้
Width of the logologo size logo_size

Width of the logo in pixels; "px" suffix is required.

สตริงเลือกได้
Screenshot of web browserscreenshot

Screenshot without leading "File:" or "Image:" and parameters. Don't use wikilinks. Take care to violate third-party copyright – the page displayed in web browser is normally subject to copyright.

ไฟล์เลือกได้
Width of screenshotscreenshot size screenshot_size

Width of the screenshot in pixels; "px" suffix is required.

สตริงเลือกได้
Alternative text for screenshotscreenshot alt screenshot_alt

Plain text describing screenshot. Text to be displayed in popup when cursor is hovering over image; replaces logo filename when article is rendered in text-based browser, screen reader, etc.

สตริงเลือกได้
Caption for screenshotcaption

Displayed below screenshot.

สตริงเลือกได้
Screenshot should be collapsiblecollapsible

If set to "Yes", screenshot is collapsed by default.

ค่าเริ่มต้น
No
สตริงเลือกได้
Authorauthor

Original author of the browser (if different from current developer).

สตริงเลือกได้
Developerdeveloper

Current developer of the browser.

สตริงเลือกได้
Sloganslogan

Slogan of the browser (if prominent). Reference to independent source must be provided.

สตริงเลือกได้
Initial release datereleased

Date of initial release, wrapped in {{start date and age|Year|Month|Day}}

วันที่เลือกได้
Discontinued?discontinued

If set to "Yes", wording through infobox is changed to reflect that browser is no longer developed.

ค่าเริ่มต้น
No
สตริงเลือกได้
Version info layoutver layout

Defines how version number information appear in the infobox. Can be set to "simple" (default) or "stacked". "Simple" allocates an ordinary row to "latest release version" and another to "latest preview version". But "stacked" gives the full width of the row the info and adds a header, so that several version numbers can appear and use the infobox space more efficiently.

ค่าอัตโนมัติ
simple
สตริงเลือกได้
Latest release versionlatest release version latest_release_version

Version of latest stable release. (Superceded with standalone template at [[Template:Latest stable software release/<name>]].)

สตริงเลือกได้
Latest release datelatest release date latest_release_date

Date of latest stable release wrapped in {{start date and age|Year|Month|Day}}. (Superceded with standalone template at [[Template:Latest stable software release/<name>]].)

วันที่เลือกได้
Latest preview versionlatest preview version latest_preview_version

Version of latest unstable release. (Superceded with standalone template at [[Template:Latest preview software release/<name>]].)

สตริงเลือกได้
Latest preview datelatest preview date latest_preview_date

Date of latest unstable release wrapped in {{start date and age|Year|Month|Day}}. (Superceded with standalone template at [[Template:Latest preview software release/<name>]].)

วันที่เลือกได้
Development statusstatus

One of "Active", "Unmaintained" or "Discontinued".

สตริงเลือกได้
Programming languageprogramming language programming_language

Programming language the browser is written in.

สตริงเลือกได้
Operating systemoperating system operating_system

List of operating systems browser is currently available for.

สตริงเลือกได้
Included withincluded with included_with

Products (devices and operating systems) that come preloaded with this browser.

สตริงเลือกได้
Layout engineengine

Layout engine that renders web pages for this browser.

หน้าเลือกได้
List of layout enginesengines

List of layout engines, if multiple supported by default.

สตริงเลือกได้
Platformplatform

Software platform browser builds upon. Examples include "[[Java (programming language)|Java]]", "[[.NET Framework|.NET]]", "[[Tcl]]/[[Tk (software)|Tk]]".

สตริงเลือกได้
Sizesize

Size of official installer file.

สตริงเลือกได้
Natural language(s)language

List of (unlinked) languages browser interface is translated to.

สตริงเลือกได้
Language countlanguage count

Number of natural languages in which the software product user interface can interact with user.

จำนวนเลือกได้
Language footnotelanguage footnote

Use this parameter to supply citation on available translations.

สตริงเลือกได้
Software genregenre

Genre of the browser. Should be set to "[[web browser]]" unless browser is niche.

สตริงเลือกได้
Licenselicense licence

Name of the license (if well-known). Use "[[Freeware]]", "[[Proprietary software|Proprietary]]" or similar for obscure/custom licenses. Don't use "EULA".

สตริงเลือกได้
Websitewebsite

The web site URL of the software package. This URL must be readable in print. Therefore, you should use '{{tl|URL}}' template like this: '{{URL|http://www.example.com}}'. Avoid using printer-hostile forms like '[http://www.example.com Example website]'. In absence of this parameter, infobox attempts to acquire the website link form Wikidata. This parameter overrides the Wikidata link. (It is useful when a second infobox for something different is defined on a page.) In addition, the special value 'hide' suppresses this field, even in presence of a Wikidata link. (It is useful for articles that have several infoboxes and do not want all of them show a Wikidata link ad nauseam.)

สตริงเลือกได้
Web standardsstandard

List of web standards browser supports. (Only if browser uses custom layout engine or significantly extends its functionality.)

สตริงเลือกได้
FooterFooter

Information in this field appear at the bottom of the infobox

ข้อความวิกิที่ไม่สมดุลเลือกได้
As ofAsOf

Date when information in infobox was last verified.

วันที่เลือกได้
Body style (CSS)bodystyle

CSS styling for the infobox as a whole

สตริงเลือกได้

Latest versions in separate templates[แก้]

Infobox retrieves the software product's latest release version, latest release date, latest preview version and latest preview date from outside the article. Users visiting the article may click the numbers directly in the infobox to edit that external source. This mode is very useful for articles about software products whose vendors keep releasing updates or newer versions. With this mode is enabled, users can quickly and effectively edit the release data without editing the article proper (and cluttering its edit history with inconsequential edits).

To make the infobox retrieve release data from outside the article:

  1. Create an external source that supplies data for latest stable release. To do so:
    1. Copy and paste the following URL into your browser's address bar, replacing INFOBOX_NAME with the value supplied in name parameter of the infobox:
      //th.wikipedia.org/w/index.php?title=%E0%B9%81%E0%B8%A1%E0%B9%88%E0%B9%81%E0%B8%9A%E0%B8%9A:Latest_stable_software_release/INFOBOX_NAME&action=edit&preload=Template:LSR/syntax
    2. In the page that opens, fill in the required information.
    3. Save the page.
  2. Create an external source that supplies data for latest preview release. To do so:
    1. Copy and paste the following URL into your browser's address bar, replacing INFOBOX_NAME with the value suppplied in name parameter of the infobox:
      //th.wikipedia.org/w/index.php?title=%E0%B9%81%E0%B8%A1%E0%B9%88%E0%B9%81%E0%B8%9A%E0%B8%9A:Latest_preview_software_release/INFOBOX_NAME&action=edit&preload=Template:LPR/syntax
    2. In the page that opens, fill in the required information.
    3. Save the page.
  3. In the main article delete any latest release version, latest release date, latest preview version or latest preview date parameters (otherwise they will take precedence over templates' data).
  4. Save the article.
  5. Refresh the article.

The same templates may be shared between related articles. To do so, specify the subpage name of the templates' versions in the infobox's parameter |name= and add |title=subject of the article parameter to make the infobox display the proper name in the article.

Different latest versions[แก้]

For browsers, whose versions don't match across supported platforms, another set of templates may be used:

  1. Create an external source that supplies data for latest stable release. To do so:
    1. Copy and paste the following URL into your browser's address bar, replacing INFOBOX_NAME with the value supplied in name parameter of the infobox:
      //th.wikipedia.org/w/index.php?title=%E0%B9%81%E0%B8%A1%E0%B9%88%E0%B9%81%E0%B8%9A%E0%B8%9A:Multiple_stable_software_releases/INFOBOX_NAME&action=edit&preload=Template:Multiple_stable_software_releases/syntax
    2. In the page that opens, fill in the required information.
    3. Save the page.
  2. Create an external source that supplies data for latest preview release. To do so:
    1. Copy and paste the following URL into your browser's address bar, replacing INFOBOX_NAME with the value suppplied in name parameter of the infobox:
      //th.wikipedia.org/w/index.php?title=%E0%B9%81%E0%B8%A1%E0%B9%88%E0%B9%81%E0%B8%9A%E0%B8%9A:Multiple_preview_software_releases/INFOBOX_NAME&action=edit&preload=Template:Multiple_preview_software_releases/syntax
    2. In the page that opens, fill in the required information.
    3. Save the page.
  3. Save the article.
  4. Refresh the article.

Example[แก้]

Konqueror
Konqueror 4 Oxygen.svg
Konqueror 4 4 2.png
A screenshot of Konqueror 4.4.2 showing the default homepage
คำขวัญConquer the Web!
ผู้พัฒนาKDE
วันที่เปิดตัว14 ตุลาคม 1996; 22 ปีก่อน (1996-10-14)
สถานะการพัฒนาActive
เขียนจากภาษาโปรแกรมC++ (Qt)
Operating systemUnix-like, Windows
เร็นเดอริงเอนจินsKHTML, WebKit
ระบบปฏิบัติการKDE Plasma Workspaces
ประเภทWeb browser, file browser
ลิขสิทธิ์GPLv2+
Websitewww.konqueror.org
This infobox is just an example, and it isn't supposed to reflect the present state of this particular piece of software, or even make any sense. It is only shown to demonstrate the effect of the options.
{{Infobox web browser
| name                   = KDE Software Compilation 4
| title                  = Konqueror
| logo                   = [[File:Konqueror 4 Oxygen.svg|80px]]
| screenshot             = [[File:Konqueror 4 4 2.png|300px]]
| caption                = A screenshot of Konqueror 4.4.2 showing the default homepage
| slogan                 = Conquer the Web!
| developer              = [[KDE]]
| released               = {{Start date and age|1996|10|14|df=yes}}
| programming language   = [[C++]] ([[Qt (framework)|Qt]])
| operating system       = [[Unix-like]], [[Windows]]
| platform               = [[KDE Plasma Workspaces]]
| engines                = [[KHTML]], [[WebKit]]
| status                 = Active
| genre                  = [[Web browser]], [[file browser]]
| license                = [[GNU General Public License#Version 2|GPLv2+]]
| website                = {{URL|http://www.konqueror.org}}
}}

Microformat[แก้]

The HTML markup produced by this template includes an hCalendar microformat, which makes the event details parsable by computers, either acting automatically to catalogue articles across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to a calendar or diary application. For more information about the use of microformats on Wikipedia, please see the microformat project.

Classes[แก้]

hCalendar uses HTML classes including:

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

Please do not rename or remove these classes nor collapse nested elements which use them.

See also[แก้]