ઢાંચો:Hanging indent inline

વિકિસ્રોતમાંથી

{{{1}}}

Template documentation[view] [edit] [history] [purge]

Usage[ફેરફાર કરો]

Inline hanging indent template, for use on a single long line in poems or other text where explicit text wrapping is needed. The default inset is 2em when one parameter (the line to wrap) is used, but a custom hanging indent can be specified by giving a valid CSS unit as the first parameter (bumping the line to wrap to the second parameter). Note that as the template achieves its effect by turning the line into an inline-block, no explicit <br /> should be used after the wrapped line (it will generate a double line break).

One parameter (default indent)[ફેરફાર કરો]

Example
Short line before long line.<br />
''{{hin|{{lorem ipsum}}}}''
Short line after long line.
Produces

Short line before long line.
ઢાંચો:Hin Short line after long line.

Two parameters (custom indent)[ફેરફાર કરો]

Example
Short line before long line.<br />
''{{hin|5em|{{lorem ipsum}}}}''
Short line after long line.
Produces

Short line before long line.
ઢાંચો:Hin Short line after long line.

Spanning multiple pages[ફેરફાર કરો]

Spanning multiple pages can be achieved by using the /s and /e variants of the template inn the usual manner.

Example
Short line before long line.<br />
''{{hin/s|5em}}{{lorem ipsum}}{{hin/e}}''
Short line after long line.
Produces

Short line before long line.
ઢાંચો:Hin/sLorem 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.ઢાંચો:Hin/e Short line after long line.

Shortcuts[ફેરફાર કરો]

See also[ફેરફાર કરો]