Template:For/doc

From CSDMS
Revision as of 18:30, 21 November 2016 by WikiSysop (talk | contribs) (Created page with "<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> {{high-risk|121000+}} {{Lua|Module:For}} {{for|the template to create a for loop|Template:For loop}} (The above was produ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:High-risk {{#invoke:Lua banner|main}}

{{#invoke:For|For}} (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 {{#invoke:Hatnote|hatnote}} The first parameter changes the hatnote itself and should be plain text, e.g. {{For|similar terms}} yields: {{#invoke:Hatnote|hatnote}} The second parameter is used to change the resultant link, e.g. {{For|similar terms|Foobar}} yields: {{#invoke:For|For}} The third, fourth and fifth parameters are used to give one, two, or three supplementary links: {{#invoke:For|For}} {{#invoke:For|For}} {{#invoke:For|For}} 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

ParameterDescriptionTypeStatus
topic1

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

Default
other uses
Stringoptional
major alternative2

usually a disambiguation page or the most likely alternative meaning

Default
{{PAGENAME}} (disambiguation)
Page nameoptional
first minor alternative3

another meaning if any

Page nameoptional
second minor alternative4

another meaning if any

Page nameoptional
third minor alternative5

another meaning if any

Page nameoptional

Template:Hatnote templates