1,242
edits
Changes
no edit summary
<noinclude>
<code>p</code> - stands for '''Paragraph'''<br>
This template is recommended to be used whenever a literature paragraph is needed.= Multiple paragraphs with the same number =<br>In order to have the possibility to differentiate between multiple paragraphs with the same number, an "id" variable can be introduced as shown in the second row of the table bellowexamples. Note that the same id must be used also for the linked question in order the jump from paragraph to question (and vice verse) to function properly.
= Paragraph points to a simple question =
|| <div style="text-align:justify;text-indent: 40px;">[[#question7-8|<sup id="paragraph7">7</sup>]] This is the actual paragraph text.</div> || {{p|7|7-8|This is the actual paragraph text.}}
|-
| <code><nowiki>{{raw:data:p|7|7-8|id=secondThis second|This is the actual paragraph text.}}</nowiki></code>
|| <div style="text-align:justify;text-indent: 40px;">[[#question7-8|<sup id="paragraph7">7</sup>]] This is the actual paragraph text.</div> || {{p|7|7-8|id=second|This is the actual paragraph text.}}
|}
|<code><nowiki>{{raw:data:p|c|This is the continuation of the paragraph text.}}</nowiki></code><br>
|| <div style="text-align:justify;">This is the continuation of the paragraph text.</div> || {{p|c|This is the continuation of the paragraph text.}}
|}
</noinclude><includeonly>{{#ifeq:{{{id|}}}|{{{id}}}| {{#ifeq: {{{1}}}|c|<div style="text-align:justify;">{{{2}}}</div>|{{#ifeq: {{{1}}} | nq | <div style="text-align:justify;text-indent:40px;">{{{2}}}</div> | {{#if: {{{3|}}}|<div style="text-align:justify;text-indent:40px;">[[#question{{{2}}}{{{id}}}|<sup id="paragraph{{{1}}}">{{{1}}}</sup>]] {{{3}}}</div>|<div style="text-align:justify;text-indent:40px;">[[#question{{{1}}}{{{id}}}|<sup id="paragraph{{{1}}}">{{{1}}}</sup>]] {{{2}}}</div>}} }}|}} | {{#ifeq: {{{1}}}|c|<div style="text-align:justify;">{{{2}}}</div>|{{#ifeq: {{{1}}} | nq | <div style="text-align:justify;text-indent:40px;">{{{2}}}</div> | {{#if: {{{3|}}}|<div style="text-align:justify;text-indent:40px;">[[#question{{{2}}}|<sup id="paragraph{{{1}}}">{{{1}}}</sup>]] {{{3}}}</div>|<div style="text-align:justify;text-indent:40px;">[[#question{{{1}}}|<sup id="paragraph{{{1}}}">{{{1}}}</sup>]] {{{2}}}</div>}} }}|}}}} </includeonly>