সাঁচ:Zfloat right/doc
অৱয়ব
Usage
[সম্পাদনা কৰক]This template floats text to the right without changing textual alignment, however (unlike {{float right}}) the remaining text on the page is overlaid as if the floated text is not present at all. This permits such effects as:
{{zfloat right|{{nowrap|'''This text is floated right with no offset.'''}}}}{{centre|''This text is truly centred.''}}
which yields
This text is floated right with no offset.
This text is truly centred.
whereas (traditional approach):
{{float right|'''This text is floated right.'''}}{{centre|''This text is '''not''' truly centred.''}}
yields
This text is floated right.
This text is not truly centred.
Other applications:
{{zfloat right|{{nowrap|'''10em offset.'''}}|right=10em}}{{centre|Centred reference text.}}
yields
10em offset.
Centred reference text.
{{zfloat right|{{nowrap|'''12em wide.'''}}|right=10em|width=12em}}{{centre|Centred reference text.}}
yields
12em wide.
Centred reference text.
Limitations
[সম্পাদনা কৰক]- If insufficient display width is available, the text blocks will overlap with the result likely to be quite unreadable.
- It will normally be necessary to take measures as above to suppress white-space wrapping (e.g. {{nowrap}}) in the floated text.
Parameters
[সম্পাদনা কৰক]- right: Specify right margin offset (default is 0)
- top: Specify specify vertical offset (default 0, which normally results in level alignment)
- width: Specify content presentation width (no default)
See also
[সম্পাদনা কৰক]- {{float right}}
- {{nowrap}}
- {{runningheader}}
- {{zfloat left}}