Template:Programming language: Difference between revisions
Jump to navigation
Jump to search
m (Missing brackets.) |
(More work on the template.) |
||
Line 1: | Line 1: | ||
{{#switch: {{lc | {{#switch: {{lc:{{{1|}}}}} | ||
| c = C | | c = C {{main other|[[Category:C software]]}} | ||
| c++ = C++ | | c++ = C++ {{main other|[[Category:C++ software]]}} | ||
| fortran = FORTRAN | | fortran = FORTRAN {{main other|[[Category:FORTRAN software]]}} | ||
| go = Go | | go = Go {{main other|[[Category:Go software]]}} | ||
| java = Java | | java = Java {{main other|[[Category:Java software]]}} | ||
| javascript = JavaScript | | javascript = JavaScript {{main other|[[Category:JavaScript software]]}} | ||
| nasal = Nasal | | nasal = Nasal {{main other|[[Category:Nasal software]]}} | ||
| perl = Perl | | perl = Perl {{main other|[[Category:Perl software]]}} | ||
| php = Php | | php = Php {{main other|[[Category:Php software]]}} | ||
| python = Python | | python = Python {{main other|[[Category:Python software]]}} | ||
| ruby = Ruby | | ruby = Ruby {{main other|[[Category:Ruby software]]}} | ||
| r = R | | r = R {{main other|[[Category:R software]]}} | ||
| shell = Shell script {{main other|[[Category:Shell script software]]}} | | shell = Shell script {{main other|[[Category:Shell script software]]}} | ||
| swift = Swift | | swift = Swift {{main other|[[Category:Swift software]]}} | ||
| #default = Unknown software {{main other|[[Category:Unknown software]]}} | |||
}} | }} | ||
<noinclude> | <noinclude> | ||
Line 28: | Line 29: | ||
{{cbr}} | {{cbr}} | ||
; language: The string representation of the programming language. | ; language: The string representation of the programming language. Capitalisation is ignored. | ||
== Examples == | == Examples == | ||
Line 41: | Line 42: | ||
{{programming language|c++}} | {{programming language|c++}} | ||
=== Nasal === | |||
{{obr}}programming language{{!}}Nasal{{cbr}} | |||
{{programming language|Nasal}} | |||
}} | }} |
Revision as of 12:29, 11 September 2020
Unknown software
The following template description is not displayed when the template is inserted in an article.
Goal
This template is used to process programming language strings to return standardised names and categories.
Usage
Add this to the top of the article describing the software.
{{programming language | language = }}
- language
- The string representation of the programming language. Capitalisation is ignored.
Examples
C++
{{programming language|C++}}
C++
{{programming language|c++}}
C++
Nasal
{{programming language|Nasal}}
Nasal