Difference between revisions of "Template:Q"

From Data JW United
Jump to navigation Jump to search
(Number of first paragraph of one digit)
Line 40: Line 40:
 
</noinclude>
 
</noinclude>
 
<includeonly>
 
<includeonly>
{{#pos:{{{1}}}|-}}
+
{{#pos:carte|r}}
 +
{{#sub:Icecream|3}}
 
<div id="question{{{1}}}">
 
<div id="question{{{1}}}">
 
[[#paragraph{{{1}}}|{{{1}}} {{{2}}}]]
 
[[#paragraph{{{1}}}|{{{1}}} {{{2}}}]]
 
</div>
 
</div>
 
</includeonly>
 
</includeonly>

Revision as of 05:38, 1 April 2020

q - stands for Question
This template is recommended to be used whenever a literature question is needed.

Parameters

first - number of the question.
second - the actual text of the question.

One question - one paragraph

Usage

{{q|25|Isn't this nice?}}

Example action

It will automatically link the question to the 25 paragraph.

One question - multiple paragraphs

Comming soon ...

Tests

One question - one paragraph

Code:
{{q|25|Isn't this nice?}}

Expected:


Actual:


2 cream


One question - multiple paragraphs

Number of first paragraph of one digit

Code:
{{q|7-10|Isn't this nice?}}

Expected:


Actual:


2 cream