模板:Paragraph break/doc
| 此页面是Template:Paragraph break的模板文档。 此页面可能包含了模板的使用说明、分类和其他内容。 |
| 这是 Paragraph break 模板的说明文件页面。 本文件并不是为直接浏览而撰写。若是其中使用了跨维基计划连结,某些连结可能会显示损毁。请勿将这些连结替换为硬编码的页面名称或网址。 |
Usage
[编辑]This template produces a "visual paragraph break" using an empty <div></div> tag pair.
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
[编辑]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. 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 <br> tags for paragraph breaks.[3]
Notes
Example 2
[编辑]Consider the following list
- Paragraph 1a Paragraph 1b
- Paragraph 2
which was generated using
# Paragraph 1a {{paragraph break}} Paragraph 1b
# Paragraph 2