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...") |
No edit summary |
||
| Line 5: | Line 5: | ||
| 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 = | |||
| data1 = {{{other_names|}}} | | label1 =और नाम| data1 = {{{other_names|}}} | ||
| label2 = [[ | | label2 =[[प्रोग्रामर|मूल लेखक]]| data2 = {{{author|}}} | ||
| data2 = {{{author|}}} | | label3 =[[प्रोग्रामर|डेवलपर(ओं)]]| data3 = {{{developer|}}} | ||
| label3 = [[ | | label4 =आरंभिक रिलीज| data4 = {{{released|}}} | ||
| data3 = {{{developer|}}} | |||
| label4 = | |||
| data4 = {{{released|}}} | |||
| rowstyle5 = display: none;<!-- | | rowstyle5 = display: none;<!-- | ||
=============================================================================== | =============================================================================== | ||
| Line 52: | Line 53: | ||
}} | }} | ||
}} | }} | ||
| label6 = [[ | | label6 =[[रिपोजिटरी (संस्करण नियंत्रण)|रिपॉजिटरी]]| data6 = {{#if:{{{repo|}}}{{#ifeq:{{{qid|}}}|none|-}} | ||
| data6 = {{#if:{{{repo|}}}{{#ifeq:{{{qid|}}}|none|-}} | |||
|{{{repo|}}} | |{{{repo|}}} | ||
|{{#if: {{#property:P1324|from={{{qid|}}}}} | |{{#if: {{#property:P1324|from={{{qid|}}}}} | ||
| Line 62: | Line 62: | ||
}} | }} | ||
}} | }} | ||
| label7 = | | label7 =इसमें लिखा हुआ| data7 = {{{programming language|{{{programming_language|}}}}}} | ||
| data7 = {{{programming language|{{{programming_language|}}}}}} | | label8 =[[मध्यस्थ]]| data8 = {{{middleware|}}} | ||
| label8 = [[ | |||
| data8 = {{{middleware|}}} | |||
| label10 = [[Software engine|Engine]]{{#if: {{{engines|}}} |s}} | | label10 = [[Software engine|Engine]]{{#if: {{{engines|}}} |s}} | ||
| data10 = {{#if: {{{engines|}}} | | data10 = {{#if: {{{engines|}}} | ||
| Line 76: | Line 74: | ||
}} | }} | ||
}} | }} | ||
| label11 = [[ | | label11 =[[ऑपरेटिंग सिस्टम]]| data11 = {{{operating system|{{{operating_system|}}}}}} | ||
| data11 = {{{operating system|{{{operating_system|}}}}}} | | label12 =[[कंप्यूटिंग प्लेटफॉर्म|प्लेटफॉर्म]]| data12 = {{{platform|}}} | ||
| label12 = [[ | | label13 =के साथ शामिल है| data13 = {{{included with|}}} | ||
| data12 = {{{platform|}}} | | label14 =पूर्वज| data14 = {{{replaces|}}} | ||
| label13 = | | label15 =उत्तराधिकारी| data15 = {{{replaced_by|}}} | ||
| data13 = {{{included with|}}} | | label16 =सेवा का नाम| data16 = {{{service_name|}}} | ||
| label14 = | | label17 =[[फ़ाइल का आकार|आकार]]| data17 = {{{size|}}} | ||
| data14 = {{{replaces|}}} | | label18 =[[तकनीकी मानक|मानक]](रों)| data18 = {{{standard|}}} | ||
| label15 = | | label19 =में उपलब्ध| data19 = {{#if:{{{language count|}}}|{{{language count}}} languages|{{{language|}}}}}{{{language footnote|}}} | ||
| data15 = {{{replaced_by|}}} | | data20 = {{#if:{{{language count|}}}|{{#if:{{{language|}}}|{{Hidden begin|title=List of languages|titlestyle=background-color: transparent;}}{{{language|}}}{{hidden end}}}}}} | ||
| label16 = | | label21 =[[सॉफ्टवेयर श्रेणियां#वर्गीकरण दृष्टिकोण|प्रकार]]| data21 = {{{genre|}}} | ||
| data16 = {{{service_name|}}} | | label22 =[[सॉफ्टवेयर लाइसेंस|लाइसेंस]]| data22 = {{{license|}}} | ||
| label17 = [[ | | label23 =[[सॉफ्टवेयर लाइसेंस|लाइसेंस]] <!-- अलग तरह से लिखा गया; [[MOS:ENGVAR]] देखें -->| data23 = {{{licence|}}} | ||
| data17 = {{{size|}}} | | label25 =वेबसाइट| data25 = {{#if:{{{website|}}}{{#ifeq:{{{qid|}}}|none|-}} | ||
| label18 = [[ | |||
| data18 = {{{standard|}}} | |||
| label19 = | |||
| data19 = {{#if:{{{language count|}}}|{{{language count}}} languages|{{{language|}}}}}{{{language footnote|}}} | |||
| data20 = {{#if:{{{language count|}}}|{{#if:{{{language|}}}|{{ | |||
| label21 = [[ | |||
| data21 = {{{genre|}}} | |||
| label22 = [[ | |||
| data22 = {{{license|}}} | |||
| label23 = [[ | |||
| data23 = {{{licence|}}} | |||
| label25 = | |||
| data25 = {{#if:{{{website|}}}{{#ifeq:{{{qid|}}}|none|-}} | |||
| {{#ifeq:{{{website|}}} | hide | | {{{website|}}} }} | | {{#ifeq:{{{website|}}} | hide | | {{{website|}}} }} | ||
| {{#if:{{wikidata|property|raw|{{{qid|}}}|P856}} | | {{#if:{{wikidata|property|raw|{{{qid|}}}|P856}} | ||
| Line 111: | Line 96: | ||
}} | }} | ||
}} | }} | ||
| label26 = | | label26 =के रूप में| data26 = {{{AsOf|}}} | ||
| data26 = {{{AsOf|} | |||
}}{{#invoke:Check for unknown parameters | check | showblankpositional=1 | }}{{#invoke:Check for unknown parameters | check | showblankpositional=1 | ||
| unknown = {{main other|[[Category:Pages using Infobox software with unknown parameters|_VALUE_{{PAGENAME}}]]}} | | unknown = {{main other|[[Category:Pages using Infobox software with unknown parameters|_VALUE_{{PAGENAME}}]]}} | ||
| 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> | }}</includeonly><noinclude> | ||
{{ | {{Documentation}} | ||
</noinclude> | </noinclude>[[Category: Templates Vigyan Ready]] | ||
Revision as of 11:01, 26 December 2022
| 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}}} |
|---|---|
| मूल लेखक | {{{author}}} |
| डेवलपर(ओं) | {{{developer}}} |
| आरंभिक रिलीज | {{{released}}} |
| Stable release | {{{latest release version}}}
/ {{{latest release date}}} |
| Preview release | {{{latest preview version}}}
/ {{{latest preview date}}} |
| रिपॉजिटरी | {{{repo}}} |
| इसमें लिखा हुआ | {{{programming language}}} |
| मध्यस्थ | {{{middleware}}} |
| Engine | {{{engine}}} |
| ऑपरेटिंग सिस्टम | {{{operating system}}} |
| प्लेटफॉर्म | {{{platform}}} |
| के साथ शामिल है | {{{included with}}} |
| पूर्वज | {{{replaces}}} |
| उत्तराधिकारी | {{{replaced_by}}} |
| सेवा का नाम | {{{service_name}}} |
| आकार | {{{size}}} |
| मानक(रों) | {{{standard}}} |
| में उपलब्ध | {{{language count}}} languages{{{language footnote}}} |
List of languages {{{language}}} | |
| प्रकार | {{{genre}}} |
| लाइसेंस | {{{license}}} |
| वेबसाइट | {{{website}}} |
| के रूप में | {{{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