Template:For/doc

From All About Ayrshire
< Template:For
Revision as of 19:36, 27 December 2020 by Admin (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

(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. The first parameter sets the hatnote itself and should be plain text, e.g. {{For|similar terms}} yields on page Foo:

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}}.

See also[edit]

TemplateData[edit]

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage 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": "Description", "description": "a phrase describing the major alternative, or a general term for all alternative meanings", "type": "string", "required": true, "example": "other people with the surname Smith" }, "2": { "label": "First link", "description": "A page to link to; usually a disambiguation page or the most likely other meaning.", "default": "For/doc (disambiguation)", "type": "wiki-page-name", "required": false }, "3": { "label": "Second link", "description": "A page to link to for another meaning, if any.", "type": "wiki-page-name", "required": false }, "4": { "label": "Third link", "description": "A page to link to for another meaning, if any.", "type": "wiki-page-name", "required": false }, "5": { "label": "Fourth link", "description": "A page to link to for another meaning, if any.", "type": "wiki-page-name", "required": false } }, "format": "inline" } </templatedata>