Template:For/doc: Difference between revisions

[checked revision][checked revision]
Content deleted Content added
Created page with "{{high-risk}} {{Module rating|protected}} Implements {{tl|for}}. <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | <!-- Categories below this line, please; interwikis at Wiki..."
 
m Text replacement - "[[WP:" to "[[Wikipedia:WP:"
 
(3 intermediate revisions by the same user not shown)
Line 1:
{{documentation subpage}}
{{high-risk}}
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
{{Module rating|protected}}
{{high-riskuse}}
{{Lua|Module:For}}
 
{{for|the template to create a for loop|Template:For loop}}
Implements {{tl|for}}.
(The above was produced by: {{tlc|For|the template to create a for loop|Template:For loop}}.)
 
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:
{{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:
{{For|similar terms|Foobar}}
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|Baz}}
{{For|similar terms|Foobar|Bar|Baz|Quux}}
the last being produced by e.g. {{tlc|For|similar terms|Foobar|Bar|Baz|Quux}}.
 
==See also==
For more detail see [[wikipedia:Template:For/doc]]
 
==TemplateData==
{{TemplateData header}}
<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",
"default": "other uses",
"type": "string",
"required": false,
"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": "{{PAGENAME}} (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>
<includeonly>{{Sandbox other||
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Disambiguation and redirection templates|For]]
[[Category:Hatnote modulestemplates]]
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Hatnote modules]]
}}</includeonly>