This is Gentoo's testing wiki. It is a non-operational environment and its textual content is outdated.

Please visit our production wiki at https://wiki.gentoo.org

Template:Code

From Gentoo Wiki (test)
Jump to:navigation Jump to:search
[edit

Documentation

Note
This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages.

As this template is widely used in our wiki, it may be protected in which case only staff members can change it. Use the discussion page to propose enhancements or fixes, or to voice your opinion.

Use this template to show a code box with some content.

Parameters

1. unnamed
Add some description (optional as can be blank).
2. unnamed
Add the code.

Usage

See the template's testcases:


Parameter: 1. unnamed (empty), 2. unnamed
Wiki code {{Code||<pre> content this that </pre>}}

Main version
Code

'"`UNIQ--pre-00000001-QINU`"'

This is a deprecated template. Help us update this template!

Sandbox version
Parameter: 1. unnamed, 2. unnamed
Wiki code {{Code|some description|<pre> content this that </pre>}}

Main version
Codesome description

'"`UNIQ--pre-00000005-QINU`"'

This is a deprecated template. Help us update this template!

Sandbox version
Note
The above documentation is transcluded from Template:Code/doc. (edit | history)
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.
Please add categories and interwikis to the /doc subpage. (See the subpages of this template.)