Open main menu

Difference between revisions of "Template:P"

 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
== Usage ==
+
<code>p</code> - stands for '''Paragraph'''<br>
 
This template is recommended to be used whenever a literature paragraph is needed.
 
This template is recommended to be used whenever a literature paragraph is needed.
  
<code>p</code> - name of template, stands for paragraph<br>
+
= Paragraph points to a simple question =
 +
== Parameters ==
 
<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</code> - the actual text of the paragraph<br>
<code>third</code> - the actual text of the paragraph<br>
 
 
 
= Paragraph points to a simple question =
 
 
== Usage ==
 
== Usage ==
 
<code><nowiki>{{p|7|This is the actual paragraph text.}}</nowiki></code>
 
<code><nowiki>{{p|7|This is the actual paragraph text.}}</nowiki></code>
== Action ==
+
=== Example action ===
 
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 =
 +
== Parameters ==
 +
<code>first</code> - number of the paragraph<br>
 +
<code>second</code> - number of paragraphs related to the question that is linked to this paragraph. An example would be <code>7-8</code> or <code>10-13</code><br>
 +
<code>third</code> - the actual text of the paragraph<br>
 +
== Usage ==
 +
<code><nowiki>{{p|7|7-8|This is the actual paragraph text.}}</nowiki></code>
 +
=== Example action ===
 +
It will automatically link paragraph 7 to a question that links itself to paragraphs 7 and 8.
  
<code><nowiki>{{paragraf|întrebarea=7|paragraful=7|conținut=Conținutul paragrafului}}</nowiki></code>
 
 
=== Întrebare cu mai multe paragrafe ===
 
 
<code><nowiki>{{paragraf|întrebarea=5-7|paragraful=5|conținut=Conținutul paragrafului}}</nowiki></code>
 
 
</noinclude>
 
</noinclude>
<includeonly>
+
<includeonly>{{#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{{{1}}}|<sup id="paragraph{{{1}}}">{{{1}}}</sup>]] {{{2}}}</div>}}</includeonly>
 
 
{{#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{{{1}}}|<sup id="paragraph{{{1}}}">{{{1}}}</sup>]] {{{2}}</div>  
 
}}
 
<div style="text-align:justify;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[[#question{{{întrebarea}}}|<sup id="paragraph{{{paragraful}}}">{{{paragraful}}}</sup>]] {{{conținut}}}</div>
 
</includeonly>
 

Latest revision as of 06:31, 27 March 2020

p - stands for Paragraph
This template is recommended to be used whenever a literature paragraph is needed.

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.