!! options
version=2
!! end
!! test
Smoke test for duplicated references with the same text
!! wikitext
[text]
[text]
[other]
!! html
[1]
[1]
[2]
!! end
!! test
Smoke test for duplicated references with conflicting text
!! wikitext
[text]
[bad]
[other]
!! html
[1]
[1]
[2]
- ↑ 1.0 1.1 text Cite error: Invalid
<ref> tag; name "a" defined multiple times with different content.
- ↑ other
!! end
!! test
Smoke test for references that are reused *before* defined in the text
!! options
language=de
!! wikitext
[text]
[other]
!! html
[1]
[1]
[1]
[1]
[1]
[1]
[1]
[1]
[1]
[1]
[1]
[2]
- ↑ 1,00 1,01 1,02 1,03 1,04 1,05 1,06 1,07 1,08 1,09 1,10 text
- ↑ other
!! end
!! test
Smoke test for references that are reused *before* defined in
!! wikitext
[other]
[text]
!! html
[1]
[1]
[2]
!! end
!! test
It should be impossible to roll back a follow="…", because it can't have a name
!! wikitext
[should be 2]
[should be 1]
[is invalid]
!! html
[1]
[2]
- ↑ should be 1
- ↑ should be 2
Cite error: A <ref follow="…"> tag that is the continuation of a previous one cannot be named individually or have details.
!! end
!! test
It should be impossible to roll back a follow="…", because it must have a name
!! wikitext
[should be 2]
[should be 1]
[is invalid]
!! html
[1]
[2]
- ↑ is invalid Cite error:
<ref> tag defined in <references> has no name attribute.
- ↑ should be 1
- ↑ should be 2
!! end
!! test
T442272: Rollback should not fail even in extreme semantically invalid edge-cases
!! wikitext
{{#tag:references|[Legacy parses this first, then then inner reflist, then the outer reflist]
{{#tag:references}}
}}
!! html
Cite error: Closing tag missing for <references>.
!! end