Template:Tlp/doc

This is the template link with parameters (or ) template.

It can be used in documentation and talk page discussions to show how a template name would be used in code.

Here is how this template looks. Code to the left and actual rendering to the right:



Features of :
 * It shows a template name with a link to that template.
 * It shows up to eight parameters.
 * It also shows empty parameters. (See examples below.)
 * It prevents line wraps in its output.
 * It uses normal text style. (, for instance, uses  text style.)

This template belongs to a whole family of similar templates. See the see also section below for some of them. For instance, when writing documentation you might want to avoid a lot of unnecessary links, since it decreases readability – i.e. on the first occurrence of a template name, use tl, or  and thereafter use,.

TemplateData
{	"description": "Template link with parameters", "format": "inline", "params": { "1": {			"label": "Template", "description": "Linked template name", "required": true, "type": "wiki-template-name" },		"2": {			"label": "Parameter 1", "description": "First parameter value", "type": "string" },		"3": {			"label": "Parameter 2", "description": "Second parameter value", "type": "string" },		"4": {			"label": "Parameter 3", "description": "Third parameter value", "type": "string" },		"5": {			"label": "Parameter 4", "description": "Fourth parameter value", "type": "string" },		"6": {			"label": "Parameter 5", "description": "Fifth parameter value", "type": "string" },		"7": {			"label": "Parameter 6", "description": "Sixth parameter value", "type": "string" },		"8": {			"label": "Parameter 7", "description": "Seventh parameter value", "type": "string" },		"9": {			"label": "Parameter 8", "description": "Eight parameter value", "type": "string" }	} }