Changes

Jump to navigation Jump to search

Module:StringHelpers/doc

117 bytes added, 17:58, 12 April 2020
no edit summary
The functionality splits in the following examples: <br>
= Simple question =
{| class="wikitable"
|-
! Expected !! Actual
|-
| 150 || {{#invoke:stringHelpers|getParagraphFromQuestion|paragraph150}}
|-
| 15 || {{#invoke:stringHelpers|getParagraphFromQuestion|paragraph15}}
|-
| 7 || {{#invoke:stringHelpers|getParagraphFromQuestion|paragraph7}}
|-
| 150 || {{#invoke:stringHelpers|getParagraphFromQuestion|150}}
|-
| 15 || {{#invoke:stringHelpers|getParagraphFromQuestion|15}}
|-
| 7 || {{#invoke:stringHelpers|getParagraphFromQuestion|7}}
|}
Invoke: {{#invoke:stringHelpers|getParagraphFromQuestion|paragraph150}} <br>Invoke: {{#invoke:stringHelpers|getParagraphFromQuestion|paragraph15}} <br>Invoke: {{#invoke:stringHelpers|getParagraphFromQuestion|paragraph7}}<br>Invoke: {{#invoke:stringHelpers|getParagraphFromQuestion|150}} <br>Invoke: {{#invoke:stringHelpers|getParagraphFromQuestion|15}} <br>Invoke: {{#invoke:stringHelpers|getParagraphFromQuestion|7}} <br>= Complex question =
Invoke: {| class="wikitable"|-! Expected !! Actual|-| 6 || {{#invoke:stringHelpers|getParagraphFromQuestion|paragraph6-7}}<br>Invoke: |-| 7 || {{#invoke:stringHelpers|getParagraphFromQuestion|paragraph7-10}}<br>Invoke: |-| 10 || {{#invoke:stringHelpers|getParagraphFromQuestion|paragraph10-11}}<br>Invoke: |-| 99 || {{#invoke:stringHelpers|getParagraphFromQuestion|paragraph99-100}}<br>Invoke: |-| 101 || {{#invoke:stringHelpers|getParagraphFromQuestion|paragraph101-113}}<br>Invoke: |-| 6 || {{#invoke:stringHelpers|getParagraphFromQuestion|6-7}}<br>Invoke: |-| 7|| {{#invoke:stringHelpers|getParagraphFromQuestion|7-10}}<br>Invoke: |-| 10 || {{#invoke:stringHelpers|getParagraphFromQuestion|10-11}}<br>Invoke: |-| 99 || {{#invoke:stringHelpers|getParagraphFromQuestion|99-110}}<br>Invoke: |-| 101 || {{#invoke:stringHelpers|getParagraphFromQuestion|101-113}}|}

Navigation menu