Template:Paragraph break/doc
This is a documentation subpage for Template:Paragraph break. It contains usage information, categories and other content that is not part of the original template page. |
Usage
This template produces a "visual paragraph break" by inserting the following empty tag pair:
<div></div>
Example:
Page Template:Block indent/styles.css has no content.
produces:
Page Template:Block indent/styles.css has no content.
Purpose
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 <syntaxhighlight lang="html" enclose="none">
</syntaxhighlight>
tags can cause problems for navigation with screen readers, which expect these tags to delimit paragraphs of prose. This template is used mostly in footnotes, where a visual break is desired, without adding an additional paragraph navigation point.
Example 1
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 <syntaxhighlight lang="html" enclose="none">
tags for paragraph breaks.[3]
</syntaxhighlight>
Notes
which was generated using:
<syntaxhighlight lang="html">
1.[1]
2. [2]
3. [3]
</syntaxhighlight>
Example 2
Consider the following list
- Paragraph 1a Paragraph 1b
- Paragraph 2
which was generated using
# Paragraph 1a {{paragraph break}} Paragraph 1b # Paragraph 2
<templatedata>
{
"params": {},
"description": "Produces a \"visual paragraph break\"."
}
</templatedata>