Difference between revisions of "Template:Hatnote templates documentation"
Jump to navigation
Jump to search
test>Unused0029 m (update documentation code (from WP:DOC)) |
test>Unused0029 (continue towards finishing changes from previous (relatively major) edit (not from the minor one) - edit "For" section etc.) |
||
| Line 40: | Line 40: | ||
* <code>{{[[Template:Otheruses|otheruses]]}}</code> (disambiguous): {{otheruses}} | * <code>{{[[Template:Otheruses|otheruses]]}}</code> (disambiguous): {{otheruses}} | ||
* <code>{{[[Template:Otheruses1|otheruses1]]|USE}}</code> (disambiguous): {{otheruses1|USE}} | * <code>{{[[Template:Otheruses1|otheruses1]]|USE}}</code> (disambiguous): {{otheruses1|USE}} | ||
| − | |||
* <code>{{[[Template:Otheruses2|otheruses2]]|PAGE}}</code> (disambiguous): {{otheruses2|PAGE}} | * <code>{{[[Template:Otheruses2|otheruses2]]|PAGE}}</code> (disambiguous): {{otheruses2|PAGE}} | ||
* <code>{{[[Template:Otheruses3|otheruses3]]|PAGE}}</code>: {{otheruses3|PAGE}} | * <code>{{[[Template:Otheruses3|otheruses3]]|PAGE}}</code>: {{otheruses3|PAGE}} | ||
* <code>{{[[Template:Otheruses5|otheruses5]]}}</code>: {{otheruses5}} (this is for when there are both a singular and plural disambiguation page; only works when the plural is formed simply by adding "s" at the end.) | * <code>{{[[Template:Otheruses5|otheruses5]]}}</code>: {{otheruses5}} (this is for when there are both a singular and plural disambiguation page; only works when the plural is formed simply by adding "s" at the end.) | ||
* <code>{{[[Template:Otheruses6|otheruses6]]|PAGE1|PAGE2}}</code>: {{otheruses6|PAGE1|PAGE2}} (for when there are two disambiguation pages, such as noun and adjective, or singular and irregular plural; there are only two parameters, at least one is required) | * <code>{{[[Template:Otheruses6|otheruses6]]|PAGE1|PAGE2}}</code>: {{otheruses6|PAGE1|PAGE2}} (for when there are two disambiguation pages, such as noun and adjective, or singular and irregular plural; there are only two parameters, at least one is required) | ||
| + | * <code>{{[[Template:This|This]]|USE|PAGE}}</code>: {{this|USE|PAGE}} | ||
| + | ===== For (other topic) ===== | ||
| + | {{tl|for}} (and {{tl|for2}}) can be used instead of {{tl|about}} to not include the first part - "This article is about USE". However, this can also simply be achieved with an empty first parameter in {{tl|about}}.<br> | ||
| + | For example, <code>{{[[Template:For|For]]|OTHER TOPIC|PAGE}}</code> becomes <code>{{[[Template:About|About]]||OTHER TOPIC|PAGE}}</code>. | ||
| − | |||
| − | |||
* <code>{{[[Template:For|For]]}}</code> (disambiguous): {{for}} | * <code>{{[[Template:For|For]]}}</code> (disambiguous): {{for}} | ||
* <code>{{[[Template:For|For]]|OTHER TOPIC}}</code> (disambiguous): {{for|OTHER TOPIC}} | * <code>{{[[Template:For|For]]|OTHER TOPIC}}</code> (disambiguous): {{for|OTHER TOPIC}} | ||
* <code>{{[[Template:For|For]]|OTHER TOPIC|PAGE}}</code>: {{for|OTHER TOPIC|PAGE}} | * <code>{{[[Template:For|For]]|OTHER TOPIC|PAGE}}</code>: {{for|OTHER TOPIC|PAGE}} | ||
* <code>{{[[Template:For|For]]|OTHER TOPIC|PAGE1|PAGE2}}</code>: {{for|OTHER TOPIC|PAGE1|PAGE2}} | * <code>{{[[Template:For|For]]|OTHER TOPIC|PAGE1|PAGE2}}</code>: {{for|OTHER TOPIC|PAGE1|PAGE2}} | ||
| − | * <code>{{[[Template:For2|For2]]|OTHER TOPIC|<nowiki> | + | * <code>{{[[Template:For2|For2]]|OTHER TOPIC|<nowiki>CUSTOM TEXT</nowiki>}}</code>: {{for2|OTHER TOPIC|CUSTOM TEXT}} |
==== Other people ==== | ==== Other people ==== | ||
Revision as of 23:51, 9 April 2008
Initial visibility: currently defaults to autocollapse
To set this template's initial visibility, the |state= parameter may be used:
|state=collapsed:{{Hatnote templates documentation|state=collapsed}}to show the template collapsed, i.e., hidden apart from its title bar|state=expanded:{{Hatnote templates documentation|state=expanded}}to show the template expanded, i.e., fully visible|state=autocollapse:{{Hatnote templates documentation|state=autocollapse}}
If the |state= parameter in the template on this page is not set, the template's initial visibility is taken from the |default= parameter in the Collapsible option template. For the template on this page, that currently evaluates to autocollapse.
TemplateData for VisualEditor
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| State | state | no description | Unknown | optional |
See also
| The above documentation is transcluded from Template:Hatnote templates documentation/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |