Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Search
Search
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Template:For/doc
Template
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
Move
General
What links here
Related changes
Special pages
Page information
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{for|the template to create a for loop|Template:For loop}} {{documentation subpage}} <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> {{high-use| 149560 }} {{Lua|Module:For}} == Usage == This template yields a [[WP:Hatnote|hatnote]] similar to {{tl|Other uses}}, but allowing more flexible text with links to multiple articles or disambiguation pages. 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. {{tlc|For|other entities}} yields on page Foo: {{hatnote|For other entities, see [[:Foo (disambiguation)]].}} This kind of usage with exactly one parameter is rare, as in most instances {{tl|Other uses}} (and in this case, {{tl|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]]: {{hatnote|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 {{tl|Other people}}, {{tl|Other places}} etc. - see hatnote template overview box below. === With two parameters === The second parameter is used to change the resultant link, e.g. {{tlc|For|the acronym|FOO}} yields (wherever it is set, now independent of the article title): {{For|the acronym|FOO}} === With more parameters === The third, fourth and fifth parameters are used to give one, two, or three additional resultant links: {{For|similar terms|Foobar|Bar}} {{For|similar terms|Foobar|Bar|Baz}} {{For|similar terms|Foobar|Bar|Baz|Quux}} the last being produced by e.g. {{tlc|For|similar terms|Foobar|Bar|Baz|Quux}}. The {{para|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 {{tl|self reference}} and [[MOS:SELFREF]] for more details). === Styling in italics === Please see {{section link|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== {{TemplateData header}} <templatedata> { "description": "This template lists up to four articles on alternative meanings of a term. For further details and examples see the template documentation.", "params": { "1": { "label": "Description", "description": "a phrase describing the major alternative, or a general term for all alternative meanings", "type": "string", "required": true, "example": "other people with the surname Smith" }, "2": { "label": "First link", "description": "A page to link to; usually a disambiguation page or the most likely other meaning.", "default": "{{PAGENAME}} (disambiguation)", "type": "wiki-page-name", "required": false }, "3": { "label": "Second link", "description": "A page to link to for another meaning, if any.", "type": "wiki-page-name", "required": false }, "4": { "label": "Third link", "description": "A page to link to for another meaning, if any.", "type": "wiki-page-name", "required": false }, "5": { "label": "Fourth link", "description": "A page to link to for another meaning, if any.", "type": "wiki-page-name", "required": false }, "selfref": { "label": "Is self-reference?", "description": "Set to yes to make this hatnote invisible on e.g. printed versions, for [[WP:SELFREF]]s", "type": "boolean", "default": "no", "autovalue": "yes" } }, "format": "inline" } </templatedata> {{Hatnote templates}} <includeonly>{{Sandbox other|| <!-- ADD CATEGORIES BELOW THIS LINE --> [[Category:Disambiguation and redirection hatnote templates]] }}</includeonly>
Summary:
Please note that all contributions to Ikwipedia are considered to be released under the Creative Commons Attribution-ShareAlike (see
Ikwipedia:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Documentation subpage
(
edit
)
Template:For
(
edit
)
Template:Hatnote
(
edit
)
Template:Hatnote templates
(
edit
)
Template:High-use
(
edit
)
Template:Hlist/styles.css
(
edit
)
Template:Icon
(
edit
)
Template:Lua
(
edit
)
Template:Mbox
(
edit
)
Template:Navbox
(
edit
)
Template:Para
(
edit
)
Template:Sandbox other
(
edit
)
Template:Section link
(
edit
)
Template:Strong
(
edit
)
Template:TemplateData header
(
edit
)
Template:Template link
(
edit
)
Template:Template link code
(
edit
)
Template:Template other
(
edit
)
Template:Template parameter usage
(
edit
)
Template:Terminate sentence
(
edit
)
Template:Tl
(
edit
)
Template:Tlc
(
edit
)
Template:Yesno
(
edit
)
Template:Yesno-no
(
edit
)
Module:Arguments
(
edit
)
Module:Check for unknown parameters
(
edit
)
Module:For
(
edit
)
Module:Format link
(
edit
)
Module:Hatnote
(
edit
)
Module:Hatnote/styles.css
(
edit
)
Module:Hatnote list
(
edit
)
Module:High-use
(
edit
)
Module:Hlist/styles.css
(
edit
)
Module:Icon
(
edit
)
Module:Icon/data
(
edit
)
Module:List
(
edit
)
Module:Lua banner
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:Message box/ombox.css
(
edit
)
Module:Navbar
(
edit
)
Module:Navbar/configuration
(
edit
)
Module:Navbar/styles.css
(
edit
)
Module:Navbox
(
edit
)
Module:Navbox/configuration
(
edit
)
Module:Navbox/styles.css
(
edit
)
Module:NavboxMobile
(
edit
)
Module:NavboxMobile/configuration
(
edit
)
Module:NavboxMobile/styles.css
(
edit
)
Module:Section link
(
edit
)
Module:String
(
edit
)
Module:TableTools
(
edit
)
Module:Template link general
(
edit
)
Module:Text
(
edit
)
Module:Text/data
(
edit
)
Module:Transclusion count
(
edit
)
Module:Transclusion count/data/F
(
edit
)
Module:Yesno
(
edit
)
Toggle limited content width