Permanently protected template

Template:For

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Template documentation[view] [edit] [history] [purge]
For the template to create a for loop, see Template:For loop.

(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

For other uses, see Foo (disambiguation).

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

For similar terms, see Foo (disambiguation).

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

For similar terms, see Foobar.

The third, fourth and fifth parameters are used to give one, two, or three supplementary 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.

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

Parameter Description Type Status
topic 1

usually describing the major alternative or a general term for all alternative meanings

Default
other uses
Example
empty
Auto value
empty
String optional
major alternative 2

usually a disambiguation page or the most likely alternative meaning

Default
{{PAGENAME}} (disambiguation)
Example
empty
Auto value
empty
Page optional
first minor alternative 3

another meaning if any

Default
empty
Example
empty
Auto value
empty
Page optional
second minor alternative 4

another meaning if any

Default
empty
Example
empty
Auto value
empty
Page optional
third minor alternative 5

another meaning if any

Default
empty
Example
empty
Auto value
empty
Page optional