Template:Tag/doc


 * For the page status indicator Phabricator tags, see Template:ptag.

{	"description": "This template provides a quick way to mention an XML-style tag in a preformatted way. Mainly used in discussion/help pages.", "format": "inline", "params": { "1": {			"label": "tag", "description": "The name of the HTML tag", "example": "span", "type": "line", "default": "tag", "required": true },		"2": {			"label": "type", "description": "What type of tag to display, see documentation for possible values", "type": "line", "default": "pair" },		"content": { "label": "content", "description": "The text content of the tag. By default “...” for pair type, empty for others; unused if type is single", "type": "content" },		"params": { "label": "params", "description": "Parameters (attributes) for the opening tag, unused in close type", "example": "foo=\"bar\"", "type": "line" },		"plain": { "label": "plain display", "description": "Avoid using monospace font and grey background for the tag", "type": "line" }	} }

Types

 * or  – (default) display a matched pair of open-and-close tags: 
 * or  – display only the opening tag of an open-and-close pair:
 * or  – display only the closing tag of an open-and-close pair:
 * or  – display a single tag:

Examples

 * → 
 * → hello
 * → foo
 * → hello
 * → hello
 * → hello
 * → hello