Difference between revisions of "Template:P"
(→Parameters) |
|||
Line 52: | Line 52: | ||
= Continuation of a paragraph to the next page = | = Continuation of a paragraph to the next page = | ||
== Parameters == | == Parameters == | ||
− | <code>c</code> - | + | <code>c</code> - continuation<br> |
<code>second</code> - paragraph continuation<br> | <code>second</code> - paragraph continuation<br> | ||
+ | |||
== Usage == | == Usage == | ||
<code><nowiki>{{p|c|this is the continuation of the paragraph text.}}</nowiki></code><br> | <code><nowiki>{{p|c|this is the continuation of the paragraph text.}}</nowiki></code><br> |
Revision as of 08:54, 21 April 2020
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.}}
It will automatically link paragraph 7 to a question that links itself only paragraph 7.
Tests
Code | Expected | Actual |
---|---|---|
{{p|7|This is the actual paragraph text.}} |
7 This is the actual paragraph text. |
7 This is the actual paragraph text.
|
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.}}
It will automatically link paragraph 7 to a question that links itself to paragraphs 7 and 8.
Tests
Code | Expected | Actual |
---|---|---|
{{p|7|7-8|This is the actual paragraph text.}}
|
7 This is the actual paragraph text. |
7 This is the actual paragraph text.
|
Paragraph with no question
Parameters
nq
- no question
second
- actual paragraph
Usage
{{p|nq|This is the actual paragraph text.}}
It will create a paragraph without the indent showing the number of the question and without any link to any question.
Tests
Code | Expected | Actual |
---|---|---|
{{p|nq|This is the actual paragraph text.}} |
This is the actual paragraph text. |
This is the actual paragraph text.
|
Continuation of a paragraph to the next page
Parameters
c
- continuation
second
- paragraph continuation
Usage
{{p|c|this is the continuation of the paragraph text.}}
It will create a continuation of the paragraph from the previous page. This continuation will not be indented.
Tests
Code | Expected | Actual |
---|---|---|
{{p|c|This is the continuation of the paragraph text.}} |
This is the continuation of the paragraph text. |
This is the continuation of the paragraph text.
|