{"action":"created","issue":{"url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki/issues/1464","repository_url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki","labels_url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki/issues/1464/labels{/name}","comments_url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki/issues/1464/comments","events_url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki/issues/1464/events","html_url":"https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/1464","id":142140728,"number":1464,"title":"Query with booleans displaying wikicode breaks preview button","user":{"login":"Malvineous","id":171656,"avatar_url":"https://avatars.githubusercontent.com/u/171656?v=3","gravatar_id":"","url":"https://api.github.com/users/Malvineous","html_url":"https://github.com/Malvineous","followers_url":"https://api.github.com/users/Malvineous/followers","following_url":"https://api.github.com/users/Malvineous/following{/other_user}","gists_url":"https://api.github.com/users/Malvineous/gists{/gist_id}","starred_url":"https://api.github.com/users/Malvineous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Malvineous/subscriptions","organizations_url":"https://api.github.com/users/Malvineous/orgs","repos_url":"https://api.github.com/users/Malvineous/repos","events_url":"https://api.github.com/users/Malvineous/events{/privacy}","received_events_url":"https://api.github.com/users/Malvineous/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-20T08:38:54Z","updated_at":"2016-03-20T10:01:00Z","closed_at":null,"body":"The manual says you can set an `#ask` query to show different values for boolean types, like this:\r\n\r\n```\r\n| ?Field#Yes,No\r\n```\r\n\r\nHowever if you try to do something fancy, like this:\r\n\r\n```\r\n| ?Field#<span style=\"color: green; font-size: 120%;\">&#10003;</span>,<span style=\"color: #AA0000; font-size: 120%;\">&#10005;</span>\r\n```\r\n\r\nThen the query output is replaced with a large block of HTML code, and the preview button no longer works making it difficult to correct your mistake.\r\n\r\nPutting the offending wikicode into a template and doing this produces the same result:\r\n\r\n```\r\n| ?Field#{{Tick}},{{Cross}}\r\n```\r\n\r\nIs it possible to make the query accept markup code?  If it has to be a template that's fine.  At the very least hopefully it's possible to stop it from breaking the edit window, since the preview button no longer works after this happens."},"comment":{"url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki/issues/comments/198888194","html_url":"https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/1464#issuecomment-198888194","issue_url":"https://api.github.com/repos/SemanticMediaWiki/SemanticMediaWiki/issues/1464","id":198888194,"user":{"login":"Malvineous","id":171656,"avatar_url":"https://avatars.githubusercontent.com/u/171656?v=3","gravatar_id":"","url":"https://api.github.com/users/Malvineous","html_url":"https://github.com/Malvineous","followers_url":"https://api.github.com/users/Malvineous/followers","following_url":"https://api.github.com/users/Malvineous/following{/other_user}","gists_url":"https://api.github.com/users/Malvineous/gists{/gist_id}","starred_url":"https://api.github.com/users/Malvineous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Malvineous/subscriptions","organizations_url":"https://api.github.com/users/Malvineous/orgs","repos_url":"https://api.github.com/users/Malvineous/repos","events_url":"https://api.github.com/users/Malvineous/events{/privacy}","received_events_url":"https://api.github.com/users/Malvineous/received_events","type":"User","site_admin":false},"created_at":"2016-03-20T10:01:00Z","updated_at":"2016-03-20T10:01:00Z","body":"That only seems to change the column headings though, whereas I'm wanting to print a green tick instead of the word \"True\" and a red cross instead of the word \"False\", in each row of the table."}}