{ "description": "Test `@@@` in-text annotation syntax (#1855, #1875 `wgContLang=en`, `wgLang=en`)", "setup": [ { "namespace": "SMW_NS_PROPERTY", "page": "Has date", "contents": "[[Has type::Date]] {{#set: Has property description=Some text with a link to [http://example.org/ foo] and
  • stripped `li` in title element
  • @en}}" }, { "namespace": "SMW_NS_PROPERTY", "page": "P106", "contents": "[[Has type::Text]] [[Has preferred property label::occupation@en]] [[Has preferred property label::직업@ko]] [[Has preferred property label::職業@ja]] [[Has property description::人物の職業。「専門分野」@ja]] [[Has property description::대상 인물의 직업@ko]]" }, { "page": "Example/P0212/1", "contents": "[[Has date::@@@]]" }, { "page": "Example/P0212/2", "contents": "[[Has date::@@@|With extra caption]]" }, { "page": "Example/P0212/3", "contents": "[[P106::@@@ja]]" }, { "page": "Example/P0212/4", "contents": "[[P106::@@@ko|WithCaption]]" }, { "page": "Example/P0212/5", "contents": "[[P106::@@@ko|#]]" } ], "tests": [ { "type": "parser", "about": "#0", "subject": "Example/P0212/1", "assert-output": { "to-contain": [ "", "Some text with a link to foo and <li>stripped `li` in title element</li>", "title=\"Property:Has date\">Has date" ] } }, { "type": "parser", "about": "#1", "subject": "Example/P0212/2", "assert-output": { "to-contain": [ "", "Some text with a link to foo and <li>stripped `li` in title element</li>", "title=\"Property:Has date\">With extra caption" ] } }, { "type": "parser", "about": "#2", "subject": "Example/P0212/3", "assert-output": { "to-contain": [ ".*title=\"Property:P106\">職業人物の職業。「専門分野」 " ] } }, { "type": "parser", "about": "#3", "subject": "Example/P0212/4", "assert-output": { "to-contain": [ ".*title=\"Property:P106\">WithCaption대상 인물의 직업" ] } }, { "type": "parser", "about": "#4 (no link)", "subject": "Example/P0212/5", "assert-output": { "to-contain": [ "직업대상 인물의 직업 " ] } } ], "settings": { "wgContLang": "en", "wgLang": "en" }, "meta": { "skip-on": { "mysql": "Failed assertions, check implementation of MediaWikiIntegrationTestCase." }, "version": "2", "is-incomplete": false, "debug": false } }