Template:For

50px Template documentation[view] [edit] [history] [purge]

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

<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": "topic",
   "description": "usually describing the major alternative or a general term for all alternative meanings",
   "default": "other uses",
   "type": "string",
   "required": false
 },
 "2": {
   "label": "major alternative",
   "description": "usually a disambiguation page or the most likely alternative meaning",
   "default": "For (disambiguation)",
   "type": "string/wiki-page-name",
   "required": false
 },
 "3": {
   "label": "first minor alternative",
   "description": "another meaning if any",
   "type": "string/wiki-page-name",
   "required": false
 },
 "4": {
   "label": "second minor alternative",
   "description": "another meaning if any",
   "type": "string/wiki-page-name",
   "required": false
 },
 "5": {
   "label": "third minor alternative",
   "description": "another meaning if any",
   "type": "string/wiki-page-name",
   "required": false
 }

}}</templatedata>