Template:For-multi/doc
| This is a documentation subpage for Template:For-multi It contains usage information, categories and other content that is not part of the original template page. |
| This template is used on many 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}} na hatnote template wey dey produce list of different uses for the article title and link go articles about those uses. E be like {{For}}, but the main difference be say this template fit list plenty uses while still linking to more than one article for each use. E almost be the same as {{About}}, but e no get the "about" phrase for the beginning.
Usage
[edit source]0 parameters
[edit source]If you no provide any parameter, this template go work exactly like {{Other uses}}. Better make you use that template because e explain the output more clearly.
The output with zero parameter {{For-multi}} be:
Comparison with other templates:
This na the same thing as using {{Other uses}}:
Template:Other uses
One or two parameters
[edit source]If you provide one or two parameters, this template go work exactly like {{For}}. Better make you use {{For}} because the "multi" feature no dey needed.
1 Parameter
[edit source]With one parameter, {{For-multi|UseA}} produce:
Comparison with other templates:
This one exactly be the same as {{For}}. Example, {{For|UseA}} produce:
2 Parameters
[edit source]With two parameters, {{For-multi|UseA|ArticleA}} produce:
Comparison with other templates:
This one exactly be the same as {{For}}. Example, {{For|UseA|ArticleA}} produce:
3 or more parameters
[edit source]If you provide three or more parameters, this template fit show multiple different uses. Functionally e be the same as {{About}}, but e no get the "about" sentence for the beginning. According to WP:HNS, na the editor go decide whether e better use {{For-multi}} or {{About}}, depending on which one go clearer for readers.
With three parameters, the output of
{{For-multi|UseA|ArticleA|UseB}}
be:
With four parameters, the output of
{{For-multi|UseA|ArticleA|UseB|ArticleB}}
be:
Comparison with other templates:
The output of {{For-multi|UseA|ArticleA|UseB}} no be the same as {{For}} with three parameters. Example, {{For|UseA|ArticleA|ArticleB}} produce:
As you fit see, {{For-multi}} fit show more than one use, unlike {{For}}. {{About}} fit also produce the same output, but e go add one "about" phrase for the beginning. Example, {{About|About|UseA|ArticleA|UseB}} produce:
Technically, you fit use {{About}} with empty first parameter, but people no recommend am because the wikitext Template:((About||UseA|ArticleA|UseB}} no make am clear wetin the output go be, and the template name "About" fit confuse person. If you use am that way, e go look like this:
More than one article for one use
[edit source]You fit add more than one article under the same use by putting parameter wey get value and between the article names. Example, this wikitext
{{For-multi|UseA|ArticleA|and|ArticleB|and|ArticleC|UseB|ArticleD|and|ArticleE}}
go produce:
Last parameter
[edit source]If the last parameter na one "use", the template go automatically add link to the current article name plus "(disambiguation)" for the end. Example,
{{For-multi|UseA|ArticleA|UseB}}
go produce:
The example above go create link to the current page name (without namespace) plus "(disambiguation)".
Tracking categories
[edit source]- Templates wey dey link to pages wey no exist dey tracked inside Category:Articles with hatnote templates targeting a nonexistent page (12).
TemplateData
[edit source]TemplateData for For-multi
This template list plenty other uses for the title and link go articles about those uses. Check the documentation for more details about how to use am and available alternatives.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Other use 1 | 1 | The first other use of the title. If e blank or no dey, e go default to "For other uses" and ignore parameters from 3 onward. | String | required |
| Other page 1 | 2 | Title of the first other page. If e no dey, e go default to "[page title] (disambiguation)". | Page name | required |
| Other use 2 | 3 | The second other use of the title. If e blank or no dey, e go default to "For other uses" and ignore parameters from 5 onward. | String | required |
| Other page 2 | 4 | Title of the second other page. If e blank or no dey and parameter 3 exist, e go default to "[page title] (disambiguation)". | Page name | optional |
| Other use 3 | 5 | The third other use of the title. If e blank or no dey, e go default to "For other uses" and ignore parameters from 7 onward. | String | optional |
| Other page 3 | 6 | Title of the third other page. If e blank or no dey and parameter 5 exist, e go default to "[page title] (disambiguation)". | Page name | optional |
| Other use 4 | 7 | The fourth other use of the title. If e blank or no dey, e go default to "For other uses". | String | optional |
| Other page 4 | 8 | Title of the fourth other page. If e blank or no dey and parameter 7 exist, e go default to "[page title] (disambiguation)". | Page name | optional |
See also
[edit source]- Category:Disambiguation and redirection hatnote templates
- {{Disambiguation}} – help readers find other articles wey get the same or similar names. Put am for bottom of the article.
- {{For}} – hatnote wey link to multiple articles or disambiguation pages; example: For similar terms, see ArticleA, ArticleB, and ArticleC.
- {{Other uses}} – hatnote wey link to one disambiguation page; example: For other uses, see Target (disambiguation).
- {{Redirect}} – for linking to disambiguation pages inside article wey be the primary topic of one redirect
- {{WikiProject Disambiguation}} – for disambiguation talk pages
- Wikipedia:Hatnote