Wikipedia rocks![1]
Wikipedia rocks![1]
blah[1] --Matma Rex 17:35, 31 March 2020 (UTC)
blah[1] --Matma Rex 17:35, 31 March 2020 (UTC)
Wikipedia rocks![1]
Wikipedia rocks![1]
Templating[1]
Templating[1]
Templating[1]
Templating[1]
Templating<ref>{{simple template}}</ref>
Templating<ref>{{simple template}}</ref>
Templating
Templating
Templating[1]
Templating[1]
x |
x |
абвг c [2]
1337[1]
1337[1]
1337
!! html/parsoid1337
!! end !! test Ref with content followed by blank ref !! wikitext contentCite error: Invalid <ref>
tag; name cannot be a simple integer. Use a descriptive title
Cite error: The opening <ref>
tag is malformed or has a bad name
Cite error: Invalid parameter in <references>
tag
Cite error: A <ref follow="…">
tag that is the continuation of a previous one can neither be named individually nor extended
Cite error: Invalid parameter in <ref>
tag
theFollows
Cite error: <ref>
tag with name "theName" defined in <references>
is not used in prior text.
theFollows
<ref>
tag; name "theName" defined multiple times with different content
Cite error: Invalid parameter in <ref>
tag
Wikipedia rocks![1] Wikipedia rocks![note 1]
Wikipedia rocks![1] Wikipedia rocks![note 1]
[1]
Cite error: Closing tag missing for <references>
[1]
Cite error: Closing tag missing for <references>
<ref>
tag; no text was provided for refs named foo
Cite error: <ref>
tag with name "foo" defined in <references>
group "2" has no content.
Cite error: <ref>
tag with name "unused" defined in <references>
is not used in prior text.
Cite error: <ref>
tag in <references>
has conflicting group attribute "1".
Cite error: <ref>
tag defined in <references>
has no name attribute.
ONE[1]
!! html/phpONE[1]
<ref>
tag; no text was provided for refs named foo
Cite error: <ref>
tag with name "a" defined in <references>
group "" has no content.
Cite error: <ref>
tag with name "b" defined in <references>
group "" has no content.
Cite error: <ref>
tag with name "c" defined in <references>
group "" has no content.
Wikipedia rocks![wa']
Wikipedia rocks![klingon 1]
Bla.Cite error: Invalid <ref>
tag; refs with no name must have content
foo.Cite error: The opening <ref>
tag is malformed or has a bad name
zeroCite error: The opening <ref>
tag is malformed or has a bad name
Bla.Cite error: Invalid <ref>
tag; refs with no name must have content
Bla.[1]
!! end !! test with whitespace only name parameter and no content. !! options parsoid=wt2html !! wikitext Hi Ho !! html/phpHi Cite error: Invalid <ref>
tag; refs with no name must have content
Ho Cite error: The opening <ref>
tag is malformed or has a bad name
Bla.[1]
<ref>
tag; no text was provided for refs named void
Bla.[1]
!! end !! test Whitespace only doesn't set content for named ref !! wikitext Hi Hi Off to work we go!<ref>
tag; name "a" defined multiple times with different content
<ref>
tag; name "a" defined multiple times with different content
<ref>
tag; name "a" defined multiple times with different content
A [1]
A [1]
A [1]
A [1]
A [1] B C}}
A [1] B C
a
c
!! end !! test Ref: 13. ref-tags are not SOL-transparent and block indent-pres !! wikitext foo A bar B[1] baz</ref>
A [1]
PRE [1]
THEVALUE Cite error: Invalid <ref>
tag; name cannot be a simple integer. Use a descriptive title
POST [2]
Cite error: Invalid <ref>
tag; name cannot be a simple integer. Use a descriptive title
Cite error: Invalid <ref>
tag; name cannot be a simple integer. Use a descriptive title
A [1]
B [1]
A [1]
B [1]
A [g 1]
B [g 1]
A [g 1]
B [g 1]
C [2]
!! end ## Don't expect this to rt since we're dropping content !! test References: 5. ref tags in references should be processed while ignoring all other content !! options parsoid=wt2html,html2html !! wikitext A B barALPHA[1] BETA[1] ONE[NOTES 1] TWO[NOTES 1]
THREE[NOTES 1] FOUR[NOTES 2] FIVE[NOTES 2] SIX[1]
X[1]
A [1] B [inexistent 1]
AA[a 1] BA[b 1] CA[c 1] BB[b 2] FBA FAA FBB FCA
AA[a 1] BA[b 1] CA[c 1] BB[b 2] FBA[b 1] FAA[a 1] FBB[b 2] FCA[c 1]
GROUP [theGroup 1] GROUP3 [theGroup3 1] GROUP2 [theGroup2 1] aDifferentNameGROUP3 [theGroup3 2] aDifferentNameGROUP2 [theGroup2 2] anotherGROUP3 [theGroup3 1] aDifferentNameGROUP [theGroup 2]
Cite error: <ref>
tags exist for a group named "theGroup", but no corresponding <references group="theGroup"/>
tag was found
Cite error: <ref>
tags exist for a group named "theGroup2", but no corresponding <references group="theGroup2"/>
tag was found
GROUP [theGroup 1] GROUP3 [theGroup3 1] GROUP2 [theGroup2 1] aDifferentNameGROUP3 [theGroup3 2] aDifferentNameGROUP2 [theGroup2 2] anotherGROUP3 [theGroup3 1] aDifferentNameGROUP [theGroup 2]
!! end # Doesn't wt2wt cleanly because we don't encode the & in html2wt direction !! test Entities in ref name !! config wgFragmentMode=[ "html5", "legacy" ] !! options parsoid=wt2html,html2html !! wikitext hia[1]
<references>
test [1]
Cite error: <ref>
tag defined in <references>
has no name attribute.
test [1]
test [1]
test [1]
test [2]
!! html/parsoidtest [2]
!! end !! test Ref in ref: Multiple levels of nesting in parser function !! options disabled !! wikitext one{{#tag:ref|two{{#tag:ref|threefour}}}} !! html/phpone[3]
!! html/parsoid+integratedone[3]
!! end ## Parsoid is choosing not to support this. !! test Ref in ref: self-referential !! wikitext {{#tag:ref||name=x}} !! html/php !! end ## Bleh! Only to be used in the below. See above where the legacy parser ## wouldn't stand for this nonsense. !! article Template:nestedrefslash !! text three !! endarticle ## Just a regression test for Parsoid !! test Nested ref with forward slash !! options disabled !! wikitext test {{nestedrefslash}}test [2]
!! end ## Parsoid responsive references tests !! test Responsive references: disabled, autogenerated !! config wgCiteResponsiveReferences=false wgCiteResponsiveReferencesThreshold=2 !! options parsoid={ "modes": ["wt2html"] } !! wikitext Test 12 !! html/parsoid !! end !! test Responsive references: enabled, autogenerated !! config wgCiteResponsiveReferences=true wgCiteResponsiveReferencesThreshold=2 !! options parsoid={ "modes": ["wt2html"] } !! wikitext Test 12 !! html/parsoid !! end !! test Responsive references: enabled, autogenerated, exceed !! config wgCiteResponsiveReferences=true wgCiteResponsiveReferencesThreshold=1 !! options parsoid={ "modes": ["wt2html"] } !! wikitext Test 12 !! html/parsoid !! end !! test Responsive references: disabled !! config wgCiteResponsiveReferences=false wgCiteResponsiveReferencesThreshold=2 !! wikitext Test 12test [1]
haha
Cite error: <ref>
tag defined in <references>
has no name attribute.
Cite error: Invalid dir="nonsense"
, must be ltr
or rtl
Cite error: Invalid dir=""
, must be ltr
or rtl
hi[1]
abc[1]def
ghi[1]mno
!! html/parsoidabc[1]def
ghi[1]mno
!! end !! test T196827: Ignore the dir parameter from the first use, which is not a full definition, and use the dir value from the full definition of a named ref tag !! wikitext abcdef ghijklmnoabc[1]def
ghi[1]mno
!! html/parsoidabc[1]def
ghi[1]mno
!! end !! test Similarly named refs with identical bodies !! wikitext 1 1 2 1Cite error: <ref>
tag with name "foo" defined in <references>
is not used in prior text.
Cite error: <ref>
tag with name "a" defined in <references>
is not used in prior text.
Cite error: <ref>
tag defined in <references>
has no name attribute.
hi [1]
hi ho
!! wikitext hi ho[1]
Cite error: Invalid parameter in <references>
tag
[2]
Cite error: Invalid parameter in <references>
tag
[theGroup 1]
Cite error: Invalid parameter in <references>
tag
Cite error: <ref>
tags exist for a group named "theGroup", but no corresponding <references group="theGroup"/>
tag was found
test underbar[2] blah underbar[2]
test unicode u2028 whitespace[3] blah unicode u2028 whitespace[3]
!! html/parsoidtest underbar[2] blah underbar[2]
test unicode u2028 whitespace[3] blah unicode u2028 whitespace[3]
!! end !! test Check Cite handing of linefeed whitespace in reference names !! wikitext test linefeedtestLinefeedReftest linefeed[1]
test linefeed[1]
z
z
a
z
a
z
Foo
bar
!! end !! test 1. DOMDiff: Changes to content should be looked up using id !! options parsoid={ "modes": ["selser"], "changes": [ ["#X", "after", "bar"], ["#Y", "after", "baz"] ] } !! wikitext X foo YFoo[1] |