ಟೆಂಪ್ಲೇಟು:Paragraph break/doc
This is a documentation subpage for ಟೆಂಪ್ಲೇಟು:Paragraph break It may contain usage information, categories and other content that is not part of the original ಟೆಂಪ್ಲೇಟು page. |
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.[೧] The following reference uses the paragraph break template for paragraph breaks.[೨] The following reference uses <br> tags for paragraph breaks.[೩]
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