Template:XCode

From Wikibooks, open books for an open world
Jump to: navigation, search
Computer code {{{1}}}


A simple template for marking a code example in the text. (See the Template:Code for more options.)

Usage:

{{XCode|Content of a computer code.}}
{{XCode|1=A code, which contains formatting characters as =, must be preceded with "1=" in the template.}}

There are also similar: Template:XNote, Template:XConsole, Template:XWarning and Template:XExample.