ਫਰਮਾ:Right/doc
This is a documentation subpage for ਫਰਮਾ:Right. It contains usage information, categories and other content that is not part of the original ਫਰਮਾ page. |
This template is used on approximately 1,30,000 pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
This template uses block elements, e.g. See H:DIVSPAN for details. |
Usage
[ਸੋਧੋ]This template aligns text to the right. For example,
{{right|'''Example text'''}}
yields
Example text
Text can be offset from the right margin by use of a second offset parameter, implicitly or by name:
{{right|'''Example text'''|3em}}
and
{{right|'''Example text'''|offset=3em}}
both yield
Example text
{{right}} versus {{float right}}
[ਸੋਧੋ]This template, {{right}}, retains the text in the normal flow, but causes it to be aligned along the right margin. {{float right}} takes a block of text out of the normal text flow, and floats it as far right as possible, without changing how it is aligned; other text can flow around it, as if it were a picture or diagram.
{{right}} | {{float right}} |
---|---|
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
This text is Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. |
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
This text is Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. |
TemplateData
[ਸੋਧੋ]Right
Align text to the right.
ਮਾਪਦੰਡ | ਵੇਰਵਾ | ਕਿਸਮ | ਦਰਜਾ | |
---|---|---|---|---|
Text | 1 | The text to right-align. | Content | required |
Offset | offset 2 | The right margin.
| String | suggested |
Top leading/padding | leading-top | The space to leave at the top of the aligned block. Value in ems (do not specify units).
| String | suggested |
Style | style | Any other CSS rules to apply to the block. | String | optional |
See also
[ਸੋਧੋ]- {{Left}}: left aligns a block of text
- {{Right inline}}: Inline version of this template.
- {{Block right}}: places a block of text in the right of the page, without affecting the text alignment within that block
- {{Continues}}: adds the first word of the next page, right aligned, to the page footer