Difference between revisions of "Template:Q"

From Data JW United
Jump to navigation Jump to search
(Created page with "<noinclude> <code>q</code> - stands for '''Question'''<br> This template is recommended to be used whenever a literature question is needed. == Parameters == <code>first</cod...")
 
Line 14: Line 14:
 
= One question - multiple paragraphs =
 
= One question - multiple paragraphs =
 
Comming soon ...
 
Comming soon ...
 
</noinclude>
 
<includeonly>
 
<div id="question{{{kérdés száma}}}">
 
[[#paragraph{{{bekezdés}}}|{{{kérdés}}} {{{kérdés száma}}}.]]
 
</div>
 
</includeonly>
 
  
 
= Tests =
 
= Tests =
Line 30: Line 23:
 
<div id="question25">
 
<div id="question25">
 
[[#paragraph25|{{{Isn't this nice?}}} ]]
 
[[#paragraph25|{{{Isn't this nice?}}} ]]
</div>
+
</div> <br>
 
Actual:  
 
Actual:  
 
{{q|25|Isn't this nice?}}<br>
 
{{q|25|Isn't this nice?}}<br>
 +
 +
</noinclude>
 +
<includeonly>
 +
<div id="question{{{kérdés száma}}}">
 +
[[#paragraph{{{bekezdés}}}|{{{kérdés}}} {{{kérdés száma}}}.]]
 +
</div>
 +
</includeonly>

Revision as of 04:34, 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:


[[#paragraph{{{bekezdés}}}|{{{kérdés}}} {{{kérdés száma}}}.]]