Template:Language: Difference between revisions

Content added Content deleted
(The ! template seems to work for getting rid of the site table whitespace, but I can't get it to work for the other tables)
(I think I got rid of the whitespace)
Line 8: Line 8:
}}
}}
{|style="text-align: left; font-size: 75%; background-color: #f9f9f9;"
{|style="text-align: left; font-size: 75%; background-color: #f9f9f9;"
{{#if: {{{exec|}}}|{{!}}-
|-
!{{#if: {{{exec|}}}|[[:Category:Execution method|Execution method]]:}}
![[:Category:Execution method|Execution method]]:
|{{#switch: {{lc:{{{exec|}}}}}|machine = Compiled (machine code) [[Category:Execution method/Compiled/Machine code]]|interpreted = Interpreted [[Category:Execution method/Interpreted]]|bytecode = Compiled (bytecode) [[Category:Execution method/Compiled/Bytecode]]}}
{{!}}{{#switch: {{lc:{{{exec|}}}}}|machine = Compiled (machine code) [[Category:Execution method/Compiled/Machine code]]|interpreted = Interpreted [[Category:Execution method/Interpreted]]|bytecode = Compiled (bytecode) [[Category:Execution method/Compiled/Bytecode]]}}
{{!}}-
|-
}}
!{{#if: {{{gc|}}}|[[:Category:Garbage collection|Garbage collected]]:}}
|{{#if: {{{gc|}}}|{{ucfirst:{{{gc}}}}}[[Category:Garbage collection/{{ucfirst:{{{gc}}}}}]]}}
{{#if: {{{gc|}}}|![[:Category:Garbage collection|Garbage collected]]:
{{!}}{{ucfirst:{{{gc|}}}}}[[Category:Garbage collection/{{ucfirst:{{{gc}}}}}]]
|-
{{!}}-
!{{#if: {{{parampass|}}}|[[:Category:Parameter passing|Parameter passing methods]]:}}
}}
|{{#if: {{{parampass|}}}|{{#ifeq: {{{parampass}}}|both| By reference, By value[[Category:Parameter passing/By reference]][[Category:Parameter passing/By value]]|
By {{lc:{{{parampass}}}}}[[Category:Parameter passing/By {{lc:{{{parampass}}}}}]]}}}}
{{#if: {{{parampass|}}}|![[:Category:Parameter passing|Parameter passing methods]]:
{{!}}{{#ifeq: {{{parampass}}}|both| By reference, By value[[Category:Parameter passing/By reference]][[Category:Parameter passing/By value]]|
|-
!{{#if: {{{safety|}}}|[[:Category:Typing|Type safety]]:}}
By {{lc:{{{parampass}}}}}[[Category:Parameter passing/By {{lc:{{{parampass}}}}}]]}}
{{!}}-
|{{#if: {{{safety|}}}|{{#ifeq: {{{safety}}}|both|Safe, Unsafe[[Category:Typing/Safe]][[Category:Typing/Unsafe]]|{{ucfirst:{{{safety}}}}}
}}
[[Category:Typing/{{ucfirst:{{{safety}}}}}]]}}}}
{{#if: {{{safety|}}}|![[:Category:Typing|Type safety]]:
|-
!{{#if: {{{strength|}}}|[[:Category:Typing|Type strength]]:}}
{{!}}{{#ifeq: {{{safety}}}|both|Safe, Unsafe[[Category:Typing/Safe]][[Category:Typing/Unsafe]]|{{ucfirst:{{{safety}}}}}
|{{#if: {{{strength|}}}|{{ucfirst:{{{strength}}}}}<br>[[Category:Typing/{{ucfirst:{{{strength}}}}}]]}}
[[Category:Typing/{{ucfirst:{{{safety}}}}}]]}}
{{!}}-
|-
}}
!{{#if: {{{compat|}}}|[[:Category:Typing/Compatibility|Type compatibility]]:}}
{{#if: {{{strength|}}}|![[:Category:Typing|Type strength]]:
|{{#if: {{{compat|}}}|{{#ifeq: {{{compat}}}|both|Nominative, Structural[[Category:Typing/Compatibility/Nominative]][[Category:Typing/Compatibility/Structural]]|{{ucfirst:{{{compat}}}}}
[[Category:Typing/Compatibility/{{ucfirst:{{{compat}}}}}]]}}}}
{{!}}{{ucfirst:{{{strength}}}}}<br>[[Category:Typing/{{ucfirst:{{{strength}}}}}]]
{{!}}-
|-
}}
!{{#if: {{{express|}}}|[[:Category:Typing/Expression|Type expression]]:}}
|{{#if: {{{express|}}}|{{ucfirst:{{{express}}}}}[[Category:Typing/Expression/{{ucfirst:{{{express}}}}}]]}}
{{#if: {{{compat|}}}|![[:Category:Typing/Compatibility|Type compatibility]]:
{{!}}{{#ifeq: {{{compat}}}|both|Nominative, Structural[[Category:Typing/Compatibility/Nominative]][[Category:Typing/Compatibility/Structural]]|{{ucfirst:{{{compat}}}}}
|-
[[Category:Typing/Compatibility/{{ucfirst:{{{compat}}}}}]]}}
!{{#if: {{{checking|}}}|[[:Category:Typing/Checking|Type checking]]:}}
{{!}}-
|{{#if: {{{checking|}}}|{{#ifeq: {{{checking}}}|both|Dynamic, Static[[Category:Typing/Checking/Dynamic]][[Category:Typing/Checking/Static]]|
}}
{{ucfirst:{{{checking|}}}}}[[Category:Typing/Checking/{{ucfirst:{{{checking}}}}}]]}}}}
{{#if: {{{express|}}}|![[:Category:Typing/Expression|Type expression]]:
|-
!{{#if: {{{untyped|}}}|{{#ifeq: {{{untyped}}}|yes|Untyped:}}}}
{{!}}{{ucfirst:{{{express}}}}}[[Category:Typing/Expression/{{ucfirst:{{{express}}}}}]]
{{!}}-
|{{#if: {{{untyped|}}}|{{#ifeq: {{{untyped}}}|yes|yes[[Category:Typing/Untyped]]}}}}
}}
|-
!{{#if: {{{tags|}}}|[[Help:Syntax_Highlighting|Lang tag(s)]]:}}
{{#if: {{{checking|}}}|![[:Category:Typing/Checking|Type checking]]:
{{!}}{{#ifeq: {{{checking}}}|both|Dynamic, Static[[Category:Typing/Checking/Dynamic]][[Category:Typing/Checking/Static]]|
|{{#if: {{{tags|}}}|{{{tags}}}}}
{{ucfirst:{{{checking|}}}}}[[Category:Typing/Checking/{{ucfirst:{{{checking}}}}}]]}}
|-
{{!}}-
}}
{{#if: {{{untyped|}}}|!{{#ifeq: {{{untyped}}}|yes|Untyped:}}
{{!}}{{#ifeq: {{{untyped}}}|yes|yes[[Category:Typing/Untyped]]}}
{{!}}-
}}
{{#if: {{{tags|}}}|![[Help:Syntax_Highlighting|Lang tag(s)]]:
{{!}}{{{tags}}}
{{!}}-
}}
!See Also:
!See Also:
|{{HOPL}}{{#if:{{{LCT|}}}|<br>[[Language Comparison Table#{{PAGENAME}}|{{PAGENAME}} compared to other languages]]}}
|{{HOPL}}{{#if:{{{LCT|}}}|<br>[[Language Comparison Table#{{PAGENAME}}|{{PAGENAME}} compared to other languages]]}}