Jump to content

Template:පිටුව මැද/උපදෙස්

From Wikisource

භාවිතය

[edit]

This template center-aligns text. For example,

Example

{{පිටුව මැද|'''Example text'''}}

Example text

Other parameters

[edit]

style

[edit]

Where 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.

Template:Flex wrap centre

Redirects

[edit]

Tracking categories

[edit]

මේවාත් බලන්න

[edit]

Template data

[edit]
This is the TemplateData documentation for this template used by VisualEditor and other tools.

පිටුව මැද

Align text to the center

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
stylestyle

Additional CSS styles to apply to the block

Contentoptional
texttext 1

The text to center, this can be more than one paragraph.

Contentrequired
nomarginnomargin

no description

Suggested values
yes, no
Stringoptional
nocatnocat

no description

Unknownoptional