Template:Programming language
From Wikibooks, the open-content textbooks collection
| c-4 | This user is an expert programmer in C. |
|---|
Usage
{{programming language|c|4}}
Copy and paste the example code above, and replace "c" with the desired language's code and "4" with one of the following characters representing your proficiency level:
| Level | Description |
|---|---|
| 1 | This user is a beginning coder in this language. |
| 2 | This user is an intermediate coder in this language. |
| 3 | This user is an advanced coder in this language. |
| 4 | This user is an expert coder in this language. |
Customizing the format
It is possible to customize the behavior and appearance of the template with the following override parameters (for example, {{programming language|c|4|align=left}}).
| align | Set the alignment on the page. Possible values are left, center, and right (default). This also sets appropriate clearing, so that the boxes will stack automatically in that position (you can override this with the "css-box" override below). |
|---|---|
| css-box | Apply arbitrary CSS to the box. |
| css-left | Apply arbitrary CSS to the left cell. |
| css-right | Apply arbitrary CSS to the right (main) cell. |
| category | Setting this parameter to empty (category=) displays the language box without categorizing the page. For the opposite effect—categorizing the page without displaying the box, see the {{Programming language/category}} template. |
Languages supported
See Wikibooks:Userboxes/Programming for a list of programming languages supported.