Changes

Jump to navigation Jump to search

Template:P

1,814 bytes removed, 10:09, 27 November 2020
no edit summary
|<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.}}
|}
= Paragraph multiplicated on the same page =
The bellow options should be used in the situation in which there is the same number of paragraph (ex. two times paragraph 7) on the same page.
== Paragraph points to a simple question ==
=== Parameters ===
<code>first</code> - number of the paragraph<br>
<code>second</code> - additional id. It can be any characters.<br>
<code>third</code> - the actual text of the paragraph<br>
=== Usage ===
<code><nowiki>{{raw:data:p|7|id=second|This is the actual paragraph text.}}</nowiki></code><br>
=== Tests ===
{| class="wikitable"
|-
! Code !! Expected !! Actual
|-
| <code><nowiki>{{raw:data:p|7|id=second|This is the actual paragraph text.}}</nowiki></code> || <div style="text-align:justify;text-indent: 40px;">[[#question7|<sup id="paragraph7">7</sup>]] This is the actual paragraph text.</div> || {{p|7|id=second|This is the actual paragraph text.}}
|}
 
== 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>{{raw:data:p|7|7-8|id=second|This is the actual paragraph text.}}</nowiki></code><br>
It will automatically link paragraph 7 to a question that links itself to paragraphs 7 and 8.
=== Tests ===
{| class="wikitable"
|-
! Code !! Expected !! Actual
|-
| <code><nowiki>{{raw:data:p|7|7-8|id=secondThis 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.}}
|}
</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>

Navigation menu