Difference between revisions of "Template:Userbox code"
Jump to navigation
Jump to search
m |
|||
(35 intermediate revisions by 15 users not shown) | |||
Line 1: | Line 1: | ||
{{Userbox | {{Userbox | ||
− | | id = {{{1}}} | + | | id = {{#switch: {{{icon}}} |
+ | | .c = C | ||
+ | | .cpp = {{#if:{{{icon}}}|[[file:c++.png|24px|link=]]}} | ||
+ | | C++ = {{#if:{{{icon}}}|[[file:c++.png|24px|link=]]}} | ||
+ | | fail = Sepples | ||
+ | | c# = C Sharp | ||
+ | | .cs = C Sharp | ||
+ | | objc = Objective-C | ||
+ | | asm = Assembly | ||
+ | | asp = Active Server Pages | ||
+ | | bas = BASIC | ||
+ | | bat = Batch | ||
+ | | bash = Bash | ||
+ | | bf = Brainfuck | ||
+ | | au3 = AutoIt 3 | ||
+ | | eu = Euphoria | ||
+ | | py = Python | ||
+ | | .py = Python | ||
+ | | lsl = Linden Scripting Language | ||
+ | | html = HTML | ||
+ | | css = CSS | ||
+ | | xml = XML | ||
+ | | js = JavaScript | ||
+ | | .js = JavaScript | ||
+ | | java = Java | ||
+ | | .java = Java | ||
+ | | lol = LOLCODE | ||
+ | | pas = Pascal | ||
+ | | pl = Perl | ||
+ | | .pl = Perl | ||
+ | | perl = Perl | ||
+ | | php = PHP: Hypertext Preprocessor | ||
+ | | .php = PHP: Hypertext Preprocessor | ||
+ | | sh = Bourne shell | ||
+ | | vb = Visual Basic | ||
+ | | vb.net = Visual Basic .NET | ||
+ | | vbx = Visual Basic .NET | ||
+ | | vbs = Visual Basic Script | ||
+ | | cob = COBOL | ||
+ | | go = Go | ||
+ | | LUA = Lua | ||
+ | | hex = Hexadecimal Editor (Re-coder) | ||
+ | | #default = {{{1}}} | ||
+ | }} | ||
| id-c = #FF9900 | | id-c = #FF9900 | ||
| id-s = 14 | | id-s = 14 | ||
| info = This user codes in '''{{#switch: {{lc:{{{1}}}}} | | info = This user codes in '''{{#switch: {{lc:{{{1}}}}} | ||
+ | | .c = C | ||
+ | | .cpp = C++ | ||
+ | | fail = Sepples | ||
+ | | c# = C Sharp | ||
+ | | .cs = C Sharp | ||
+ | | objc = Objective-C | ||
+ | | asm = Assembly | ||
+ | | asp = Active Server Pages | ||
+ | | bas = BASIC | ||
+ | | bat = Batch | ||
+ | | bash = Bash | ||
+ | | bf = Brainfuck | ||
+ | | au3 = AutoIt 3 | ||
+ | | eu = Euphoria | ||
| py = Python | | py = Python | ||
− | | | + | | .py = Python |
| lsl = Linden Scripting Language | | lsl = Linden Scripting Language | ||
+ | | html = HTML | ||
+ | | css = CSS | ||
+ | | xml = XML | ||
| js = JavaScript | | js = JavaScript | ||
+ | | .js = JavaScript | ||
+ | | java = Java | ||
+ | | .java = Java | ||
+ | | lol = LOLCODE | ||
+ | | pas = Pascal | ||
+ | | pl = Perl | ||
+ | | .pl = Perl | ||
+ | | perl = Perl | ||
+ | | php = PHP: Hypertext Preprocessor | ||
+ | | .php = PHP: Hypertext Preprocessor | ||
+ | | sh = Bourne shell | ||
| vb = Visual Basic | | vb = Visual Basic | ||
− | |||
| vb.net = Visual Basic .NET | | vb.net = Visual Basic .NET | ||
| vbx = Visual Basic .NET | | vbx = Visual Basic .NET | ||
− | | | + | | vbs = Visual Basic Script |
− | | | + | | cob = COBOL |
− | | | + | | go = Go |
− | | | + | | LUA = Lua |
− | | | + | | hex = Hexadecimal Editor (Re-coder) |
− | + | | #default = {{{1}}} | |
− | |||
− | | #default = {{{1}}} | ||
}}'''. | }}'''. | ||
| info-c = #FFCC99 | | info-c = #FFCC99 | ||
Line 26: | Line 94: | ||
{{Clear}} | {{Clear}} | ||
− | {{ | + | {{documentation|bg=rgb(222,222,222,0.2)}} |
</noinclude> | </noinclude> |
Latest revision as of 04:25, 18 March 2023
{{{1}}} | This user codes in {{{1}}}. |
Parameters and Examples
{{Userbox code}}
Parameter | Description | Example | Preview | ||
---|---|---|---|---|---|
{{{icon}}} | For specifying an icon (if available). | {{Userbox code|icon=C++}} |
| ||
{{{1}}} | For specifying what you code in. | {{Userbox code|C++}} |
|
Pre-defined Languages
The following languages are recognized by this template. If your language is not listed here, please leave a message on the talk page or add it yourself. The languages listed here are only for convenience; you may specify another language (eg: C/C++) without needing it added to the template.
- Asm: Assembly
- ASP: Active Server Pages
- Bas: BASIC
- Bat: Batch
- Bf: Brainfuck
- C#: C Sharp
- Eu: Euphoria
- ObjC: Objective-C
- Py: Python
- Pl: Perl
- LSL: Linden Scripting Language
- JS: JavaScript
- Java: Java
- LOL: LOLCODE
- Pas: Pascal
- PHP: PHP: Hypertext Preprocessor
- Sh: Bourne shell
- VB: Visual Basic
- VBx: Visual Basic .NET
- VBS: Visual Basic Script
- LUA: Lua
- HEX: Hexadecimal Editor (Re-Coder)