Template:Template link expanded/doc

This template is used to show example template usage without expanding the template itself.

Basic use
(Note: In the following examples, ellipses (groups of three dots) indicate where parameters have been omitted.)


 * produces:

When you want to indicate setting a value to one or more parameters, you would normally use the equals-sign ("="). This doesn't work here; instead use, like so:
 * produces:

For more than ten parameters - with or without equals-signs - instead wrap the entire list of parameters and their values in  tags. When you do, you don't need to replace equals-signs. For instance:
 * produces:

Purpose and naming
Mnemonically, template link expanded (after template link).

This template allows an example of calling a template, accompanied by one or more parameters, to be displayed without also causing the template to be called.

Up to 20 of the template's parameters (numbered or nowiki-keywords) may be displayed as placeholders, while more than over 20 parameters can be displayed using a coded vertical bar (pipe) symbol, as in. A keyword parameter can be used with equals code &amp;#61; or = or in nowiki-text: "size=10" or all parameters as a string in "" tags; see Examples at bottom. For more details, see |this talk page. If you use 21 or more parameters, all after the 20th will be replaced with a single ... at the end of the parameter list.

If the intended template lists numerous parameters, then perhaps this template should really be used, and just hardcode the usage with. For example:
 * Exceptions
 * .

If a vertical display, with parameters on their own lines, is desired, this can also be laid out manually in this manner, or more rapidly done with .

Parameters

 * If the only parameter supplied is, i.e. a template's name, 's output is the same as – i.e. a link within braces – but in a monospaced font:
 * produces: tl
 * produces:
 * will also not take nor display additional parameters.

subst
 * Named parameters
 * Setting this parameter to any non-blank value will prefix the string  linked to Help:Substitution. This is useful to indicate when a template should be substituted. For example,  produces: . This is similar to the action of the  template:  produces:.

SISTER
 * For an interwiki link to other sister projects, such as: M: (Meta), Q: (WikiQuote), S: (WikiSource), etc, facilitating interwiki template documentation and/or discussion.

LANG
 * For a link to Wikipedias in other languages, such as: de: (German), sv: (Swedish), etc, facilitating cross-language template documentation and/or discussion.

Documentation
Tlx is a generalization of x, x etc., with output that is arguably more legible. This depends on the browser, but narrow gaps between characters such as " { ", " &#124; ", " } " and links can be hard to read when not monospaced (and hard to click on; for uses like, see tlw, which makes the click target bigger).

Usage


There are up to 10 placeholders for parameters of the specified template.

Examples

 * Unlimited parameters as one  string

TemplateData
{	"params": { "1": {			"label": "Template name", "description": "Name of the template to link.", "example": "Tlx", "type": "wiki-template-name", "required": true },		"2": {			"label": "1st parameter", "type": "string" },		"3": {			"label": "2nd parameter", "type": "string" },		"4": {			"label": "3rd parameter", "type": "string" },		"5": {			"label": "4th parameter", "type": "string" },		"6": {			"label": "5th parameter", "type": "string" },		"7": {			"label": "6th parameter", "type": "string" },		"8": {			"label": "7th parameter", "type": "string" },		"9": {			"label": "8th parameter", "type": "string" },		"10": {			"label": "9th parameter", "type": "string" },		"11": {			"label": "10th parameter", "type": "string" },		"12": {			"label": "11th parameter", "type": "string" },		"13": {			"label": "12th parameter", "type": "string" },		"14": {			"label": "13th parameter", "type": "string" },		"15": {			"label": "14th parameter", "type": "string" },		"16": {			"label": "15th parameter", "type": "string" },		"17": {			"label": "16th parameter", "type": "string" },		"18": {			"label": "17th parameter", "type": "string" },		"19": {			"label": "18th parameter", "type": "string" },		"20": {			"label": "19th parameter", "type": "string" },		"21": {			"label": "20th parameter", "type": "string" },		"subst": { "description": "Set to any value to show \"subst:\" before the template name", "example": "true", "type": "boolean", "label": "Show subst:" },		"LANG": { "label": "Language", "description": "The prefix for a link to Wikipedias in other languages.", "example": "de:", "type": "line" },		"SISTER": { "description": "The prefix for an interwiki link to other sister projects", "example": "M:", "type": "line", "label": "Sister project" }	},	"description": "Show example template usage without expanding the template itself. is similar without linking the template.", "paramOrder": [ "1",		"2",		"3",		"4",		"5",		"6",		"7",		"8",		"9",		"10",		"11",		"12",		"13",		"14",		"15",		"16",		"17",		"18",		"19",		"20",		"21",		"subst", "LANG", "SISTER" ],	"format": "inline" }