Template:Language: Difference between revisions

From Rosetta Code
Content added Content deleted
(I think I got rid of the whitespace)
(Undo revision 337588 by Tigerofdarkness (talk) Change didn't work)
Tag: Undo
 
(47 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{infobox_begin}}{{Language/Icon}}'''{{PAGENAME}}'''<br/> This '''programming language''' may be used to instruct a computer to perform a task.
<div class="infobox" style="width: 2in">
{{#if:{{{site|}}}|{{{!}}style="text-align: left; font-size: 75%; background: transparent;"
<big>'''Programming Language'''</big><br />
{{PAGENAME}} is a programming language. It may be used to instruct computers to accomplish a variety of tasks which may or may not be domain-specific.
{{#if:{{{site|}}}|{{{!}}style="text-align: left; font-size: 75%; background-color: #f9f9f9;"
{{!}}-
{{!}}-
![{{{site}}} Official website]
![{{{site}}} Official website]
{{!}}}
{{!}}}
}}
}}
{|style="text-align: left; font-size: 75%; background-color: #f9f9f9;"
{|style="text-align: left; font-size: 75%; background: transparent;"
{{#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]]|both = Interpreted or compiled [[Category:Execution method/Interpreted]][[Category:Execution method/Compiled]]}}
{{!}}-
{{!}}-
}}
}}
Line 37: Line 35:
}}
}}
{{#if: {{{express|}}}|![[:Category:Typing/Expression|Type expression]]:
{{#if: {{{express|}}}|![[:Category:Typing/Expression|Type expression]]:
{{!}}{{ucfirst:{{{express}}}}}[[Category:Typing/Expression/{{ucfirst:{{{express}}}}}]]
{{!}}{{#ifeq: {{{express}}}|both|Implicit, Explicit[[Category:Typing/Expression/Implicit]][[Category:Typing/Expression/Explicit]]|{{ucfirst:{{{express}}}}}
[[Category:Typing/Expression/{{ucfirst:{{{express}}}}}]]}}
{{!}}-
{{!}}-
}}
}}
Line 45: Line 44:
{{!}}-
{{!}}-
}}
}}
{{#if: {{{untyped|}}}|!{{#ifeq: {{{untyped}}}|yes|Untyped:}}
{{#if: {{{untyped|}}}|!{{#ifeq: {{{untyped}}}|yes|Typing:
{{!}}{{#ifeq: {{{untyped}}}|yes|yes[[Category:Typing/Untyped]]}}
{{!}}Untyped[[Category:Typing/Untyped]]}}
{{!}}-
{{!}}-
}}
}}
Line 53: Line 52:
{{!}}-
{{!}}-
}}
}}
{{#ifeq: {{#expr: {{{LCT|0}}} or {{{bnf|0}}} or {{#ifeq: {{{hopl|yes}}} | yes | 1 | 0}} }}|0||!See Also:}}
!See Also:
|{{#ifeq: {{{hopl|yes}}}|yes|{{*}}{{#if: {{{hopl id|}}}|{{HOPL|id={{{hopl id}}} }}|{{HOPL}} }}|}}
|{{HOPL}}{{#if:{{{LCT|}}}|<br>[[Language Comparison Table#{{PAGENAME}}|{{PAGENAME}} compared to other languages]]}}
{{#if: {{{bnf|}}}|{{*}} [{{{bnf}}} BNF Grammar for {{PAGENAME}}]}}
{{#ifeq:{{{LCT|}}}|yes|{{*}} [[Language Comparison Table#{{PAGENAME}}|{{PAGENAME}} compared to other languages]]}}
|}
|}
Listed below are all of the tasks on Rosetta Code which have been solved using {{PAGENAME}}.</div><div class="infobox" style="width: 2in"><big>'''Your Help Needed'''</big><br />If you know {{PAGENAME}}, please write code for some of the [[Reports:Tasks not implemented in {{PAGENAME}}|unimplemented tasks]] or assist updating those [[:Category:{{PAGENAME}} examples needing attention|examples that need attention]].</div><includeonly>[[Category:Programming Languages|{{uc:{{PAGENAME}}}}]][[Category:Solutions by Programming Language|{{uc:{{PAGENAME}}}}]]</includeonly><noinclude>This box is primarily used in category pages (click "What links here" in the navbar on the left), not all of which will have much information in them. If a language category page has too little content, but too many articles, the infobox will overlap the article list.
Listed below are all of the tasks on Rosetta Code which have been solved using {{PAGENAME}}.{{infobox_end}}<includeonly>[[Category:Programming Languages|{{uc:{{PAGENAME}}}}]]{{#set:is language=true}}</includeonly><noinclude>This box is primarily used in category pages (click "What links here" in the navbar on the left), not all of which will have much information in them. If a language category page has too little content, but too many articles, the infobox will overlap the article list.


Usage:
Usage:
{|style="text-align: center;"
{|class="wikitable" style="text-align: center;"
!Param name
!Param name
!values
!values
!meaning
!meaning
|-
|-
|exec
|exec
|"machine", "interpreted", or "bytecode"
|"machine", "interpreted", "bytecode", or "both"
|execution method
|execution method
|-
|-
Line 93: Line 94:
|-
|-
|express
|express
|"implicit" or "explicit"
|"implicit", "explicit", or "both"
|type expression
|type expression
|-
|-
Line 99: Line 100:
|"static", "dynamic", or "both"
|"static", "dynamic", or "both"
|type checking
|type checking
|-
|untyped
|"yes" or undefined
|"yes" if the language has no type system
|-
|-
|tags
|tags
|a list of lang tag arguments
|a list of lang tag arguments
|this language's corresponding lang tag argument
|this language's corresponding lang tag argument
|-
|hopl
|"yes" or undefined are the same, any other value is essentially "no"
|whether there should be a link to the HOPL from this language page. If defined and non-"yes" there will be no link. If undefined there will be a link.
|-
|hopl id
|id number like "1558"
|id number from HOPL. If defined, link to HOPL bypasses search page.
|-
|-
|LCT
|LCT
|"yes" or "no"
|"yes" or "no"
|whether this language has an entry in the [[Language Comparison Table]]
|whether this language has an entry in the [[Language Comparison Table]]. '''Only use "yes" if you have added it to the LCT or plan to add it shortly.'''
|-
|bnf
|(URL)
|Where the BNF grammar for this language is located or may be found. This should remain undefined if there is no BNF.
|}
|}
{{template}}</noinclude>
{{template}}</noinclude>

Latest revision as of 14:55, 25 February 2023

Language
Language
This programming language may be used to instruct a computer to perform a task.
See Also:


Listed below are all of the tasks on Rosetta Code which have been solved using Language.

This box is primarily used in category pages (click "What links here" in the navbar on the left), not all of which will have much information in them. If a language category page has too little content, but too many articles, the infobox will overlap the article list.

Usage:

Param name values meaning
exec "machine", "interpreted", "bytecode", or "both" execution method
site a full URL official language website
gc "yes" or "no" garbage collection
parampass "value", "reference", or "both" parameter passing mode(s)
safety "safe", "unsafe", or "both" type safety
strength "strong" or "weak" type strength
compat "nominative", "structural", "both", or "duck" type compatibility
express "implicit", "explicit", or "both" type expression
checking "static", "dynamic", or "both" type checking
untyped "yes" or undefined "yes" if the language has no type system
tags a list of lang tag arguments this language's corresponding lang tag argument
hopl "yes" or undefined are the same, any other value is essentially "no" whether there should be a link to the HOPL from this language page. If defined and non-"yes" there will be no link. If undefined there will be a link.
hopl id id number like "1558" id number from HOPL. If defined, link to HOPL bypasses search page.
LCT "yes" or "no" whether this language has an entry in the Language Comparison Table. Only use "yes" if you have added it to the LCT or plan to add it shortly.
bnf (URL) Where the BNF grammar for this language is located or may be found. This should remain undefined if there is no BNF.

This is a template. There are many others. See Category:RCTemplates for a complete list of templates.