Template:CssPre/Doc


 * This is the documentation for undefined. It is transcluded into the template page.

Parameters
All parameters are optional.


 * Named Parameters
 * tag: The name of the HTML element to be rendered. Default value is pre.
 * b: Set to n to indicate that the element is not a block-level element, such as tag=code. By doing so, the display, white-space and word-wrap styles will be suppressed.
 * t: Set to y to indicate that the content is a template. By doing so, leading and trailing braces will be output.
 * custom: Any custom CSS you want to be included in the style attribute. Each style must be properly formatted:
 * content: Anything that should appear within the element. When providing Wikitext that should not be interpreted, surrounded the content with &lt;nowiki&gt;&lt;/nowiki&gt; tags. (see example)


 * Unnamed Parameters
 * 1) width: The value for the width. Default value is 80% The value is used exactly as it is provided. To prevent this parameter from being used, set it to 0. This should be done for inline elements such as tag=code.
 * 2) font-size: The value for the font-size (measured in em). Default value is 1.2
 * 3) pad-size: The value for the padding (measured in em). Default value is 1

No Style

 * Standard PRE block without a style attribute.

Output:

With CssPre

 * Basic example with only the t and content parameters provided.

Output:

Custom CSS

 * Changes the font color to blue using custom.

Output:

Sizes

 * Custom size overrides
 * 1) Width = 50%
 * 2) Font = 1.5
 * 3) Padding = 2

Output:

Inline Element

 * A  element.

Output: