Permanently protected template

Template:For

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

(The above was produced by: {{For|the template to create a for loop|Template:For loop}}.)

This template yields a hatnote with links to up to four articles or disambiguation pages. It accepts zero to five parameters. If used without parameters on a page named Foo, the result is

The first parameter changes the hatnote itself and should be plain text, e.g. {{For|similar terms}} yields:

The second parameter is used to change the resultant link, e.g. {{For|similar terms|Foobar}} yields:

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

the last being produced by e.g. {{For|similar terms|Foobar|Bar|Baz|Quux}}.

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly error report for this template.

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

This template has custom formatting.

Parameter Description Type Status
Description 1

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

Default
other uses
Example
other people with the surname Smith
Auto value
empty
String optional
First link 2

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

Default
{{PAGENAME}} (disambiguation)
Example
empty
Auto value
empty
Page optional
Second link 3

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

Default
empty
Example
empty
Auto value
empty
Page optional
Third link 4

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

Default
empty
Example
empty
Auto value
empty
Page optional
Fourth link 5

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

Default
empty
Example
empty
Auto value
empty
Page optional