Template:Nodent

From Wikisource
Jump to: navigation, search

{{{1}}}

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


Usage[edit]

Removes indentation from the enclosed text. This is useful for special paragraphs within a "div" holding an indentation value, for example after a {{drop initial}}.

Note: If the non-indented paragraph spans a page break, you should use {{nodent/s}} at the start, and {{nodent/e}} at the end.

Parameters
  • 1: the non-indented paragraph.

Example[edit]

<div style="text-indent:2em">
'''This paragraph is indented by the overarching div style.''' {{lorem ipsum}}

{{nodent|{{drop initial|B}}ut this one has it's indentation suppressed by "nodent". {{lorem ipsum}}}}

{{nodent|And so does this one! {{lorem ipsum}}}}
</div>

This paragraph is indented by the overarching div style. 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.

But this one has its indentation suppressed by "nodent". 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.

And so does this one! 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.

See also[edit]