Difference between revisions of "Template:P"

From En JW United
Jump to navigation Jump to search
Line 5: Line 5:
 
<code>p</code> - name of template, stands for paragraph<br>
 
<code>p</code> - name of template, stands for paragraph<br>
 
<code>first</code> - number of the paragraph<br>
 
<code>first</code> - number of the paragraph<br>
<code>second </code> - the question number or numbers that points to<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>
 
<code>third</code> - the actual text of the paragraph<br>
  
Line 14: Line 14:
 
It will automatically link paragraph 7 to a question that links itself only paragraph 7.
 
It will automatically link paragraph 7 to a question that links itself only paragraph 7.
  
=== Întrebare cu un singur paragraf ===
+
= Paragraph points to a complex question =
 
+
== Usage ==
<code><nowiki>{{paragraf|întrebarea=7|paragraful=7|conținut=Conținutul paragrafului}}</nowiki></code>
+
<code><nowiki>{{p|7|7-8|This is the actual paragraph text.}}</nowiki></code>
 
+
== Action ==
=== Întrebare cu mai multe paragrafe ===
+
It will automatically link paragraph 7 to a question that links itself to paragraphs 7 and 8.
  
<code><nowiki>{{paragraf|întrebarea=5-7|paragraful=5|conținut=Conținutul paragrafului}}</nowiki></code>
 
 
</noinclude>
 
</noinclude>
 
<includeonly>
 
<includeonly>

Revision as of 05:36, 27 March 2020

Usage

This template is recommended to be used whenever a literature paragraph is needed.

p - name of template, stands for paragraph
first - number of the paragraph
second (optional) - only to be used in the case of linking the paragraph to a question that points to multiple paragraphs. An example would be 7-8 or 10-13
third - the actual text of the paragraph

Paragraph points to a simple question

Usage

{{p|7|This is the actual paragraph text.}}

Action

It will automatically link paragraph 7 to a question that links itself only paragraph 7.

Paragraph points to a complex question

Usage

{{p|7|7-8|This is the actual paragraph text.}}

Action

It will automatically link paragraph 7 to a question that links itself to paragraphs 7 and 8.