Template:For/doc: Difference between revisions
| [checked revision] | [checked revision] |
Caleb Cooper (talk | contribs) No edit summary |
Caleb Cooper (talk | contribs) m Text replacement - "[[WP:" to "[[Wikipedia:WP:" |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{documentation subpage}} |
{{documentation subpage}} |
||
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> |
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> |
||
{{high-use |
{{high-use}} |
||
{{Lua|Module:For}} |
{{Lua|Module:For}} |
||
| Line 7: | Line 7: | ||
(The above was produced by: {{tlc|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:Hatnote|hatnote]] with links to up to four articles or disambiguation pages. It accepts zero to five parameters. |
This template yields a [[Wikipedia:WP:Hatnote|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. {{tlc|For|similar terms}} yields on page Foo: |
The first parameter sets the hatnote itself and should be plain text, e.g. {{tlc|For|similar terms}} yields on page Foo: |
||
{{hatnote|For similar terms, see [[:Foo (disambiguation)]].}} |
{{hatnote|For similar terms, see [[:Foo (disambiguation)]].}} |
||
| Line 19: | Line 19: | ||
==See also== |
==See also== |
||
For more detail see [[wikipedia:Template:For/doc]] |
|||
* {{tl|About}} |
|||
* {{tl|See also}} |
|||
==TemplateData== |
==TemplateData== |
||
| Line 65: | Line 64: | ||
} |
} |
||
</templatedata> |
</templatedata> |
||
{{Hatnote templates}} |
|||
<includeonly>{{Sandbox other|| |
<includeonly>{{Sandbox other|| |
||
<!-- ADD CATEGORIES BELOW THIS LINE --> |
<!-- ADD CATEGORIES BELOW THIS LINE --> |
||
Latest revision as of 08:12, 21 October 2020
| This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
| This template uses Lua: |
(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
For more detail see wikipedia:Template:For/doc
TemplateData
TemplateData for For/doc
This template lists up to four articles on alternative meanings of a term. For further details and examples see the template documentation.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Description | 1 | a phrase describing the major alternative, or a general term for all alternative meanings
| String | optional |
| First link | 2 | A page to link to; usually a disambiguation page or the most likely other meaning.
| Page name | optional |
| Second link | 3 | A page to link to for another meaning, if any. | Page name | optional |
| Third link | 4 | A page to link to for another meaning, if any. | Page name | optional |
| Fourth link | 5 | A page to link to for another meaning, if any. | Page name | optional |