{
"description": "Test in-text annotation for unrestricted template parse using `import-annotation=true` (#1055)",
"setup": [
{
"namespace": "SMW_NS_PROPERTY",
"page": "HasUnrestrictedPage",
"contents": "[[Has type::Page]]"
},
{
"namespace": "NS_TEMPLATE",
"page": "CreateAnnotationViaAskTemplate",
"contents": "[[HasUnrestrictedPage::{{{1}}}]]"
},
{
"namespace": "NS_TEMPLATE",
"page": "TemplateForUnrestrictedParse",
"contents": "{{#ask: [[HasUnrestrictedPage::{{{1}}}]]|?HasUnrestrictedPage|link=none|format=template|template=CreateAnnotationViaAskTemplate|import-annotation=true}}"
},
{
"page": "Page-with-annotation",
"contents": "[[HasUnrestrictedPage::SearchPageWithAnnotation]]"
},
{
"page": "Page-with-template",
"contents": "{{TemplateForUnrestrictedParse|SearchPageWithAnnotation}}"
}
],
"tests": [
{
"type": "parser",
"about": "#0",
"subject": "Page-with-template",
"assert-store": {
"semantic-data": {
"strictPropertyValueMatch": false,
"propertyCount": 4,
"propertyKeys": [
"_SKEY",
"HasUnrestrictedPage",
"_MDAT",
"_ASK"
],
"propertyValues": [
"Page-with-annotation"
]
}
}
}
],
"settings": {
"smwgPageSpecialProperties": [
"_MDAT"
]
},
"meta": {
"version": "2",
"is-incomplete": false,
"debug": false
}
}