మూస:For-multi/doc
This is a documentation subpage for మూస:For-multi. It may contain usage information, categories and other content that is not part of the original మూస page. |
This template is used on approximately 10,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template uses Lua: |
{{For-multi}}
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 {{For}}
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 {{About}}
but without the about clause at the start.
Usage
[మార్చు]0 parameters
[మార్చు]When no parameters are provided, this template functions the exact same as {{Other uses}}
. It is preferred to use that template as it more clearly explains the output of the function.
The output with zero parameter {{For-multi}}
is:
Comparison to other templates:
This is the same as using {{Other uses}}
:
One or two parameters
[మార్చు]When one or two parameters are provided, this template functions the exact same as {{For}}
. It is preferred to use that template as the "multi" functionality of this template is not required.
1 Parameter
[మార్చు]
With one parameter, {{For-multi|UseA}}
yields:
Comparison to other templates:
This is identical to passing the same arguments to {{For}}
. For example, {{For|UseA}}
yields:
2 Parameters
[మార్చు]
With two parameters, {{For-multi|UseA|ArticleA}}
yields:
Comparison to other templates:
This is identical to passing the same arguments to {{For}}
. For example, {{For|UseA|ArticleA}}
yields:
3 or more parameters
[మార్చు]When three or more parameters are provided, this template can be used. Functionally, it is the same as {{About}}
, 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 {{For-multi}}
or {{About}}
) based on their preference and what is likely to be clearer and easier for the reader.
With three parameters, the output of
{{For-multi|UseA|ArticleA|UseB}}
is:
With four parameters, the output of
{{For-multi|UseA|ArticleA|UseB|ArticleB}}
is:
Comparison to other templates:
The output of {{For-multi|UseA|ArticleA|UseB}}
is different from {{For}}
provided with three parameters where {{For|UseA|ArticleA|ArticleB}}
yields:
As you can see, this function is able to output multiple uses, unlike {{For}}
. {{About}}
also produces the same output, but with an about clause at the beginning. For example, {{About|About|UseA|ArticleA|UseB}}
yields:
Technically, {{About}}
can be used by passing an empty first parameter, but this isn't recommended as the wikitext {{About||UseA|ArticleA|UseB}}
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 and
between them. For example, the wikitext
{{For-multi|UseA|ArticleA|and|ArticleB|and|ArticleC|UseB|ArticleD|and|ArticleE}}
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,
{{For-multi|UseA|ArticleA|UseB}}
yields:
The above example produces a link to the PAGENAME (no namespace) at the end.
TemplateData
[మార్చు]TemplateData for For-multi
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.
పరామితి | వివరణ | రకం | స్థితి | |
---|---|---|---|---|
Other use 1 | 1 | What the first other use of the title is. If unused or blank, defaults to "For other uses" and ignores parameters 3ff. | స్ట్రింగు | తప్పనిసరి |
Other page 1 | 2 | The title of the first other page. If unused, defaults to "[page title] (disambiguation)". | పేజీ పేరు | తప్పనిసరి |
Other use 2 | 3 | What the second other use of the title is. If unused or blank, defaults to "For other uses" and ignores parameters 5ff. | స్ట్రింగు | తప్పనిసరి |
Other page 2 | 4 | The title of the second other page. If unused or blank and parameter 3 exists, defaults to "[page title] (disambiguation)". | పేజీ పేరు | ఐచ్చికం |
Other use 3 | 5 | What the third other use of the title is. If unused or blank, defaults to "For other uses" and ignores parameters 7ff. | స్ట్రింగు | ఐచ్చికం |
Other page 3 | 6 | The title of the third other page. If unused or blank and parameter 5 exists, defaults to "[page title] (disambiguation)". | పేజీ పేరు | ఐచ్చికం |
Other use 4 | 7 | What the fourth other use of the title is. If unused or blank, defaults to "For other uses". | స్ట్రింగు | ఐచ్చికం |
Other page 4 | 8 | The title of the fourth other page. If unused or blank and parameter 7 exists, defaults to "[page title] (disambiguation)". | పేజీ పేరు | ఐచ్చికం |
See also
[మార్చు]- Category:Disambiguation and redirection templates
- {{Disambiguation}} – for helping readers find other articles with the same or similar names. Placed at the bottom of the article.
- {{For}} – hatnote linking to multiple articles or disambiguation pages; e.g. For similar terms, see ArticleA, ArticleB, and ArticleC.
- {{Other uses}} – hatnote linking to a disambiguation pages; e.g. For other uses, see Target (disambiguation).
- {{Redirect}} – for linking to disambiguation pages in an article that is the primary topic of a redirect
- {{WikiProject Disambiguation}} – for disambig talkpages
- Wikipedia:Hatnote