Difference between revisions of "Template:Hatnote templates documentation"
Jump to navigation
Jump to search
test>Unused0029 (continue towards finishing changes from previous (relatively major) edit (not from the minor one) - edit "For" section etc.) |
test>Unused0029 (→Variations: completely finish changes) |
||
| Line 34: | Line 34: | ||
====Variations==== | ====Variations==== | ||
| − | There are also variations of {{tl|about}}. These serve the same purpose, and are marginally easier to use for each individual purpose, but overall, it is complicated to have so many different templates. | + | There are also variations of {{tl|about}}. These serve the same purpose, and are marginally easier to use for each individual purpose, but overall, it is complicated to have so many different templates; it could be argued that the time saved using them is lost as other editors have to familiarise themselves with them. |
All of these templates are special cases of {{tl|about}}. | All of these templates are special cases of {{tl|about}}. | ||
| − | * <code>{{[[Template:Otheruses|otheruses]]}}</code> | + | * <code>{{[[Template:Otheruses|otheruses]]}}</code>: {{otheruses}} |
| − | * <code>{{[[Template:Otheruses1|otheruses1]]|USE}}</code> | + | Note: <code>{{tlx|about}}</code> will produce the same result. |
| − | * <code>{{[[Template:Otheruses2|otheruses2]]|PAGE}}</code> | + | * <code>{{[[Template:Otheruses1|otheruses1]]|USE}}</code>: {{otheruses1|USE}} |
| + | Note: <code>{{tlx|about|USE}}</code> will produce the same result. | ||
| + | * <code>{{[[Template:Otheruses2|otheruses2]]|PAGE}}</code>: {{otheruses2|PAGE}} | ||
| + | Note: this simply adds "(disambiguation)" to what you input as PAGE. | ||
* <code>{{[[Template:Otheruses3|otheruses3]]|PAGE}}</code>: {{otheruses3|PAGE}} | * <code>{{[[Template:Otheruses3|otheruses3]]|PAGE}}</code>: {{otheruses3|PAGE}} | ||
| − | * <code>{{[[Template:Otheruses5|otheruses5]]}}</code>: {{otheruses5}} | + | Note: <code>{{tlx|about|{{!}}{{!}}PAGE}}</code> will produce the same result - note the two empty parameters. |
| − | * <code>{{[[Template:Otheruses6|otheruses6]]|PAGE1|PAGE2}}</code>: {{otheruses6|PAGE1|PAGE2}} | + | * <code>{{[[Template:Otheruses5|otheruses5]]}}</code>: {{otheruses5}} |
| + | Note: this is for when there is both a singular and plural disambiguation page; it only works when the plural is formed simply by adding "s" at the end. | ||
| + | * <code>{{[[Template:Otheruses6|otheruses6]]|PAGE1|PAGE2}}</code>: {{otheruses6|PAGE1|PAGE2}} | ||
| + | Note: this is for when there are two disambiguation pages, such as noun and adjective, or singular and irregular plural. There are only two parameters and at least one is required. | ||
| + | <br>Note: this cannot be recreated with {{tlx|about}} - only with {{tlx|dablink}} or {{tlx|for}}. | ||
* <code>{{[[Template:This|This]]|USE|PAGE}}</code>: {{this|USE|PAGE}} | * <code>{{[[Template:This|This]]|USE|PAGE}}</code>: {{this|USE|PAGE}} | ||
| + | Note: {{tlx|about|USE|{{!}}PAGE}} will produce the same result - note the empty parameter. | ||
===== For (other topic) ===== | ===== 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> | {{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> | ||
Revision as of 00:19, 10 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. |