!! options parsoid-compatible=wt2html version=2 !! end # This is the standard article assumed to exist. !! article Main Page !! text blah blah !! endarticle !! test Page status indicators: Empty name is invalid !! options showindicators parsoid=wt2html !! wikitext !! html/php

Error: Page status indicators' `name` attribute must not be empty. Error: Page status indicators' `name` attribute must not be empty.

!! html/parsoid

!! end !! test Page status indicators: Weird syntaxes that are okay !! options showindicators !! wikitext !! metadata empty= name= !! html/php

!! html/parsoid !! end !! test Page status indicators: Stress test !! options showindicators !! config wgParserEnableLegacyMediaDOM=false !! wikitext hello world [[Main Page]] [[File:Foobar.jpg|25px|link=]] [[File:Foobar.jpg|25px]] *foo *bar foo Preformatted
Broken tag
{| class=wikitable |cell |} Two paragraphs !! metadata 01=hello world 02=Main Page 03= 04= 05=

- foo
- bar

06=foo 07=

    Preformatted

08=
Broken tag
09=

cell

10=

Two

paragraphs

!! metadata/parsoid 01=hello world 02=Main Page 03= 04= 05=

- foo
- bar

06=foo 07=

    Preformatted

08=
Broken tag
09=

cell

10=

Two

paragraphs

!! html/php

!! html/parsoid !! end !! test Decoding of HTML entities in indicator names for IDs (T104196) !! options parsoid=wt2html,html2html showindicators !! wikitext Indicator !! metadata 1&2&3&4&amp;5=Indicator !! html/php !! html/parsoid !! end # this version of the test strips out the ambiguity so Parsoid rts cleanly !! test Decoding of HTML entities in indicator names for IDs (unambiguous) (T104196) !! options showindicators !! wikitext Indicator !! metadata 1&2&3&4&amp;5=Indicator !! html/php !! html/parsoid !! end !! test Indicators with duplicate names: Last one wins !! options showindicators !! wikitext foo bar !! metadata x=bar !! html/php

!! html/parsoid !! end !! article Template:1x !! text {{{1}}} !! endarticle !! test Templates where an indicator is the leading content (1) !! options showindicators parsoid=wt2html,wt2wt !! metadata x=foo !! wikitext abcd {{1x|foo}} !! html/php

abcd

!! html/parsoid

abcd

!! end !! test Templates where an indicator is the leading content (2) !! options showindicators parsoid=wt2html,wt2wt !! metadata x=foo !! wikitext abcd bar {{1x|foo}} !! html/php

abcd

!! html/parsoid

abcd

!! end !! test Templates where an indicator is not the leading content (1) !! options showindicators parsoid=wt2html,wt2wt !! metadata x=foo !! wikitext abcd {{1x|efghfoo}} !! html/php

abcd efgh

!! html/parsoid

abcd efgh

!! end !! test Templates where an indicator is not the leading content (2) !! options showindicators parsoid=wt2html,wt2wt !! metadata x=foo !! wikitext abcd bar {{1x|efghfoo}} !! html/php

abcd

efgh

!! html/parsoid

abcd efgh

!! end # Note wt2wt will dirty this output and hence all selser tests # will be recorded as failing because selser is more accurate !! test Indicator in fosterable position should not dirty-diff in selser mode !! options parsoid=wt2html,selser !! wikitext {| foo |x |} !! html/parsoid

x

!! end !! test Indicator with comments should not be

-wrapped !! options showindicators !! metadata x=some stuff !! metadata/parsoid x= some stuff !! wikitext some stuff !! html/php !! html/parsoid !! end !! test Indicator shouldn't prevent empty elt class !! options showindicators !! wikitext some stuff !! metadata/php x=some stuff !! html/php

!! metadata/parsoid x= some stuff !! html/parsoid

!! end !! test Indicator shouldn't prevent addition of link classes !! options showindicators !! wikitext [http://www.example.com Example] !! metadata/php link=Example !! metadata/parsoid link=Example !! html/php !! html/parsoid !! end