• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Paragraph break/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:Paragraph break
This is the template sandbox page for Template:Paragraph break (diff).
Template documentation[view] [edit] [history] [purge]
WarningThis template is used in system messages, and on approximately 1,280,000 pages, or roughly 2% of all pages.
Changes to it can cause immediate changes to the Wikipedia user interface.
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. Please discuss changes on the talk page before implementing them.
Shortcuts
  • {{pbTemplate:Pb}}
  • {{parabrTemplate:Parabr}}
  • {{paragraphTemplate:Paragraph}}

Contents

  • 1 Usage
  • 2 Purpose
  • 3 Example 1
  • 4 Example 2
  • 5 See also
  • 6 TemplateData

Usage

edit

This template produces a "visual paragraph break" by inserting the following empty tag pair:

<div class="paragraphbreak"></div>

Example:

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.{{paragraph break}}Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

produces:

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Purpose

edit

In some instances, it is not possible to introduce paragraph breaks using newlines alone. For example, within a list item and within references. However, using <p> tags can cause problems for navigation with screen readers, which expect these tags to delimit paragraphs of prose (see e.g. MOS:INDENTGAP). This template is used mostly in footnotes, where a visual break is desired, without adding an additional paragraph navigation point.

Example 1

edit

The following reference uses line breaks for multiple lines.[1] The following reference uses the paragraph break template for paragraph breaks.[2] The following reference uses <br /> tags for paragraph breaks.[3]

Notes

  1. ^ Paragraph 1a Paragraph 1b
  2. ^ Paragraph 2a
    Paragraph 2b
  3. ^ Line 3a
    Line 3b


which was generated using:

1.<ref>Paragraph 1a
Paragraph 1b</ref>
2. <ref>Paragraph 2a{{paragraph break}}Paragraph 2b</ref>
3. <ref>Line 3a<br />Line 3b</ref>

Example 2

edit

Consider the following list

  1. Paragraph 1a
    Paragraph 1b
  2. Paragraph 2

which was generated using

# Paragraph 1a {{paragraph break}} Paragraph 1b
# Paragraph 2

See also

edit
  • {{i*}} - when there is a sublist
  • {{Break}} - for inline use

TemplateData

edit
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Paragraph break in articles based on its TemplateData.

TemplateData for Paragraph break

Produces a "visual paragraph break".

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
No parameters specified
The above documentation is transcluded from Template:Paragraph break/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Paragraph_break/sandbox&oldid=1005507234"
Last edited on 8 February 2021, at 01:02

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 8 February 2021, at 01:02 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop