Template:Infobox software: Difference between revisions
From Vigyanwiki
(Created page with "<includeonly>{{Infobox | bodyclass = vevent | bodystyle = {{{bodystyle|}}} | title = {{#if:{{{title|{{{name|}}}}}}|{{{title|{{{name|}}}}}}|{{PAGENAMEBASE}}}} | titlecla...") |
m (2 revisions imported from alpha:Template:Infobox_software) |
||
| (4 intermediate revisions by 3 users not shown) | |||
| Line 2: | Line 2: | ||
| bodyclass = vevent | | bodyclass = vevent | ||
| bodystyle = {{{bodystyle|}}} | | bodystyle = {{{bodystyle|}}} | ||
| title = | | title = {{{title|{{{name|{{PAGENAMEBASE}}}}}}}} | ||
| titleclass = summary | | titleclass = summary | ||
| labelstyle = white-space: nowrap; | | labelstyle = white-space: nowrap; | ||
| | |||
| imageclass = logo | |||
| {{# | | imagestyle = | ||
| image = {{#invoke:InfoboxImage |InfoboxImage |image={{{logo|}}} |size={{{logo size|{{{logo_size|}}} }}} |sizedefault=frameless |upright=0.55 |alt={{{logo alt|{{{logo_alt|}}} }}} }} | |||
| caption = {{{logo caption|{{{logo_caption|}}} }}} | |||
| image2 = {{#if:{{{screenshot|}}} | |||
| {{#if:{{{collapsible|}}} | |||
| {{Hidden begin|title={{{collapsetext|Screenshot}}}|titlestyle=background:{{{background|gainsboro}}};text-align:center|contentstyle=text-align:center}} | |||
}} | |||
{{#invoke:InfoboxImage |InfoboxImage |image={{{screenshot|}}} |size={{{screenshot size|{{{screenshot_size|}}} }}} |sizedefault=frameless |upright=1 |alt={{{screenshot alt|{{{screenshot_alt|}}} }}} }} | |||
}} | }} | ||
| caption2 = {{{caption|}}}{{#if:{{{screenshot|}}}|{{#if:{{{collapsible|}}}|{{hidden end}}}}}} | | caption2 = {{{caption|}}}{{#if:{{{screenshot|}}}|{{#if:{{{collapsible|}}}|{{hidden end}}}}}} | ||
| label1 = Other names | | label1 = Other names | ||
| data1 = {{{other_names|}}} | | data1 = {{{other_names|}}} | ||
| Line 36: | Line 41: | ||
| data5 = {{#ifeq:{{lc:{{{ver layout|simple}}}}}|stacked | | data5 = {{#ifeq:{{lc:{{{ver layout|simple}}}}}|stacked | ||
|{{Infobox software/stacked | |{{Infobox software/stacked | ||
|{{{name|{{PAGENAME}}}}} | |{{{title|{{{name|{{PAGENAME}}}}}}}} | ||
|{{{discontinued|no}}} | |{{{discontinued|no}}} | ||
|{{{latest release version|{{{latest_release_version|}}}}}} | |{{{latest release version|{{{latest_release_version|}}}}}} | ||
| Line 44: | Line 49: | ||
}} | }} | ||
|{{Infobox software/simple | |{{Infobox software/simple | ||
|{{{name|{{PAGENAME}}}}} | |{{{title|{{{name|{{PAGENAME}}}}}}}} | ||
|{{{discontinued|no}}} | |{{{discontinued|no}}} | ||
|{{{latest release version|{{{latest_release_version|}}}}}} | |{{{latest release version|{{{latest_release_version|}}}}}} | ||
| Line 94: | Line 99: | ||
| label19 = Available in | | label19 = Available in | ||
| data19 = {{#if:{{{language count|}}}|{{{language count}}} languages|{{{language|}}}}}{{{language footnote|}}} | | data19 = {{#if:{{{language count|}}}|{{{language count}}} languages|{{{language|}}}}}{{{language footnote|}}} | ||
| data20 = {{#if:{{{language count|}}}|{{#if:{{{language|}}}|{{ | | data20 = {{#if:{{{language count|}}}|{{#if:{{{language|}}}|{{Hidden begin|title=List of languages|titlestyle=background-color: transparent;}}{{{language|}}}{{hidden end}}}}}} | ||
| label21 = [[Software categories#Categorization approaches|Type]] | | label21 = [[Software categories#Categorization approaches|Type]] | ||
| data21 = {{{genre|}}} | | data21 = {{{genre|}}} | ||
| Line 113: | Line 118: | ||
| label26 = As of | | label26 = As of | ||
| data26 = {{{AsOf|}}} | | data26 = {{{AsOf|}}} | ||
}}{{#invoke:Check for unknown parameters | check | showblankpositional=1 | }}{{#invoke:Check for unknown parameters | check | showblankpositional=1 | ||
| unknown = {{main other| | | unknown = {{main other|}} | ||
| preview = Page using [[Template:Infobox software]] with unknown parameter "_VALUE_"|ignoreblank=y | | preview = Page using [[Template:Infobox software]] with unknown parameter "_VALUE_"|ignoreblank=y | ||
| AsOf | author | bodystyle | caption | collapsible | developer | discontinued | engine | engines | genre | included with | | AsOf | author | background | bodystyle | caption | collapsetext | collapsible | developer | discontinued | engine | engines | genre | included with | language | language count | language footnote | latest preview date | latest preview version | latest release date | latest release version | latest_preview_date | latest_preview_version | latest_release_date | latest_release_version | licence | license | logo | logo alt | logo caption | logo size | logo_alt | logo_caption | logo_size | middleware | name | operating system | operating_system | other_names | platform | programming language | programming_language | released | replaced_by | replaces | repo | screenshot | screenshot alt | screenshot size | screenshot_alt | screenshot_size | service_name | size | standard | title | ver layout | website | qid | ||
}}</includeonly><noinclude> | }}<!-- check for version errors, mostly from Wikidata: | ||
{{ | -->{{main other|{{#iferror: {{{latest release version|{{{latest_release_version|}}}}}} {{{latest release date | {{{latest_release_date|}}}}}} {{{latest preview version|{{{latest_preview_version|}}}}}} {{{latest preview date | {{{latest_preview_date|}}}}}} ||}}}}</includeonly><noinclude> | ||
{{Documentation}} | |||
</noinclude> | </noinclude> | ||
Latest revision as of 12:24, 2 August 2023
| 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. |
| File:Lua-Logo.svg | This template uses Lua: |
This template uses the Wikidata properties:
Usage
The following is the base code required to generate an infobox. One can copy and paste the base code into an article and insert relevant information in front of the = signs. Removing HTML comments (<!-- anything -->) is optional. To avoid accidental misuse, this base code does not have a handful of parameters that must be handled with absolute care and are not normally needed, such as {{{bodystyle}}}.
| [[File:{{{logo}}}|{{{logo size}}}|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}}} |
| Stable release | {{{latest release version}}}
/ {{{latest release date}}} |
| Preview release | {{{latest preview version}}}
/ {{{latest preview date}}} |
| 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
| title = <!-- defaults to {{PAGENAMEBASE}} -->
| logo = <!-- File name without 'File:' -->
| logo caption =
| logo alt =
| logo size =
| collapsible = <!-- Any text here will collapse the screenshot. -->
| screenshot = <!-- File name without 'File:' -->
| screenshot size =
| screenshot alt =
| caption =
| other_names =
| author =
| developer =
| released = <!-- {{Start date and age|YYYY|MM|DD|df=yes/no}} -->
| ver layout = <!-- simple (default) or stacked -->
| discontinued = <!-- Set to yes, if software is discontinued, otherwise omit. -->
| 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}} -->
| repo = <!-- {{URL|example.org}} -->
| qid =
| programming language =
| middleware =
| engine = <!-- or |engines= -->
| operating system =
| platform =
| included with =
| replaces =
| replaced_by =
| service_name =
| size =
| standard =
| language =
| language count = <!-- Number only -->
| language footnote =
| genre =
| license = <!-- or |licence= -->
| website = <!-- {{URL|example.org}} or {{official URL}} -->
| AsOf =
}}Example
{{Infobox software
| name = GIMP
| logo = The GIMP icon - gnome.svg
| screenshot = GIMP 2.10.jpg
| caption = GIMP version 2.10
| author = [[Spencer Kimball (computer programmer)|Spencer Kimball]], [[Peter Mattis]]
| developer = GIMP Development Team
| released = {{Start date and age|1998|6|2|df=yes}}
| latest release version = {{wikidata|property|preferred|references|edit|Q8038|P348|P548=Q2804309}}
| latest release date = {{wikidata|qualifier|preferred|single|Q8038|P348|P548=Q2804309|P577}}
| latest preview version = {{wikidata|property|preferred|references|edit|Q8038|P348|P548=Q51930650}}
| latest preview date = {{wikidata|qualifier|preferred|single|Q8038|P348|P548=Q51930650|P577}}
| repo = {{URL|https://gitlab.gnome.org/GNOME/gimp}}
| programming language = [[C (programming language)|C]]
| operating system = [[Linux]], [[macOS]], [[Windows]], [[FreeBSD]], [[Solaris (operating system)|Solaris]], [[AmigaOS 4]]
| language count = 82
| language footnote = <ref>{{cite web |url=https://l10n.gnome.org/module/gimp/ |title=Module Statistics: gimp |website=l10n.gnome.org |publisher=[[GNOME Project]] |access-date=7 March 2022}}</ref>
| language = [[Amharic]], [[Arabic]], [[Asturian language|Asturian]], [[Azerbaijani language|Azerbaijani]], [[Basque language|Basque]], [[Belarusian language|Belarusian]], [[Bosnian language|Bosnian]], [[Brazilian Portuguese]], [[Breton language|Breton]], [[British English]], [[Bulgarian language|Bulgarian]], [[Burmese language|Burmese]], [[Canadian English]], [[Catalan language|Catalan]], [[Central Kurdish]], [[Chinese language|Chinese (China)]], [[Chinese language|Chinese (Hong Kong)]], [[Chinese language|Chinese (Taiwan)]], [[Croatian language|Croatian]], [[Czech language|Czech]], [[Danish language|Danish]], [[Dutch language|Dutch]], [[Dzongkha]], [[Esperanto]], [[Estonian language|Estonian]], [[Finnish language|Finnish]], [[French language|French]], [[Galician language|Galician]], [[Georgian language|Georgian]], [[German language|German]], [[Greek language|Greek]], [[Gujarati language|Gujarati]], [[Hebrew language|Hebrew]], [[Hindi]], [[Hungarian language|Hungarian]], [[Icelandic language|Icelandic]], [[Indonesian language|Indonesian]], [[Irish language|Irish]], [[Italian language|Italian]], [[Japanese language|Japanese]], [[Kabyle language|Kabyle]], [[Kannada]], [[Kashubian language|Kashubian]], [[Kazakh language|Kazakh]], [[Khmer language|Khmer]], [[Kinyarwanda]], [[Kyrgyz language|Kirghiz]], [[Korean language|Korean]], [[Latvian language|Latvian]], [[Lithuanian language|Lithuanian]], [[Low German]], [[Macedonian language|Macedonian]], [[Malay language|Malay]], [[Malayalam]], [[Marathi language|Marathi]], [[Nepali language|Nepali]], [[Bokmål|Norwegian (Bokmål)]], [[Nynorsk|Norwegian (Nynorsk)]], [[Occitan language|Occitan]], [[Persian language|Persian]], [[Polish language|Polish]], [[Portuguese language|Portuguese]], [[Punjabi language|Punjabi]], [[Romanian language|Romanian]], [[Russian language|Russian]], [[Scottish Gaelic]], [[Serbian language|Serbian (Cyrillic script)]], [[Serbian language|Serbian (Latin script)]], [[Sinhala language|Sinhala]], [[Slovak language|Slovak]], [[Slovene language|Slovene]], [[Spanish language|Spanish]], [[Swedish language|Swedish]], [[Tamil language|Tamil]], [[Tatar language|Tatar]], [[Telugu language|Telugu]], [[Thai language|Thai]], [[Turkish language|Turkish]], [[Ukrainian language|Ukrainian]], [[Valencian language|Valencian]], [[Vietnamese language|Vietnamese]], [[Xhosa language|Xhosa]], [[Yiddish]]
| genre = [[Raster graphics editor]]
| license = [[GNU General Public License|GPL-3.0-or-later]]
| website = {{URL|https://www.gimp.org/|gimp.org}}
}}- ↑ "Module Statistics: gimp". l10n.gnome.org. GNOME Project. Retrieved 7 March 2022.
Conditional formatting parameters
The following shows the effect of three parameters which change the formatting of certain infobox fields: |collapsible=, |discontinued=, |ver layout=.
| File:The GIMP icon - gnome.svg | |
Screenshot
File:GIMP 2.10.jpg GIMP version 2.10 | |
| Final release(s) | |
|---|---|
Script error: The module returned a nil value. It is supposed to return an export table.
/ Script error: The module returned a nil value. It is supposed to return an export table. | |
| Preview release(s) | |
Script error: The module returned a nil value. It is supposed to return an export table.
/ Script error: The module returned a nil value. It is supposed to return an export table. |
{{Infobox software
| name = GIMP
| logo = The GIMP icon - gnome.svg
| screenshot = GIMP 2.10.jpg
| caption = GIMP version 2.10
| collapsible = yes
| ver layout = stacked
| discontinued = yes
| latest release version = {{wikidata|property|preferred|references|edit|Q8038|P348|P548=Q2804309}}
| latest release date = {{wikidata|qualifier|preferred|single|Q8038|P348|P548=Q2804309|P577}}
| latest preview version = {{wikidata|property|preferred|references|edit|Q8038|P348|P548=Q51930650}}
| latest preview date = {{wikidata|qualifier|preferred|single|Q8038|P348|P548=Q51930650|P577}}
}}Parameters
All parameters are optional.
- bodystyle
- CSS styling for the infobox as a whole
- title
- Name of the software as displayed above the infobox. Defaults to {{PAGENAMEBASE}}
- logo
- Code for a small image to be displayed as the logo or computer icon of the software. You may specify a file name, with or without namespace prefix. In other words, the following examples are all acceptable:
- The GIMP icon - gnome.svg
- File:The GIMP icon - gnome.svg
- logo size
- Size of the logo.
- logo caption
- Caption of the logo that appears below it. Should not be used to provide trivial captions, such as "This is the logo of X", which is automatically assumed. Reserved for special cases when a description beyond telling the obvious is needed, or for inserting {{ffdc}} or {{deletable image-caption}}.
- logo alt
- Alternative text of the logo; very important.
- collapsible
- Whether this screenshot is by default hidden and is only shown when user clicks on a minuscule "Expand" button. Can be set to "yes". Especially useful in case of long vertical screenshot
- screenshot
- Code for an image to be displayed as a screenshot of the software. You may specify a file name, with or without namespace prefix. In other words, the following examples are all acceptable:
- GIMP screenshot.png
- File:GIMP screenshot.png
- screenshot size
- Size of the screenshot.
- screenshot alt
- Alternative text of the screenshot; very important. Defaults to image caption.
- caption
- A caption for screenshot that appears below it. Please include this parameter only when there is an image to display.
- other_names
- Other names for the software.
- author
- Name of the original author(s) or publisher(s) of the software. It can be an individual or organization. Most of the time, it only needs to be specified when
|developer=field is populated. - developer
- Name of the current developer of the software. It can be an individual or organization.
- released
- The date in which version 1.0 (or closely-matching release) of the software in question reaches its release to manufacturing (RTM) stage. In case the article is about a specific major release of a piece of software (for instance Internet Explorer 8 or Microsoft Office 2007), this field should contain the date in which that specific major release reached RTM stage. In case the software is still in development and has not reached its RTM stage, please ignore this field; do not use this field to specify the release date of the first preview/test release of the software; there is already another parameter for that use.
- The content of this field should look like the following:
{{Start date and age|year|month|day}}
- In case the article uses DMY as date format, use this code instead:
{{Start date and age|year|month|day|df=yes}}
- If you are unsure which date format to use, please consult WP:MOSDATES.
- ver 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. Additionally, "stacked" could automately generate an edit link at the header to allow editors to update the version number.
- discontinued
- Whether this software is no longer being developed, thus changing the phrase "Latest release" in the infobox to "Last release". For technical reasons, anything for this parameter has the same effect, be it "yes", "no" or anything else. To nullify the effect of this parameter, you need to omit it.
- latest release version
- The version number of the latest release of the software. Please observe the following examples:
- Example #1: If the article is about Example Software whose latest version is 1.5, specify:
- 1.5
- Example #2: If the article is about Example Software whose latest release is called Example Software 2008 and whose latest version number is 12.2, specify:
- 2008 (12.2)
- Example #3: If the article is about Famous Example Software 2010, which is a significant release of Famous Example Software and whose latest version number is 14.0.0.25, just specify:
- 14.0.0.25
- Example #4: If the article is about Famous Example Software 2010 for which no update is released since its initial release-to-manufacturing (RTM), please omit this parameter unless there is an evidence that it is necessary for the reader to know this number. One reason would be the presence of preview releases of the software which can only be distinguished from the RTM by their version number.
latest release datedepends on this parameter.- latest release date
- The release date of the latest released version. If no update is released for the software since its initial release, please omit this field; filling in the
releasedfield would be enough. The content of this field should look like the following:{{Start date and age|year|month|day}}
- In case the article uses DMY as date format, use this code instead:
{{Start date and age|year|month|day|df=yes}}
- If you are unsure which date format to use, please consult WP:MOSDATES.
- This parameter only works when a
latest release versionis present. - latest preview version
- The version number of the latest preview version or development branch. Should only be specified when development of a new version of the software in question (newer than one specified in
latest release version) is in progress. Please consult descriptions forlatest release versionprovided above for best practices of specifying this parameter. - latest preview date
- Specifies the release date of the latest preview version or development branch. Should only be specified when development of a new version of the software in question (newer than one specified in
latest release version) is in progress. Please consult descriptions forlatest release dateprovided above for best practices of specifying this parameter. - repo
- The online source code repository, if available. For example, the sourceforge or github project page. As with the
websiteparameter, this should use the {{URL}} template. In the absence of this parameter, infobox attempts to acquire the repository link from Wikidata. This parameter overrides the Wikidata link. - qid
- Q-identifier from Wikidata.
- programming language
- The programming language of that subject of the article. If the program language of the software has a corresponding article in Wikipedia, please link to it. Here is an example:
- When specifying the name of the programming language please make sure that you cite your source. Unreferenced assertions in Wikipedia may be challenged or removed. If you do not have a source, do not include this parameter.
- middleware
- Middleware for the software.
- engine
- Software engine that is used by this software. In absence of this parameter, infobox attempts to acquire the Script error: The module returned a nil value. It is supposed to return an export table. (P408) from Wikidata. This parameter overrides the Wikidata engine.
- engines
- List of software engines, if multiple are used.
- operating system
- The operating system on which the given software works. Please be as accurate as possible but also be mindful of the length and avoid specifying vague phrases such as "Cross-platform", "Multi-platform", "all" or "none". If the project is a web app or if only an OS-agnostic source code is released, ignore. Please consider these examples:
- If the software works on all incarnations of Unix, Linux and derived operating systems, please specify:
[[Unix-like]]
- If the software works unconditionally on ALL incarnations of Microsoft Windows, please specify:
[[Microsoft Windows]]or simply[[Windows]]
- If the software works only on Windows XP and all subsequent releases of Microsoft Windows, please specify:
[[Windows XP]] and later
- If the software is released for various families of different operating systems, (such as specific versions of BSD, Linux, macOS and Microsoft Windows) so that listing them in the infobox gives it undue length, please leave the details to article body and specify:
[[BSD]], [[Linux]], [[macOS]] and [[Microsoft Windows]]
- If the software works on all incarnations of Unix, Linux and derived operating systems, please specify:
- platform
- The computing platform on which the software runs. You might like to include the following information:
- Processor architecture: Some software runs on a certain processor architecture such as IA-32 (also known as x86 an i386), x86-64 (also known as x64, AMD64 and EM64T), Itanium, ARM and MIPS.
- Software frameworks: Some software runs on Java platform, .NET Framework, Adobe Flash, Adobe AIR, Microsoft Silverlight or XUL without regard to the processor architecture. If so, you may ignore processor architecture and instead specify the framework.
- Please avoid specifying vague phrases such as "cross-platform" unless the following conditions meet:
- The software has been released for numerous different platforms, so much so that including all of them causes the infobox size to grow unduly large.
- The article body lists the platforms under which the software runs.
- If the above do not meet, then specifying such a vague phrase is the same as not specifying it.
- included with
- Devices and operating systems that come preloaded with this browser.
- replaces
- What the software replaces, if applicable.
- replaced_by
- What the software has been replaced with.
- service_name
- Service name for the software.
- size
- Size of the installer package. Only applies to software available via download. For software distributed physically in boxes or other packages, ignore this parameter. Do not forget to include your unit of measurements (i.e. kilobytes, megabytes or gigabytes).
- Note: Use a non-breaking space (" ") to prevent numbers and units of measurements from separating when "word wrapping" occurs. You can also use {{Nowrap}} template to produce the same effect.
- Observe the following examples:
760 KB→ 760 KB32 MB→ 32 MB
{{Nowrap|842 KB}}→ 842 KB{{Nowrap|48.5 MB}}→ 48.5 MB
- For more information, visit WP:UNITS
- standard
- Technical standard of the subject of the article adheres.
- language
- Lists the natural languages in which the software's user interface can interact with user. Please do not supply vague phrases, such as "multilingual", which do not add to the knowledge of the reader. Also please do not wikilink the name of languages; readers are most likely uninterested in reading about those languages. For a comprehensive list of items that should not be generally linked to, see Wikipedia:Manual of Style/Linking § What generally should not be linked. A large list of languages can disrupt the natural flow of the article. When the list of languages grows large, consider one of the following measures:
- Use
|language count=parameter in conjunction with this parameter. This will allow the list of languages to be hidden and revealed with the click of a mouse. This method is not printer-friendly: A collapsed list does not appear on print and an expanded list may disrupt the natural flow of the article. - Add a link to a section of the article which lists languages. Please keep the link printer-friendly. For example, instead of "[[#Localization|Click here to see the list of languages]]", consider "35 languages; see [[#Localization|§ Localization]]". This solution is useful when the inclusion of a list of languages is important or when the localization of the subject of the article is discussed.
- Ignore this parameter and use
|language count=and|language footnote=instead. This approach is useful when the article is short and inclusion of the list of languages is unwanted or contested.
- Use
- language count
- Number of natural languages in which the software's user interface can interact with user. Please supply a number only. Don't use this parameter if the list of