This is a documentation subpage for Template:Class block. It contains usage information, categories and other content that is not part of the original template page. |
This template uses block elements, e.g. See H:DIVSPAN for details. |
Usage
editCreate a block that applies one or more classes. This is intended for use in conjunction with CSS via H:Page styles.
The template differs from most other templates in Category:Templates applying classes for page styles in that is has no intrinsic semantic content other than the class provided.
- 1 The class name (or multiple, separated by spaces)
- 2 The block content.
- style 'inline' style overrides on a per invocation basis. USE with caution.
{{class block/s}} and {{class block/e}} are provided for spanning page breaks.
Example
._class_block_demo {
text-align: center;
color: green;
font-size: 150%;
}
{{class block|_class_block_demo|Content}}
Content