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
Line 5: Line 5:


=== Example ===
=== Example ===
<tt><nowiki>{{Userbox code|C++}}</nowiki></tt> produces this:
 
{{Userbox code|C++}}
<nowiki>{{Userbox code}}</nowiki>
{{Clear}}
{|class="wikitable" | style="width:100%; text-align:center;"
|-
! 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 ===

Revision as of 16:47, 17 March 2023

Usage

{{Userbox code|your code id}}

Example

{{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)