Difference between revisions of "Template:Programming language"

From FlightGear wiki
Jump to: navigation, search
(Added Objective-C)
m
Line 15: Line 15:
 
       | nasal      ={{{pre|}}}Nasal<!--
 
       | nasal      ={{{pre|}}}Nasal<!--
 
                   -->{{main other|[[Category:Nasal software]]}}
 
                   -->{{main other|[[Category:Nasal software]]}}
       | objective-C ={{{pre|}}}Objective-C<!--
+
       | objective-c ={{{pre|}}}Objective-C<!--
 
                   -->{{main other|[[Category:Objective-C software]]}}
 
                   -->{{main other|[[Category:Objective-C software]]}}
 
       | perl        ={{{pre|}}}Perl<!--
 
       | perl        ={{{pre|}}}Perl<!--

Revision as of 08:09, 11 September 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