Template:පිටුව මැද/උපදෙස්
This is a documentation subpage for Template:පිටුව මැද. It contains usage information, categories and other content that is not part of the original template page. |
This template uses TemplateStyles: |
This template uses block elements, e.g. See H:DIVSPAN for details. |
භාවිතය
editThis template center-aligns text. For example,
Example
{{පිටුව මැද|'''Example text'''}}
Example text
Other parameters
editstyle
editWhere there is a need to specify the style of text for the whole <div>...</div> item, an optional style parameter can be used.
This can be useful when the body of the template is not a single inline item but a multi-paragraph structure. If the formatting in question has a "block" template, you can also nest that inside or outside the {{center}}
template:
The following solutions are then applicable.
Redirects
edit- {{මැද}}
Tracking categories
edit- Category:Pages using center with no text argument—Pages where the template is called with no text or first argument, typically because the content contains an = or otherwise confuses the parser
මේවාත් බලන්න
edit- Template:Block center
- Template:Center block
- Template:Center inline (span-based version)
Template data
editපිටුව මැද
Align text to the center
Parameter | Description | Type | Status | |
---|---|---|---|---|
style | style | Additional CSS styles to apply to the block | Content | optional |
text | text 1 | The text to center, this can be more than one paragraph. | Content | required |
nomargin | nomargin | no description
| String | optional |
nocat | nocat | no description | Unknown | optional |