!! Version 2 # Force the test runner to ensure the extension is loaded !! functionhooks translation !! endfunctionhooks !! test #translation as magic word for valid language code !! options title=[[Test/mr]] !! wikitext {{#translation:}} !! html
/mr
!! end !! test #translation as magic word for source page !! options title=[[Test]] !! wikitext {{#translation:}} !! html !! end !! test #translation as magic word for invalid language code !! options title=[[Test/ugaaa]] !! wikitext {{#translation:}} !! html !! end !! test Old tvar syntax should not break too hard. !! options # html2wt and wt2wt are expected to break because we serialize to new syntax. # html2html breaks because the wtOffsets break. parsoid={ "modes": ["wt2html", "selser"] } !! wikitextpouet
!! end !! test Old tvar syntax should not pull content in cell attributes !! options # html2wt and wt2wt are expected to break because we serialize to new syntax. # html2html breaks because the wtOffsets break. parsoid={ "modes": ["wt2html", "selser"] } !! wikitext {| || hello variable |
translate 1 translate 2
!! end