Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  



1.1  Zero parameters  



1.1.1  Output and comparison  







1.2  One or two parameters  



1.2.1  Output and comparison  







1.3  Three or more parameters  



1.3.1  Output and comparison  





1.3.2  Last parameter  





1.3.3  Multiple articles per use  









2 TemplateData  














Template:For-multi/doc







Add links
 









Template
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
 




Print/export  



Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 

< Template:For-multi

This is an old revision of this page, as edited by BrandonXLF (talk | contribs)at02:15, 25 July 2021 (Output and comparison: consistantancy). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff)  Previous revision | Latest revision (diff) | Newer revision  (diff)

{{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 {{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

Zero 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.

Output and comparison

The output with zero parameter is:

Which 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.

Output and comparison

The output with one parameter is:

This is identical to passing the same arguments to {{For}}:

The output with two parameters is:

This is identical to passing the same arguments to {{For}}:

Three 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.

Output and comparison

The output with three parameter is:

This is different from {{For}}, where providing three parameters would produce:

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:

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 is this way would look like:

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:

The above example produces a link to Template:For-multi/doc (disambiguation) at the end.

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}} outputs:

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:For-multi in articles based on its 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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Other use 11

What the first other use of the title is. If unused or blank, defaults to "For other uses".

Stringrequired
Other page 12

The title of the first other page. If unused, defaults to "[page title] (disambiguation)".

Page namerequired
Other use 23

What the second other use of the title is.

Stringrequired
Other page 24

The title of the second other page. If unused or blank and parameter 4 exists, defaults to "[page title] (disambiguation)".

Page nameoptional
Other use 35

What the third other use of the title is.

Stringoptional
Other page 36

The title of the third other page. If unused or blank and parameter 6 exists, defaults to "[page title] (disambiguation)".

Page nameoptional
Other use 47

What the fourth other use of the title is.

Stringoptional
Other page 48

The title of the fourth other page. If unused or blank and parameter 8 exists, defaults to "[page title] (disambiguation)".

Page nameoptional

Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:For-multi/doc&oldid=1035335188"

Hidden category: 
Template documentation pages
 



This page was last edited on 25 July 2021, at 02:15 (UTC).

This version of the page has been revised. Besides normal editing, the reason for revision may have been that this version contains factual inaccuracies, vandalism, or material not compatible with the Creative Commons Attribution-ShareAlike License.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki