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

Template:For

  • Template
  • Talk
  • Language
  • Watch
  • View source
(Redirected from Template:For1)
Template documentation[view] [edit] [history] [purge]
For the template to create a for loop, see Template:For loop.
WarningThis template is used on approximately 200,000 pages.
To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them.
This template uses Lua:
  • Module:For (sandbox)

This template produces a hatnote similar to {{Other uses}}, but allowing more flexible text with links to multiple articles or disambiguation pages.

Contents

  • 1 Usage
    • 1.1 With one parameter (rare)
    • 1.2 With two parameters
    • 1.3 With more parameters
    • 1.4 Styling in italics
  • 2 Tracking category
  • 3 TemplateData

Usage

It accepts one or more parameters (zero is not allowed).

With one parameter (rare)

The first parameter sets the hatnote itself and should be plain text. Without any further parameter, it will link to a default disambiguation page for the article title, e.g. {{For|other entities}} yields on page Foo:

For other entities, see Foo (disambiguation).

This kind of usage with exactly one parameter is rare, as in most instances {{Other uses}} (and in this case, {{About}} with the same result) can be used more easily, and without any parameter. But it makes sense in some cases for disambiguation pages with the same type of other meanings, e.g., in Treaty of Lisbon:

For earlier treaties known as Treaty of Lisbon, see Treaty of Lisbon (disambiguation).

However, for many such cases specific new templates have been implemented, like {{Other people}}, {{Other places}} etc. see the hatnote template overview box below.

With two parameters

The second parameter is used to change the resultant link, e.g., {{For|the acronym|FOO}} yields (wherever it is set, now independent of the article title):

For the acronym, see FOO.

With more parameters

The third, fourth and fifth parameters are used to give one, two, or three additional resultant links:

For similar terms, see Foobar and Bar.
For similar terms, see Foobar, Bar, and Baz.
For similar terms, see Foobar, Bar, Baz, and Quux.

For instance, the last note is produced by {{For|similar terms|Foobar|Bar|Baz|Quux}}.

The |selfref=yes option marks the entire hatnote as a Wikipedia self-reference, causing it to be omitted when the page content is reused outside of Wikipedia (see {{self reference}} and MOS:SELFREF for more details).

Styling in italics

Please see Wikipedia:Hatnote § Hatnotes with italics in the links (WP:ITHAT) for details about how to use italics in hatnotes.

Tracking category

Pages with errors reported by this template are added to Category:Hatnote templates using unusual parameters.

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:For in articles based on its TemplateData.

TemplateData for For

This template lists up to four articles on alternative meanings of a term. For further details and examples see the template documentation.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Description1

a phrase describing the major alternative, or a general term for all alternative meanings

Example
other people with the surname Smith
Stringrequired
First link2

A page to link to; usually a disambiguation page or the most likely other meaning.

Default
{{PAGENAME}} (disambiguation)
Page nameoptional
Second link3

A page to link to for another meaning, if any.

Page nameoptional
Third link4

A page to link to for another meaning, if any.

Page nameoptional
Fourth link5

A page to link to for another meaning, if any.

Page nameoptional
Is self-reference?selfref

Set to yes to make this hatnote invisible in certain versions, e.g. when printed.

Default
no
Auto value
yes
Booleanoptional
  • 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/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:For&oldid=1034045719"
Last edited on 17 July 2021, at 12:58

Languages

    • Afrikaans
    • Аԥсшәа
    • العربية
    • Arpetan
    • অসমীয়া
    • Azərbaycanca
    • تۆرکجه
    • Basa Bali
    • বাংলা
    • Banjar
    • 閩南語 / Bân-lâm-gí
    • Basa Banyumasan
    • Беларуская
    • भोजपुरी
    • Bikol Central
    • Bosanski
    • Brezhoneg
    • Català
    • Cebuano
    • Čeština
    • Corsu
    • Cymraeg
    • Dansk
    • الدارجة
    • Ελληνικά
    • Español
    • Esperanto
    • Euskara
    • فارسی
    • Føroyskt
    • Français
    • Gaeilge
    • Gaelg
    • 贛語
    • ગુજરાતી
    • Gungbe
    • 客家語 / Hak-kâ-ngî
    • 한국어
    • हिन्दी
    • Ilokano
    • Bahasa Indonesia
    • IsiZulu
    • Íslenska
    • Jawa
    • ქართული
    • Kernowek
    • Kiswahili
    • Kurdî
    • Ladin
    • Latina
    • Magyar
    • Madhurâ
    • मैथिली
    • Македонски
    • മലയാളം
    • मराठी
    • مصرى
    • ဘာသာမန်
    • Bahasa Melayu
    • 閩東語 / Mìng-dĕ̤ng-ngṳ̄
    • မြန်မာဘာသာ
    • नेपाली
    • 日本語
    • Norsk bokmål
    • ଓଡ଼ିଆ
    • Oʻzbekcha / ўзбекча
    • ਪੰਜਾਬੀ
    • پنجابی
    • ပအိုဝ်ႏဘာႏသာႏ
    • پښتو
    • ភាសាខ្មែរ
    • Português
    • Română
    • Русиньскый
    • संस्कृतम्
    • سرائیکی
    • Scots
    • Shqip
    • සිංහල
    • Simple English
    • سنڌي
    • Slovenščina
    • کوردی
    • Српски / srpski
    • Srpskohrvatski / српскохрватски
    • Svenska
    • Tagalog
    • தமிழ்
    • Taqbaylit
    • Татарча / tatarça
    • တႆး
    • తెలుగు
    • ไทย
    • Türkçe
    • Türkmençe
    • Basa Ugi
    • Українська
    • اردو
    • Tiếng Việt
    • 文言
    • Winaray
    • ייִדיש
    • Yorùbá
    • 粵語
    • Zazaki
    • 中文
    • Betawi
    • ꠍꠤꠟꠐꠤ
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 17 July 2021, at 12:58 (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