Template:For/doc: Difference between revisions
m Reverted edits by Nisargoe Bisorgo (talk) to last version by UtherSRG |
m 1 revision imported |
(No difference)
| |
Latest revision as of 22:17, 23 January 2025
Lua error: Internal error: The interpreter has terminated with signal "9".
Lua error: Internal error: The interpreter has terminated with signal "9". Lua error: Internal error: The interpreter has terminated with signal "9".
Usage
This template yields a hatnote similar to {{Other uses}}, but allowing more flexible text with links to multiple articles or disambiguation pages. It accepts one or more parameters (zero is not allowed).
With one parameter (rare)
The first parameter sets the hatnote itself and should be plain text. Without any further parameter, it will link to a default disambiguation page for the article title, e.g. Lua error: Internal error: The interpreter has terminated with signal "9". yields on page Foo: Lua error: Internal error: The interpreter has terminated with signal "9".
This kind of usage with exactly one parameter is rare, as in most instances {{Other uses}} (and in this case, {{About}} with the same result) can be used more easily, and without any parameter. But it makes sense in some cases for disambiguation pages with the same type of other meanings, e.g. in Treaty of Lisbon: Lua error: Internal error: The interpreter has terminated with signal "9". However, for many such cases specific new templates have been implemented, like {{Other people}}, {{Other places}} etc. - see hatnote template overview box below.
With two parameters
The second parameter is used to change the resultant link, e.g. Lua error: Internal error: The interpreter has terminated with signal "9". yields (wherever it is set, now independent of the article title): Lua error: Internal error: The interpreter has terminated with signal "9".
With more parameters
The third, fourth and fifth parameters are used to give one, two, or three additional resultant links: Lua error: Internal error: The interpreter has terminated with signal "9". Lua error: Internal error: The interpreter has terminated with signal "9". Lua error: Internal error: The interpreter has terminated with signal "9". the last being produced by e.g. Lua error: Internal error: The interpreter has terminated with signal "9"..
The |selfref=yes option marks the entire hatnote as a Wikipedia self-reference, causing it to be omitted when the page content is reused outside of Wikipedia (see {{self reference}} and MOS:SELFREF for more details).
Styling in italics
Please see Lua error: Internal error: The interpreter has terminated with signal "9". (WP:ITHAT) for details about how to use italics in hatnotes.
Tracking category
Pages with errors reported by this template are added to Category:Hatnote templates using unusual parameters.
TemplateData
TemplateData for For
Lua error: Internal error: The interpreter has terminated with signal "9".
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 | required |
| 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 |
| Is self-reference? | selfref | Set to yes to make this hatnote invisible on e.g. printed versions, for [[WP:SELFREF]]s
| Boolean | optional |
Lua error: Internal error: The interpreter has terminated with signal "9".