mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-23 22:45:20 +00:00
Sync up with Parsoid citeParserTests.txt
This now aligns with Parsoid commit 0723e5c47845ff4361b9635b591e7d386c975fdf Change-Id: Ic5b30a88189e5a8809d0f330d8b399bdb1994c60
This commit is contained in:
parent
53e260e90a
commit
0e8f1c961f
|
@ -10,6 +10,12 @@ Template:echo
|
|||
{{{1}}}
|
||||
!! endarticle
|
||||
|
||||
!! article
|
||||
Template:refinref
|
||||
!! text
|
||||
<ref>ho</ref>
|
||||
!! endarticle
|
||||
|
||||
!! test
|
||||
Simple <ref>, no <references/>
|
||||
!! wikitext
|
||||
|
@ -1200,6 +1206,16 @@ foo
|
|||
foo<ol class="mw-references references" typeof="mw:Extension/references" about="#mwt2" data-mw='{"name":"references","attrs":{}}'></ol>
|
||||
!! end
|
||||
|
||||
!! test
|
||||
Ref in ref
|
||||
!! wikitext
|
||||
test <ref>hi {{refinref}}</ref>
|
||||
<references />
|
||||
!! html/parsoid
|
||||
<p>test <span about="#mwt7" class="mw-ref" id="cite_ref-1" rel="dc:references" typeof="mw:Extension/ref" data-mw='{"name":"ref","body":{"id":"mw-reference-text-cite_note-1"},"attrs":{}}'><a href="./Main_Page#cite_note-1" style="counter-reset: mw-Ref 1;"><span class="mw-reflink-text">[1]</span></a></span></p>
|
||||
<ol class="mw-references references" typeof="mw:Extension/references" about="#mwt5" data-mw='{"name":"references","attrs":{}}'><li about="#cite_note-1" id="cite_note-1"><a href="./Main_Page#cite_ref-1" rel="mw:referencedBy"><span class="mw-linkback-text">↑ </span></a> <span id="mw-reference-text-cite_note-1" class="mw-reference-text">hi <span about="#mwt2" class="mw-ref" id="cite_ref-2" rel="dc:references" typeof="mw:Transclusion mw:Extension/ref" data-mw='{"parts":[{"template":{"target":{"wt":"refinref","href":"./Template:Refinref"},"params":{},"i":0}}]}'><a href="./Main_Page#cite_note-2" style="counter-reset: mw-Ref 2;"><span class="mw-reflink-text">[2]</span></a></span></span></li><li about="#cite_note-2" id="cite_note-2"><a href="./Main_Page#cite_ref-2" rel="mw:referencedBy"><span class="mw-linkback-text">↑ </span></a> <span id="mw-reference-text-cite_note-2" class="mw-reference-text">ho</span></li></ol>
|
||||
!! end
|
||||
|
||||
## Parsoid responsive references tests
|
||||
|
||||
!! test
|
||||
|
|
Loading…
Reference in a new issue