Template:SPARQL

{	"params": { "query": { "required": true, "label": "query", "description": "SPARQL query", "example": "SELECT * WHERE { ?x wdt:P31 wd:Q5 } LIMIT 1", "type": "string" },		"extraprefix": { "description": "Extra prefixes to be added", "example": "PREFIX wikibase: ", "type": "string" }	},	"description": "This template displays SPARQL query with syntax highlighting, prefixes and link to WDQS beta site to run the query. ", "paramOrder": [ "query", "extraprefix" ],	"format": "block" }

Try it!