Template:For-multi/doc

is a hatnote template that produces a list of alternative uses for the title of the article and links to articles about those uses. It is similar to with the primary difference being this template allows multiple uses to be listed while still being able to link to multiple articles per use. It is essentially the same as but without the about clause at the start.

0 parameters
When no parameters are provided, this template functions the exact same as. It is preferred to use that template as it more clearly explains the output of the function.

The output with zero parameter is:

Comparison to other templates: This is the same as using :

One or two parameters
When one or two parameters are provided, this template functions the exact same as. It is preferred to use that template as the "multi" functionality of this template is not required.

1 Parameter
With one parameter, yields:

Comparison to other templates: This is identical to passing the same arguments to. For example, yields:

2 Parameters
With two parameters, yields:

Comparison to other templates: This is identical to passing the same arguments to. For example, yields:

3 or more parameters
When three or more parameters are provided, this template can be used. Functionally, it is the same as, but without the about clause at the beginning. Per the guideline at WP:HNS, it is up to the editor to decide whether or not the hatnote should contain a brief summary (i.e. whether or not the hatnote should use or ) based on their preference and what is likely to be clearer and easier for the reader.

With three parameters, the output of

is:

With four parameters, the output of

is:

Comparison to other templates: The output of  is different from  provided with three parameters where  yields:

As you can see, this function is able to output multiple uses, unlike. also produces the same output, but with an about clause at the beginning. For example, yields:

Technically, can be used by passing an empty first parameter, but this isn't recommended as the wikitext   doesn't make it clear what the output is going to be and what the purpose of the template is as, in this case, the name of the template "About" is misleading. Using it this way would look like:

Multiple articles per use
Multiple articles can be used per use by putting a parameter with the content  between them. For example, the wikitext

yields:

Last parameter
When the last parameter is a "use", the current article plus (disambiguation) will be linked to at the end of the template. For example,

yields:

The above example produces a link to the PAGENAME (no namespace) at the end.

TemplateData
{	"description": "This template lists multiple other uses for the title and links to articles about those uses. See the documentation for more information on usage and alternatives.", "params": { "1": {			"label": "Other use 1", "type": "string", "description": "What the first other use of the title is. If unused or blank, defaults to \"For other uses\" and ignores parameters 3ff.", "required": true },		"2": {			"label": "Other page 1", "type": "wiki-page-name", "description": "The title of the first other page. If unused, defaults to \"[page title] (disambiguation)\".", "required": true },		"3": {			"label": "Other use 2", "type": "string", "description": "What the second other use of the title is. If unused or blank, defaults to \"For other uses\" and ignores parameters 5ff.", "required": true },		"4": {			"label": "Other page 2", "type": "wiki-page-name", "description": "The title of the second other page. If unused or blank and parameter 3 exists, defaults to \"[page title] (disambiguation)\"." },		"5": {			"label": "Other use 3", "type": "string", "description": "What the third other use of the title is. If unused or blank, defaults to \"For other uses\" and ignores parameters 7ff." },		"6": {			"label": "Other page 3", "type": "wiki-page-name", "description": "The title of the third other page. If unused or blank and parameter 5 exists, defaults to \"[page title] (disambiguation)\"." },		"7": {			"label": "Other use 4", "type": "string", "description": "What the fourth other use of the title is. If unused or blank, defaults to \"For other uses\"." },		"8": {			"label": "Other page 4", "type": "wiki-page-name", "description": "The title of the fourth other page. If unused or blank and parameter 7 exists, defaults to \"[page title] (disambiguation)\"." }	},	"format": "inline" }