mediawiki-extensions-Cite/tests/parser/parserFunctionTests.txt
Adam Wight 525b7ab876 Reading mode square brackets become customizable through CSS
Now the brackets can be hidden with `display: none;` or made
invisible but appear in copy-pasted content with `font-size: 0;`.

Bug: T370512
Change-Id: I21accb6bf9cdd7f96144cc9a762ff889e48efca4
2024-07-24 12:14:07 +02:00

22 lines
706 B
Plaintext

# 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
<p><sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">&#91;</span>1<span class="cite-bracket">&#93;</span></a></sup>
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