Template:No break after

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


UsageEdit

¡Experimental!

Creates a container that directs a paginated display (e.g. an ebook) to avoid a page break after (or inside) it. This is useful when, for example, keeping titles together with following content.

Example

{{no break after|
{{center|'''Title'''}}

{{center|Subtitle}}
}}
There should be no page break between "Title" and "Subtitle" or between "Subtitle" and this paragraph.

But there may be one above ''this'' paragraph.

Title

Subtitle

There should be no page break between "Title" and "Subtitle" or between "Subtitle" and this paragraph.

But there may be one above this paragraph.

Note that this is only a hint to the user agent. If the text cannot be contained on a single page (or the device doesn't implement the CSS used to indicate it), you may still get a page break.

See alsoEdit

  • {{page break}} The base bage break template - unconditionally forces a page break when the document is displayed in a paginated format, such as an ebook export.
  • {{padded page break}} An unconditional page break with some padding and no label.
  • {{invisible page break}} An unconditional page break that is invisible in the browser.
  • {{no break after}} Inhibit page breaks after an element. Can be used to keep a title and the first paragraph of the following content together.
  • {{pagenum}} Do not break the text but add a page number that is compatible with the normal page numbering Javascript. (this replaces the parameter usage left)