Kentsmith9 (talk | contribs) (Initial page creation) |
Kentsmith9 (talk | contribs) m (fixed template) |
||
Line 1: | Line 1: | ||
{{Hatnote|For {{#if:{{{1|}}}|{{{1}}}|other uses}}, see {{format link|{{{2|{{PAGENAME}} (disambiguation)}}}}}{{#if:{{{3|}}}|{{#if:{{{4|}}}|, {{format link|{{{3}}}}}, {{#if:{{{5|}}}|{{format link|{{{4}}}}}, and {{format link|{{{5}}}}}|and {{format link|{{{4}}}}}}}| and {{format link|{{{3}}}}}}}}}.}} | {{Hatnote|For {{#if:{{{1|}}}|{{{1}}}|other uses}}, see {{{2|{{PAGENAME}} (disambiguation)}}}{{#if:{{{3|}}}|{{#if:{{{4|}}}|, {{{3}}}, {{#if:{{{5|}}}|{{{4}}}, and {{{5}}}|and {{{4}}}}}| and {{{3}}}}}}}.}}<noinclude>{{Documentation}}</noinclude><!-- | ||
-- | |||
***************************************************** | |||
Original Wikipedia template used {{format link}}, but the code is only in Lua and I didn't want to reverse engineer it to Wiki markup, so I removed that capability. It should be fine for our purposes. « kentsmith9 » (talk) 23:19, 20 May 2017 (UTC) | |||
***************************************************** | |||
{{Hatnote|For {{#if:{{{1|}}}|{{{1}}}|other uses}}, see {{format link|{{{2|{{PAGENAME}} (disambiguation)}}}}}{{#if:{{{3|}}}|{{#if:{{{4|}}}|, {{format link|{{{3}}}}}, {{#if:{{{5|}}}|{{format link|{{{4}}}}}, and {{format link|{{{5}}}}}|and {{format link|{{{4}}}}}}}| and {{format link|{{{3}}}}}}}}}.}} | |||
--> |
Latest revision as of 00:10, 21 May 2017
(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 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 | |
---|---|---|---|---|
topic | 1 | usually describing the major alternative or a general term for all alternative meanings
| String | optional |
major alternative | 2 | usually a disambiguation page or the most likely alternative meaning
| Page name | optional |
first minor alternative | 3 | another meaning if any | Page name | optional |
second minor alternative | 4 | another meaning if any | Page name | optional |
third minor alternative | 5 | another meaning if any | Page name | optional |
Other hatnote templates
The following templates are considered part of the Hatnote template family, used typically at the top of a page, but can be used as needed.
- {{about}}: To differentiate this page from other similar topics or the disambiguation page of the same base page name.
- {{details}}: A derivative of
{{for}}
that forces the opening sentence to be displayed as "For more details..." - {{for}}: Enables any description to be given for the reason to want to link to up to four other pages.
- {{further}}: Mainly for linking to more detailed articles and pages typically places before the shortened description, but could be placed after if necessary.
- {{hatnote}}: This is the core of the other templates. It simply places text on the page in italics with a paragraph indent.
- {{See also}} (not yet copied from Wikipedia): It can be created manually with
{{hatnote}}
.
The above documentation is transcluded from Template:For/doc. Please add categories to the /doc subpage. Subpages of this template. |