{
"description": "Test `Special:Ask` to produce correct printout position for `+|...` parameters (`wgContLang=en`, `wgLang=en`)",
"setup": [
{
"namespace": "SMW_NS_PROPERTY",
"page": "Has monolingual text",
"contents": "[[Has type::Monolingual text]]"
},
{
"namespace": "NS_MAIN",
"page": "Example/SA0005/1",
"contents": "[[Has monolingual text::Test@en]] [[Has monolingual text::テスト@ja]] [[Category:SA0005]]"
}
],
"tests": [
{
"type": "special",
"about": "#0 (column order for printouts with additional `+|...` parameter)",
"special-page": {
"page": "Ask",
"query-parameters": "-5B-5BCategory:SA0005-5D-5D/-3FHas-20monolingual-20text-7C%2Blang%3Den/-3FModification-20date/mainlabel%3D/offset%3D0/format%3Dtable/link%3Dnone",
"request-parameters": []
},
"assert-output": {
"to-contain": [
"
| | ",
" | | Example/SA0005/1 | Test | "
],
"not-contain": [
"| | ",
" | | Example/SA0005/1 | "
]
}
},
{
"type": "special",
"about": "#1 (column order for mixed printout)",
"special-page": {
"page": "Ask",
"query-parameters": "-5B-5BCategory:SA0005-5D-5D/-3FHas-20monolingual-20text-7C%2Blang%3Den/-3FCategory/-3FHas-20monolingual-20text-7C%2Blang%3Dja/mainlabel%3D/offset%3D0/format%3Dtable/link%3Dnone",
"request-parameters": []
},
"assert-output": {
"to-contain": [
" | Has monolingual text | Category | Has monolingual text | ",
"
|---|
| Example/SA0005/1 | Test | Category:SA0005 | テスト |
"
],
"not-contain": [
"| Example/SA0005/1 | Test | テスト |
"
]
}
},
{
"type": "special",
"about": "#2 (column order for mixed printout)",
"special-page": {
"page": "Ask",
"query-parameters": [],
"request-parameters": {
"p": {
"link": "none",
"limit": "10",
"offset": "0",
"mainlabel": "",
"searchlabel": "some..."
},
"q": "[[Category:SA0005]]",
"po": "?Has monolingual text|+lang=en|?Category|?Has monolingual text|+lang=ja"
}
},
"assert-output": {
"to-contain": [
"Has monolingual text | Category | Has monolingual text | ",
"| Example/SA0005/1 | Test | Category:SA0005 | テスト |
"
],
"not-contain": [
"| Example/SA0005/1 | Test | テスト |
"
]
}
},
{
"type": "special",
"about": "#3 (column order for mixed printout)",
"special-page": {
"page": "Ask",
"query-parameters": [],
"request-parameters": {
"p": [
"link=none",
"limit=10",
"offset=0",
"mainlabel=",
"searchlabel=some..."
],
"q": "[[Category:SA0005]]",
"po": "?Has monolingual text|+lang=en|?Category|?Has monolingual text|+lang=ja"
}
},
"assert-output": {
"to-contain": [
"Has monolingual text | Category | Has monolingual text | ",
"| Example/SA0005/1 | Test | Category:SA0005 | テスト |
"
],
"not-contain": [
"| Example/SA0005/1 | Test | テスト |
"
]
}
}
],
"settings": {
"wgContLang": "en",
"wgLang": "en",
"wgLanguageCode": "en",
"smwgNamespace": "http://example.org/id/",
"smwgPageSpecialProperties": [
"_MDAT"
],
"smwgNamespacesWithSemanticLinks": {
"NS_MAIN": true,
"SMW_NS_PROPERTY": true
}
},
"meta": {
"version": "2",
"is-incomplete": false,
"debug": false
}
}