Template:For/doc: Difference between revisions
imported>Fire ページの作成:「{{for|the template to create a for loop|Template:For loop}} {{documentation subpage}} <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> {{二次利用}} {{Lua|Module:F…」 |
No edit summary |
||
Line 2: | Line 2: | ||
{{documentation subpage}} | {{documentation subpage}} | ||
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | ||
{{二次利用}} | {{二次利用}} | ||
{{Lua|Module:For}} | {{Lua|Module:For}} | ||
Latest revision as of 07:46, 23 January 2023
![]() | This is a documentation subpage for Template:For. It contains usage information, categories and other content that is not part of the original template page. |
![]() | この記事は、クリエイティブ・コモンズ・表示・継承ライセンス3.0のもとで公表されたウィキペディアの項目Template:For/docを素材として二次利用しています。 Lua error in Module:Itemnumber at line 91: attempt to concatenate local 'qid' (a nil value). |
![]() | LuaModuleを使用しています: |
This template yields a hatnote similar to {{Other uses}}, but allowing more flexible text with links to up to four articles or disambiguation pages. It accepts one to five parameters (zero is not allowed).
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. {{For|other entities}}
yields on page Foo:
The second parameter is used to change the resultant link, e.g. {{For|the acronym|FOO}}
yields (wherever it is set, now independent of the article title):
The third, fourth and fifth parameters are used to give one, two, or three additional resultant links:
the last being produced by e.g. {{For|similar terms|Foobar|Bar|Baz|Quux}}
.
Tracking category
Pages with errors reported by this template are added to Category:Hatnote templates using unusual parameters.
See also
TemplateData
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.
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 |