Template:Programming language: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (fix Lua) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 13: | Line 13: | ||
| javascript ={{{pre|}}}JavaScript<!-- | | javascript ={{{pre|}}}JavaScript<!-- | ||
-->{{main other|[[Category:JavaScript software]]}} | -->{{main other|[[Category:JavaScript software]]}} | ||
| lua ={{{pre|}}}Lua<!-- | |||
-->{{main other|[[Category:Lua software]]}} | |||
| nasal ={{{pre|}}}Nasal<!-- | | nasal ={{{pre|}}}Nasal<!-- | ||
-->{{main other|[[Category:Nasal software]]}} | -->{{main other|[[Category:Nasal software]]}} | ||
Line 19: | Line 21: | ||
| perl ={{{pre|}}}Perl<!-- | | perl ={{{pre|}}}Perl<!-- | ||
-->{{main other|[[Category:Perl software]]}} | -->{{main other|[[Category:Perl software]]}} | ||
| php ={{{pre|}}} | | php ={{{pre|}}}PHP<!-- | ||
-->{{main other|[[Category: | -->{{main other|[[Category:PHP software]]}} | ||
| python ={{{pre|}}}Python<!-- | | python ={{{pre|}}}Python<!-- | ||
-->{{main other|[[Category:Python software]]}} | -->{{main other|[[Category:Python software]]}} |
Latest revision as of 12:42, 5 October 2020
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 = | pre = }}
- language
- The string representation of the programming language. Capitalisation is ignored.
- pre
- Text to prefix prior to the link text. This is useful for creating lists.
Examples
C++
{{programming language|C++}}
C++
{{programming language|c++}}
C++
Nasal
{{programming language|Nasal}}
Nasal
Multiple languages
This should fail - the list should be processed using the #titleparts parser function upstream.
{{programming language|C/C++/Nasal}}
C/C++/Nasal