In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

Template:Userbox code/doc: Difference between revisions

From WiiBrew
Jump to navigation Jump to search
ExtremsAlt (talk | contribs)
No edit summary
mNo edit summary
 
(9 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}


=== Usage ===
=== Parameters and Examples ===
<tt><nowiki>{{Userbox code|your code id}}</nowiki></tt>


=== Example ===
<nowiki>{{Userbox code}}</nowiki>
<tt><nowiki>{{Userbox code|C++}}</nowiki></tt> produces this:
{|class="wikitable" | style="width:100%; text-align:center;"
{{Userbox code|C++}}
|-
{{Clear}}
! Parameter
! Description
! Example
! width=14$; | Preview
|-
| <span style="background:rgb(12,12,12,.5); color:white; border-radius:0.3em; padding:0.2em; font-family:monospace;"><nowiki>{{{icon}}}</nowiki></span>
| For specifying an icon (if available).
| <span style="background:rgb(12,12,12,.5); color:white; border-radius:0.3em; padding:0.2em; font-family:monospace;"><nowiki>{{Userbox code|icon=C++}}</nowiki></span>
| {{Userbox code|icon=C++}}
|-
| <span style="background:rgb(12,12,12,.5); color:white; border-radius:0.3em; padding:0.2em; font-family:monospace;"><nowiki>{{{1}}}</nowiki></span>
| For specifying what you code in.
| <span style="background:rgb(12,12,12,.5); color:white; border-radius:0.3em; padding:0.2em; font-family:monospace;"><nowiki>{{Userbox code|C++}}</nowiki></span>
| {{Userbox code|C++}}
|}


=== Pre-defined Languages ===
=== Pre-defined Languages ===
Line 22: Line 35:
* '''ObjC''': Objective-C
* '''ObjC''': Objective-C
* '''Py''': Python
* '''Py''': Python
* '''Pl''': Perl
* '''LSL''': Linden Scripting Language
* '''LSL''': Linden Scripting Language
* '''JS''': JavaScript
* '''JS''': JavaScript
* '''Java''': Java
* '''LOL''': LOLCODE
* '''LOL''': LOLCODE
* '''Pas''': Pascal
* '''Pas''': Pascal
Line 31: Line 46:
* '''VBx''': Visual Basic .NET
* '''VBx''': Visual Basic .NET
* '''VBS''': Visual Basic Script
* '''VBS''': Visual Basic Script
* '''LUA''': Lua
* '''HEX''': Hexadecimal Editor (Re-Coder)

Latest revision as of 01:06, 18 March 2023

Parameters and Examples

{{Userbox code}}
Parameter Description Example Preview
{{{icon}}} For specifying an icon (if available). {{Userbox code|icon=C++}}
This user codes in {{{1}}}.
{{{1}}} For specifying what you code in. {{Userbox code|C++}}
C++ This user codes in 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)