Content deleted Content added
Changed the incorrect name of one parameter (caption → screenshot caption) | Added wikibooks parameter | Clearly, the TemplateData editor has done more. |
Cobalt pen (talk | contribs) No edit summary |
||
(38 intermediate revisions by 22 users not shown) | |||
Line 1:
{{Documentation subpage}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for unknown parameters}}
{{Uses Wikidata|P856}}
== Syntax ==
{{
|name=''name'' |logo={{{logo}}} |logo caption |screenshot={{{screenshot}}} |screenshot caption
|paradigm=''paradigm'' {{smaller|or}} ''paradigms''
Line 10 ⟶ 11:
|developer={{nowrap|''developer'' {{smaller|or}} ''developers''}}
|released |latest release version |latest release date |latest preview version |latest preview date
|typing | memory management | scope |programming language |platform |operating system |license |file ext
|file format=''file format'' {{smaller|or}} ''file formats''
|website |implementations |dialects |influenced by |influenced |wikibooks={{{wikibooks}}}
}}
<
{{Infobox programming language
| name =
| logo =
| logo caption =
|
| screenshot = <!-- Filename -->
| screenshot caption =
| sampleCode =
| paradigm = <!-- or: | paradigms = -->
| family =
|
|
| released = <!-- or: | year = --> <!-- {{Start date and age|YYYY|MM|DD|df=yes/no}} -->
| latest release version =
| latest release date =
| latest preview version =
| latest preview date =
| typing =
| memory management =
| scope =
| programming language =
| discontinued =
| platform =
| operating system =
| license =
| file ext =
| file format =
| website =
| implementations =
| dialects =
Line 45 ⟶ 49:
| influenced =
}}
</syntaxhighlight>
{{Clear}}
== Example ==
{{hatnote|The following markup is included '''only for illustration purposes'''. It is not intended to provide up-to-date information about [[Python (programming language)|Python]] programming language and should not be updated for the sake of '''truth'''.}}
{{Infobox programming language
| name = Python
| sampleCode = <syntaxhighlight lang="python">
print("Hello, World!")
</syntaxhighlight>
| sampleCode caption = Hello
| logo = Python logo and wordmark.svg
| paradigm = [[Multi-paradigm programming language|Multi-paradigm]]: [[object-oriented programming|object-oriented]], [[imperative programming|imperative]], [[functional programming|functional]], [[procedural programming|procedural]], [[reflective programming|reflective]]
| released = {{Start date and age|1991|df=yes}}
| designer = [[Guido van Rossum]]
| developer = [[Python Software Foundation]]
| latest_release_version = {{Unbulleted list|3.4.3 / {{Start date|2015|02|25|df=yes}}|2.7.10 / {{Start date and age|2015|05|23|df=yes}}}}
| latest_preview_version = 3.5.0b3 / {{Start date and age|2015|07|05|df=yes}}
| typing = [[Duck typing|Duck]], [[dynamic typing|dynamic]], [[strong typing|strong]], [[gradual typing|gradual]] (as of Python 3.5)
| memory management = [[Garbage collection (computer science)|garbage collected]]
| implementations = [[CPython]], [[IronPython]], [[Jython]], [[PyPy]]
| dialects = [[Cython]], [[RPython]], [[Stackless Python]]
| influenced_by = [[ABC (programming language)|ABC]], [[ALGOL 68]], [[C (programming language)|C]], [[C++]], [[Dylan (programming language)|Dylan]], [[Haskell]], [[Icon (programming language)|Icon]], [[Java (programming language)|Java]], [[Lisp (programming language)|Lisp]], [[Modula-3]], [[Perl]]
| influenced = [[Boo (programming language)|Boo]], [[Cobra (programming language)|Cobra]], [[D (programming language)|D]], [[F Sharp (programming language)|F#]], [[Go (programming language)|Go]], [[Groovy (programming language)|Groovy]], [[JavaScript]], [[Julia (programming language)|Julia]], [[Nim (programming language)|Nim]], [[Ruby (programming language)|Ruby]], [[Swift (programming language)|Swift]]
| license = [[Python Software Foundation License]]
| website = {{URL|https://www.python.org/}}
| file_ext = .py, .pyc, .pyd, .pyo, .pyw
| wikibooks = Python Programming
}}
<syntaxhighlight lang="wikitext" style="overflow: auto">
{{Infobox programming language
| name = Python
| logo = Python logo and wordmark.svg
| paradigm = [[multi-paradigm programming language|multi-paradigm]]: [[object-oriented programming|object-oriented]], [[imperative programming|imperative]], [[functional programming|functional]], [[procedural programming|procedural]], [[reflective programming|reflective]]
| released = {{Start date and age|1991|df=yes}}
| designer = [[Guido van Rossum]]
| developer = [[Python Software Foundation]]
| latest_release_version = {{Unbulleted list|3.4.3 / {{Start date|2015|02|25|df=yes}}|2.7.10 / {{Start date|2015|05|23|df=yes}}}}
| latest_preview_version = 3.5.0b3 / {{Start date|2015|07|05|df=yes}}
| typing = [[duck typing|duck]], [[dynamic typing|dynamic]], [[strong typing|strong]], [[gradual typing|gradual]] (as of Python 3.5)
| memory management = [[Garbage collection (computer science)|garbage collected]]
| implementations = [[CPython]], [[IronPython]], [[Jython]], [[PyPy]]
| dialects = [[Cython]], [[RPython]], [[Stackless Python]]
| influenced_by = [[ABC (programming language)|ABC]], [[ALGOL 68]], [[C (programming language)|C]], [[C++]], [[Dylan (programming language)|Dylan]], [[Haskell]], [[Icon (programming language)|Icon]], [[Java (programming language)|Java]], [[Lisp (programming language)|Lisp]], [[Modula-3]], [[Perl]]
| influenced = [[Boo (programming language)|Boo]], [[Cobra (programming language)|Cobra]], [[D (programming language)|D]], [[F Sharp (programming language)|F#]], [[Go (programming language)|Go]], [[Groovy (programming language)|Groovy]], [[JavaScript]], [[Julia (programming language)|Julia]], [[Nim (programming language)|Nim]], [[Ruby (programming language)|Ruby]], [[Swift (programming language)|Swift]]
| license = [[Python Software Foundation License]]
| website = {{URL|https://www.python.org/}}
| file_ext = .py, .pyc, .pyd, .pyo, .pyw
| wikibooks = Python Programming
}}
</syntaxhighlight>
{{clear}}
===Parameters===
{{TemplateData header}}
<templatedata>
{
Line 70 ⟶ 127:
"type": "string",
"required": false,
"description": "Filename for the image; e.g., '
},
"logo size": {
Line 95 ⟶ 152:
"type": "string",
"required": false,
"description": "Caption for the logo. Must only be used to provide anything far more important than 'This is the logo of X'
},
"collapsible": {
Line 107 ⟶ 164:
"type": "string",
"required": false,
"description": "File name for a screenshot of the subject of the infobox
"default": "300px"
},
Line 171 ⟶ 228:
"required": false,
"description": "Whether this product is no longer being developed, thus changing the phrase 'Latest release' in the infobox to 'Final 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, delete it."
},
"ver layout": {
"label": "Version info layout",
"description": "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.",
"autovalue": "simple",
"type": "string"
},
"latest release version": {
Line 176 ⟶ 239:
"type": "string",
"required": false,
"description": "The version number of the latest release of the software product
"aliases": [
"latest_release_version"
Line 217 ⟶ 280:
"required": false,
"description": "Specifies the typing discipline implemented, used, or mandated"
},
"memory management": {
"label": "Memory management",
"type": "string",
"required": false,
"description": "Specifies the memory management model"
},
"scope": {
Line 255 ⟶ 324:
"type": "string",
"required": false,
"description": "Applies only when the subject of the infobox is a computer program. Specifies the programming language with which the subject of the infobox is created. If the program language of the software product has a corresponding article in Wikipedia, please link to it.
"aliases": [
"programming_language"
Line 270 ⟶ 339:
"type": "string",
"required": false,
"description": "The operating system on which implementations of the language works. Please be as accurate as possible in specifying this parameter (but also be mindful of the length) and avoid specifying vague phrases such as Cross-platform (or its redirect, Multi-platform).
"aliases": [
"operating_system"
Line 279 ⟶ 348:
"type": "string",
"required": false,
"description": "Type of the software license under which the consumer is allowed to use the product
},
"File extensions": {
Line 338 ⟶ 407:
"developer",
"discontinued",
"ver layout",
"latest release version",
"latest release date",
Line 343 ⟶ 413:
"latest preview date",
"typing",
"memory management",
"scope",
"implementations",
Line 361 ⟶ 432:
}
</templatedata>
== Microformat ==
{{UF-hcal}}
== See also ==
* {{tl|Infobox software platform}}
* {{tl|Infobox OS}}
* {{tl|Infobox software}}
* {{tl|Infobox file system}}
<includeonly>{{Sandbox other|
| <!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Programming language templates| ]]
[[Category:Computing infobox templates|Programming language]]
[[Category:Infobox templates using Wikidata]]
}}</includeonly>
|