Jump to content

Template:For/doc

From Simple English Wikipedia, the free encyclopedia

This template yields a hatnote with links to up to four articles or disambiguation pages. It accepts one to five parameters. For a similar template that works with zero parameters, use {{otheruses}}

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[change]

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:For in articles based on its TemplateData.

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/doc (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>