Open main menu

Changes

Template:Q

899 bytes added, 04:31, 1 April 2020
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..."
<noinclude>
<code>q</code> - stands for '''Question'''<br>
This template is recommended to be used whenever a literature question is needed.

== Parameters ==
<code>first</code> - number of the question.<br>
<code>second</code> - the actual text of the question.<br>

= One question - one paragraph =
== Usage ==
<code><nowiki>{{q|25|Isn't this nice?}}</nowiki></code>
=== Example action ===
It will automatically link the question to the 25 paragraph.
= One question - multiple paragraphs =
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 =
== One question - one paragraph ==
Code:<br>
<code><nowiki>{{q|25|Isn't this nice?}}</nowiki></code>

Expected:
<div id="question25">
[[#paragraph25|{{{Isn't this nice?}}} ]]
</div>
Actual:
{{q|25|Isn't this nice?}}<br>