Difference between revisions of "Template:P"

From En JW United
Jump to navigation Jump to search
m (Administrator moved page Template:Pr to Template:Para without leaving a redirect)
Line 1: Line 1:
<noinclude>
 
== Usage ==
 
This template is recommended to be used whenever a literature paragraph is needed.
 
 
<code>p</code> - name of template, stands for paragraph<br>
 
<code>first</code> - number of the paragraph<br>
 
<code>second (optional)</code> - only to be used in the case of linking the paragraph to a question that points to multiple paragraphs. An example would be <code>7-8</code> or <code>10-13</code><br>
 
<code>third</code> - the actual text of the paragraph<br>
 
 
= Paragraph points to a simple question =
 
== Usage ==
 
<code><nowiki>{{p|7|This is the actual paragraph text.}}</nowiki></code>
 
== Action ==
 
It will automatically link paragraph 7 to a question that links itself only paragraph 7.
 
 
= Paragraph points to a complex question =
 
== Usage ==
 
<code><nowiki>{{p|7|7-8|This is the actual paragraph text.}}</nowiki></code>
 
== Action ==
 
It will automatically link paragraph 7 to a question that links itself to paragraphs 7 and 8.
 
 
</noinclude>
 
 
<includeonly>
 
<includeonly>
 
 
{{#if: {{{3|}}}  
 
{{#if: {{{3|}}}  
 
| <div style="text-align:justify;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[#question{{{2}}}|<sup id="paragraph{{{1}}}">{{{1}}}</sup>]] {{{3}}}</div>
 
| <div style="text-align:justify;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[#question{{{2}}}|<sup id="paragraph{{{1}}}">{{{1}}}</sup>]] {{{3}}}</div>

Revision as of 05:43, 27 March 2020