Template:CodeBox

  

{	"params": { "1": {			"aliases": [ "langstyle" ],			"label": "Language Style", "description": "The style to use for the internal &lt;syntaxhighlight&gt; block. See https://github.com/wikimedia/mediawiki-extensions-SyntaxHighlight_GeSHi/blob/master/SyntaxHighlight.lexers.php for supported styles.", "example": "cpp", "type": "string", "autovalue": "text", "required": true },		"2": {			"aliases": [ "code" ],			"label": "Code", "description": "The code contained in this CodeBox", "type": "string", "autovalue": "", "required": true },		"style": { "label": "Style", "description": "Style for the top-level div." },		"erroring": { "label": "Error Message", "description": "An error message to associate with this Code Box. Will change the style of the header. Only use if the linked code is erroneous in some way.", "example": "Does not compile: Invalid type 'foo'", "type": "string" },		"langname": { "aliases": [ "boxtitle" ],			"label": "Language Name", "description": "Name of the language in the codebox. User facing name.", "type": "string", "suggested": true },		"tryiturl": { "label": "Tryit URL", "description": "Contains a URL pointing to a online REPL or similar, to allow the user to \"Try out\" the code in the box.", "type": "url", "suggested": true },		"tryitname": { "label": "Tryit Name", "description": "Name of the site the user will be sent to to run/edit the code on.", "example": "TIO", "suggested": true }	},	"description": "Used to encase programming examples, with extra information attached, like a URL to run the code on a external page.", "format": "block", "paramOrder": [ "1",		"2",		"style", "erroring", "langname", "tryiturl", "tryitname" ] }