Template:Programming language: Difference between revisions

Unwanted space removal.
(Introduction of the 'pre' parameter to allow for list formatting.)
(Unwanted space removal.)
Line 1: Line 1:
{{#if: {{{1|}}}
{{#if: {{{1|}}}
   | {{#switch: {{lc:{{{1|}}}}}
   | {{#switch: {{lc:{{{1|}}}}}
       | c          = {{{pre|}}}C               {{main other|[[Category:C software]]}}
       | c          = {{{pre|}}}C<!--
       | c++        = {{{pre|}}}C++             {{main other|[[Category:C++ software]]}}
                  -->{{main other|[[Category:C software]]}}
       | fortran    = {{{pre|}}}FORTRAN         {{main other|[[Category:FORTRAN software]]}}
       | c++        = {{{pre|}}}C++<!--
       | go        = {{{pre|}}}Go               {{main other|[[Category:Go software]]}}
                  -->{{main other|[[Category:C++ software]]}}
       | java      = {{{pre|}}}Java             {{main other|[[Category:Java software]]}}
       | fortran    = {{{pre|}}}FORTRAN<!--
       | javascript = {{{pre|}}}JavaScript       {{main other|[[Category:JavaScript software]]}}
                  -->{{main other|[[Category:FORTRAN software]]}}
       | nasal      = {{{pre|}}}Nasal           {{main other|[[Category:Nasal software]]}}
       | go        = {{{pre|}}}Go<!--
       | perl      = {{{pre|}}}Perl             {{main other|[[Category:Perl software]]}}
                  -->{{main other|[[Category:Go software]]}}
       | php        = {{{pre|}}}Php             {{main other|[[Category:Php software]]}}
       | java      = {{{pre|}}}Java<!--
       | python    = {{{pre|}}}Python           {{main other|[[Category:Python software]]}}
                  -->{{main other|[[Category:Java software]]}}
       | ruby      = {{{pre|}}}Ruby             {{main other|[[Category:Ruby software]]}}
       | javascript = {{{pre|}}}JavaScript<!--
       | r          = {{{pre|}}}R               {{main other|[[Category:R software]]}}
                  -->{{main other|[[Category:JavaScript software]]}}
       | shell      = {{{pre|}}}Shell script     {{main other|[[Category:Shell script software]]}}
       | nasal      = {{{pre|}}}Nasal<!--
       | swift      = {{{pre|}}}Swift           {{main other|[[Category:Swift software]]}}
                  -->{{main other|[[Category:Nasal software]]}}
       | #default  = {{{pre|}}}Unknown software {{main other|[[Category:Unknown software]]}}
       | perl      = {{{pre|}}}Perl<!--
                  -->{{main other|[[Category:Perl software]]}}
       | php        = {{{pre|}}}Php<!--
                  -->{{main other|[[Category:Php software]]}}
       | python    = {{{pre|}}}Python<!--
                  -->{{main other|[[Category:Python software]]}}
       | ruby      = {{{pre|}}}Ruby<!--
                  -->{{main other|[[Category:Ruby software]]}}
       | r          = {{{pre|}}}R<!--
                  -->{{main other|[[Category:R software]]}}
       | shell      = {{{pre|}}}Shell script<!--
                  -->{{main other|[[Category:Shell script software]]}}
       | swift      = {{{pre|}}}Swift<!--
                  -->{{main other|[[Category:Swift software]]}}
       | #default  = {{{pre|}}}Unknown software<!--
                  -->{{main other|[[Category:Unknown software]]}}
     }}
     }}
}}
}}
Line 55: Line 70:


=== Multiple languages ===
=== Multiple languages ===
This should fail - the list should be processed using the #titleparts parser function upstream.


   {{obr}}programming language{{!}}C/C++/Nasal{{cbr}}
   {{obr}}programming language{{!}}C/C++/Nasal{{cbr}}