Difference between revisions of "Template:For/doc"

From blackwiki
Jump to navigation Jump to search
test>Bkonrad
(Ce)
Line 1: Line 1:
 
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
 
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
 
{{for|the template to create a for loop|Template:For loop}}
 
{{for|the template to create a for loop|Template:For loop}}
(The above was produced by: {{tlx|For|the template to create a for loop|Template:For loop}}.)
+
(The above was produced by: {{tlc|For|the template to create a for loop|Template:For loop}}.)
  
 
This template yields a [[WP:HAT|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
 
This template yields a [[WP:HAT|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
 
{{hatnote|For other uses, see [[:Foo (disambiguation)]].}}
 
{{hatnote|For other uses, see [[:Foo (disambiguation)]].}}
The first parameter changes the hatnote itself and should be plain text, e.g. {{tlc|for|similar terms}} yields:
+
The first parameter changes the hatnote itself and should be plain text, e.g. {{tlc|For|similar terms}} yields:
 
{{hatnote|For similar terms, see [[:Foo (disambiguation)]].}}
 
{{hatnote|For similar terms, see [[:Foo (disambiguation)]].}}
The second parameter is used to change the resultant link, e.g. {{tlc|for|similar terms|Foobar}} yields:
+
The second parameter is used to change the resultant link, e.g. {{tlc|For|similar terms|Foobar}} yields:
{{for|similar terms|Foobar}}
+
{{For|similar terms|Foobar}}
 
The third, fourth and fifth parameters are used to give one, two, or three supplementary links:
 
The third, fourth and fifth parameters are used to give one, two, or three supplementary links:
{{for|similar terms|Foobar|Bar}}
+
{{For|similar terms|Foobar|Bar}}
{{for|similar terms|Foobar|Bar|Baz}}
+
{{For|similar terms|Foobar|Bar|Baz}}
{{for|similar terms|Foobar|Bar|Baz|Quux}}
+
{{For|similar terms|Foobar|Bar|Baz|Quux}}
the last being produced by e.g. {{tlc|for|similar terms|Foobar|Bar|Baz|Quux}}.
+
the last being produced by e.g. {{tlc|For|similar terms|Foobar|Bar|Baz|Quux}}.
  
 
==TemplateData==
 
==TemplateData==

Revision as of 09:51, 28 October 2015

(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

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

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)
Pageoptional
first minor alternative3

another meaning if any

Pageoptional
second minor alternative4

another meaning if any

Pageoptional
third minor alternative5

another meaning if any

Pageoptional