Template:For
| This template is used on 121,000+ pages. To avoid large-scale disruption and unnecessary server load, any changes to this template should first be tested in its /sandbox or /testcases subpages or in your own user subpage. The tested changes can then be added to this page in one single edit. Please consider discussing any changes on the talk page before implementing them. |
| Uses Lua: |
(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
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
|
String | optional |
| major alternative | 2 |
usually a disambiguation page or the most likely alternative meaning
|
Page | optional |
| first minor alternative | 3 |
another meaning if any
|
Page | optional |
| second minor alternative | 4 |
another meaning if any
|
Page | optional |
| third minor alternative | 5 |
another meaning if any
|
Page | optional |
| 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. Please add categories to the /doc subpage. Subpages of this template. |