Template:Monoblock/doc

Usage
renders as:

This template is for formatting blocks of content (the only parameter) as monospaced (nonproportional) text. It is simply a quick shorthand for the necessary CSS code. It is a replacement for (often multiple instances of)  which is a sloppy old-school HTML way of achieving the same effect. (While the  element does not yet appear among those marked as "Deprecated" in the W3C's "Index of the HTML 4 Elements", most other elements that have only a stylistic font effect and no semantic meaning have been so deprecated since 1998 in favor of CSS styling (and the few that have not have been generally deprecated by the Web development community anyway).  Use of this template better separates content and presentation in Wikipedia articles.

This template should be used where multi-block content is being rendered in monospaced text for purely stylistic/display reasons, where this display has no particular semantic significance. I.e., it should be used very rarely, and for good reason.

It should not be used to indicate source code, nor for variables or variable input (use  and , respectively).

It can be used to mark up content that would otherwise have been marked up with (several instances of) or  (definitions) – elements not supported by the MediaWiki software – but   may be more appropriate, depending upon the content and context.

It should not be used to mark up short inline snippets that do not span multiple paragraphs, sections or other block elements, as it uses, which is an block element, and depending upon what other CSS classes are involved, it may lead to unintended line breaks. See Mono for a -based inline version.