• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:For-multi

  • Template
  • Talk
  • Language
  • Watch
  • View source
(Redirected from Template:For multi)
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 12,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:
  • Module:Hatnote (sandbox)
  • Module:Hatnote list (sandbox)

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

Contents

  • 1 Usage
    • 1.1 0 parameters
    • 1.2 One or two parameters
      • 1.2.1 1 Parameter
      • 1.2.2 2 Parameters
    • 1.3 3 or more parameters
      • 1.3.1 Multiple articles per use
      • 1.3.2 Last parameter
  • 2 TemplateData
  • 3 See also

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:
For other uses, see For-multi (disambiguation).

Comparison to other templates:

This is the same as using {{Other uses}}:
For other uses, see Template:For-multi (disambiguation).

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:
For UseA, see For-multi (disambiguation).

Comparison to other templates:

This is identical to passing the same arguments to {{For}}. For example, {{For|UseA}} yields:
For UseA, see For-multi (disambiguation).

2 Parameters

With two parameters, {{For-multi|UseA|ArticleA}} yields:
For UseA, see ArticleA.

Comparison to other templates:

This is identical to passing the same arguments to {{For}}. For example, {{For|UseA|ArticleA}} yields:
For UseA, see ArticleA.

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:
For UseA, see ArticleA. For UseB, see For-multi (disambiguation).

With four parameters, the output of

{{For-multi|UseA|ArticleA|UseB|ArticleB}}
is:
For UseA, see ArticleA. For UseB, see ArticleB.

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:
For UseA, see ArticleA and ArticleB.
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:
This template is about About. For UseA, see ArticleA. For UseB, see For-multi (disambiguation).
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:
For UseA, see ArticleA. For UseB, see For-multi (disambiguation).

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:
For UseA, see ArticleA, ArticleB, and ArticleC. For UseB, see ArticleD and ArticleE.

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:
For UseA, see ArticleA. For UseB, see For-multi (disambiguation).

The above example produces a link to the current page name (without the namespace) plus "(disambiguation)" at the end.

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[Edit template data]

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" and ignores parameters 3ff.

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. If unused or blank, defaults to "For other uses" and ignores parameters 5ff.

Stringrequired
Other page 24

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

Page nameoptional
Other use 35

What the third other use of the title is. If unused or blank, defaults to "For other uses" and ignores parameters 7ff.

Stringoptional
Other page 36

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

Page nameoptional
Other use 47

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

Stringoptional
Other page 48

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

Page nameoptional

See also

  • Category:Disambiguation and redirection hatnote 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
  • v
  • t
  • e
Hatnote templates
  • Wikipedia:Hatnote
  • Wikipedia:Disambiguation
  • Wikipedia:Redirect
Generic
  • {{Hatnote}}
  • {{Hatnote group}}
  • {{Self-reference}}
For and about
  • {{For}}
  • {{For-text}} (for custom text)
  • {{For-multi}} (for multiple uses)
  • {{About}}
  • Variations: {{Other uses}}
  • {{Other uses of}}
  • {{Redirect-distinguish-for}}
  • {{About-distinguish}}
  • {{About-distinguish-text}}
Other topics
  • {{Other people}}
  • {{About other people}} (adds "about" description)
  • {{Similar names}}
  • {{Other storms}}
  • {{Other stars by Bayer designation}}
  • {{Other places}}
  • {{Other ships}}
Redirect
  • {{Redirect}}
  • {{Redirect2}} (for two redirects)
  • {{Redirect-multi}} (for multiple redirects)
  • {{Redirect-several}} (for several redirects, without listing each)
  • {{Redirect-synonym}}
  • {{Redirect-distinguish}}
  • {{Redirect-distinguish-text}}
  • {{Redirect-distinguish-for}}
  • {{Technical reasons}}
Distinguish
  • {{Distinguish}} (supports custom text)
  • {{About-distinguish}}
  • {{About-distinguish-text}} (for custom text)
  • {{Redirect-distinguish}}
  • {{Redirect-distinguish-text}} (for custom text)
  • {{Redirect-distinguish-for}}
For use in sections
  • {{Main}}
  • {{Main if exists}}
  • {{Main list}}
  • {{Further}}
  • {{Further-text}} (for custom text)
  • {{Further interlanguage link}}
  • {{See also}}
  • {{See also-text}} (for custom text)
  • {{For outline}}
  • {{For timeline}}
Special
  • {{Broader}}
  • {{For introduction}}
  • {{See Wiktionary}}
  • {{Transcluding article}}
  • {{Transcluded section}}
Subject specific
  • {{About year}}
  • {{Highway detail hatnote}}
  • {{For LMST}}
  • {{WikiIPA}}
  • Category:Hatnote templates
    • modules
    • for [family] names
    • for lists
  • hatnote templates for category pages
The above documentation is transcluded from Template:For-multi/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:For-multi&oldid=1253463306"
Last edited on 26 October 2024, at 03:24

Languages

    • Basa Bali
    • বাংলা
    • Bosanski
    • Ελληνικά
    • فارسی
    • हिन्दी
    • Bahasa Indonesia
    • Ladin
    • Bahasa Melayu
    • Монгол
    • नेपाली
    • ਪੰਜਾਬੀ
    • සිංහල
    • Simple English
    • Slovenščina
    • Srpskohrvatski / српскохрватски
    • Tagalog
    • တႆး
    • తెలుగు
    • ไทย
    • Türkçe
    • Українська
    • Tiếng Việt
    • 中文
    • Bajau Sama
    • Betawi
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 26 October 2024, at 03:24 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop