2022-05-27 15:38:02 +00:00
|
|
|
# This smoketest requires the #ifeq function to be defined
|
|
|
|
!! options
|
|
|
|
version=2
|
|
|
|
requirements=extension:ParserFunctions
|
|
|
|
!! end
|
|
|
|
|
|
|
|
!! test
|
|
|
|
T240248: Erroring parser function shouldn't break references
|
|
|
|
!! wikitext
|
|
|
|
<ref>something</ref>
|
|
|
|
{{#ifeq: {{#expr: string < 5 }} | 1 | true | false or error }}
|
|
|
|
<references />
|
|
|
|
!! html
|
2024-07-24 08:58:50 +00:00
|
|
|
<p><sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup>
|
2022-05-27 15:38:02 +00:00
|
|
|
false or error
|
|
|
|
</p>
|
|
|
|
<div class="mw-references-wrap"><ol class="references">
|
|
|
|
<li id="cite_note-1"><span class="mw-cite-backlink"><a href="#cite_ref-1">↑</a></span> <span class="reference-text">something</span>
|
|
|
|
</li>
|
|
|
|
</ol></div>
|
|
|
|
!! end
|