Template:P
p
- stands for Paragraph
This template is recommended to be used whenever a literature paragraph is needed.
Contents
Paragraph points to a simple question
Parameters
first
- number of the paragraph
second
- the actual text of the paragraph
Usage
{{p|7|This is the actual paragraph text.}}
Example action
It will automatically link paragraph 7 to a question that links itself only paragraph 7.
Paragraph points to a complex question
Parameters
first
- number of the paragraph
second
- number of paragraphs related to the question that is linked to this paragraph. An example would be 7-8
or 10-13
third
- the actual text of the paragraph
Usage
{{p|7|7-8|This is the actual paragraph text.}}
Example action
It will automatically link paragraph 7 to a question that links itself to paragraphs 7 and 8.
Tests
Paragraph points to a simple question
Code:
{{p|7|This is the actual paragraph text.}}
Expected:
Actual:
Paragraph points to a complex question
Code:
{{p|7|7-8|This is the actual paragraph text.}}
Expected:
Actual: