Template:Infobox programming language/doc: Difference between revisions

Content deleted Content added
Undid revision 768980862 by KamranMackey (talk) Oops. Bad edit on my part. Reverted.
No edit summary
 
(30 intermediate revisions by 18 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]]) -->
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for unknown parameters}}
{{Uses Wikidata|P856}}
 
== Syntax ==
{{GenericParameter templatenames demoexample |_display=italics
|name=''name'' |logo={{{logo}}} |logo caption |screenshot={{{screenshot}}} |screenshot caption
|paradigm=''paradigm'' &nbsp;{{smaller|or}}&nbsp;&nbsp;''paradigms''
Line 10 ⟶ 11:
|developer={{nowrap|''developer'' &nbsp;{{smaller|or}}&nbsp;&nbsp;''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'' &nbsp;{{smaller|or}}&nbsp;&nbsp;''file formats''
|website |implementations |dialects |influenced by |influenced |wikibooks={{{wikibooks}}}
}}
<presyntaxhighlight lang="wikitext" style="overflow:auto;">
{{Infobox programming language
| name = <!-- otherwise defaults to {{PAGENAME}} -->
| logo = <!-- (filename)Filename -->
| logo caption =
| screenshotcollapsible = <!-- (filename)to make screenshot collapsible -->
| screenshot = <!-- Filename -->
| screenshot caption =
| paradigmsampleCode =
| paradigm = <!-- or: | paradigms = -->
| family =
| designer = <!-- or: | designers = -->
| developer = <!-- or: | developers = -->
| released = <!-- or: | year = --> <!-- {{Start date and age|YYYY|MM|DD|df=yes/no}} -->
| latest release version =
| latest release date = <!-- {{Start date and age|YYYY|MM|DD|df=yes/no}} -->
Line 31 ⟶ 34:
| latest preview date = <!-- {{Start date and age|YYYY|MM|DD|df=yes/no}} -->
| typing =
| memory management =
| scope =
| programming language =
| discontinued =
| platform =
| operating system =
Line 39 ⟶ 43:
| file ext =
| file format = <!-- or: | file formats = -->
| website = <!-- {{urlURL|www.example.com}} -->
| implementations =
| dialects =
Line 45 ⟶ 49:
| influenced =
}}
</syntaxhighlight>
</pre>
 
{{Clear}}
Line 53 ⟶ 57:
{{Infobox programming language
| name = Python
| sampleCode = <syntaxhighlight lang="python">
print("Hello, World!")
</syntaxhighlight>
| sampleCode caption = Hello
| logo = Python logo and wordmark.svg
| logo_size = 260px
| 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}}
Line 62 ⟶ 69:
| 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 (programming language)|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#]], [[Falcon (programming language)|Falcon]], [[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]]
| operating_system = [[Cross-platform]]
| license = [[Python Software Foundation License]]
| website = {{URL|https://www.python.org/}}
Line 73 ⟶ 80:
}}
 
<presyntaxhighlight lang="wikitext" style="overflow: auto">
{{Infobox programming language
| name = Python
| logo = Python logo and wordmark.svg
| logo_size = 260px
| 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}}
Line 85 ⟶ 91:
| 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 (programming language)|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#]], [[Falcon (programming language)|Falcon]], [[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]]
| operating_system = [[Cross-platform]]
| license = [[Python Software Foundation License]]
| website = {{URL|https://www.python.org/}}
Line 95 ⟶ 101:
| wikibooks = Python Programming
}}
</syntaxhighlight>
</pre>
{{-clear}}
 
===Parameters===
{{TemplateData header}}
{{TemplateDataHeader}}
<templatedata>
{
Line 121 ⟶ 127:
"type": "string",
"required": false,
"description": "Filename for the image; e.g., 'File:Monodevelop Logo.svg'. When the language does not have a logo, as e.g. Fortran or Cobol and you place an image here, please use the logo caption to explain what you're showing. Please don't make up logos."
},
"logo size": {
Line 146 ⟶ 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'.; e.g., used for inserting {{ffdc}} or {{deletable image-caption}}."
},
"collapsible": {
Line 158 ⟶ 164:
"type": "string",
"required": false,
"description": "File name for a screenshot of the subject of the infobox,; e.g., 'File:Monodevelop-main-window.png'",
"default": "300px"
},
Line 233 ⟶ 239:
"type": "string",
"required": false,
"description": "The version number of the latest release of the software product.; Ee.g., 'v1.5', '2008 (v12.2)'. Applicable only if the subject is a computer program,; e.g., an IDE or development tool.",
"aliases": [
"latest_release_version"
Line 274 ⟶ 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 312 ⟶ 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. E.g.Example: '[[C++]] and [[C Sharp (programming language)|C#]]'.",
"aliases": [
"programming_language"
Line 327 ⟶ 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). E.gIf the software product is an operating system–independent web app, ignore this parameter. Examples of valid use cases: '[[Microsoft WindowsUnix-like]]' or, '[[Windows]] and [[macOS]]', '[[Windows XP]] and later'. If the software is an operating system–independent web application, ignore this parameter.",
"aliases": [
"operating_system"
Line 336 ⟶ 348:
"type": "string",
"required": false,
"description": "Type of the software license under which the consumer is allowed to use the product.; Ee.g., '[[Proprietary software|Proprietary]] [[commercial software]]', '[[Freeware]]', '[[Free software]]', '[[GNU General Public License]]', '[[BSDLicense]]'."
},
"File extensions": {
Line 401 ⟶ 413:
"latest preview date",
"typing",
"memory management",
"scope",
"implementations",
Line 423 ⟶ 436:
{{UF-hcal}}
 
== See also ==
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|
* {{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| ]]