Template:Hatnote templates: Difference between revisions
From Guild of Archivists
No edit summary |
mNo edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Navboxdl | ||
| state = {{{state|<includeonly>autocollapse</includeonly>}}} | |||
| title = Hatnote templates | |||
| name = Hatnote templates | | name = Hatnote templates | ||
| | | list1 = {{hlist| [[Wikipedia:Hatnote]] | [[Wikipedia:Disambiguation]] | [[Wikipedia:Redirect]] }} | ||
| | |||
| group2 = Generic | | group2 = Generic | ||
| list2 = | | list2 = {{hlist| {{tlx|hatnote|TEXT}} }} | ||
| group3 = Other uses | | group3 = Other uses | ||
| list3 = | | list3 = {{hlist | {{tlx|about|USE1}} | Variations: {{tlx|other uses}} | {{tlx|other uses2|PAGE}} | {{tlx|distinguish-otheruses}} | {{tlx|distinguish-otheruses2}} }} | ||
| group4 = For (other topic) | | group4 = For (other topic) | ||
| list4 = | | list4 = {{hlist | {{tlx|for|OTHER TOPIC}} | {{tlx|for2|OTHER TOPIC|CUSTOM TEXT}} | {{tlx|about|{{!}}USE}} }} | ||
| group5 = Further information | | group5 = Further information | ||
| list5 = | | list5 = {{hlist | {{tlx|further|OTHER PAGE}} | {{tlx|further2|CUSTOM TEXT}} | {{tlx|outline|OUTLINE PAGE}} }} | ||
| group6 = See also | | group6 = See also | ||
| list6 = | | list6 = {{hlist | {{tlx|see also|OTHER TOPIC}} }} | ||
| group7 = Other people | | group7 = Other people | ||
| list7 = | | list7 = {{hlist | {{tlx|other people}} | {{tlx|other people2|PAGE}} | {{tlx|other people3|USE1|USE2}} }} | ||
| group8 = Other places | | group8 = Other places | ||
| list8 = | | list8 = {{hlist | {{tlx|other places}} | {{tlx|other places3}} }} | ||
| group9 = Other topics | <!--| group9 = Other topics | ||
| list9 = | | list9 =--> | ||
| group10 = Other uses of (topic) | | group10 = Other uses of (topic) | ||
| list10 = | | list10 = {{hlist | {{tlx|other uses of|TOPIC|PAGE}} }} | ||
| group11 = Redirect | | group11 = Redirect | ||
| list11 = | | list11 = {{hlist | {{tlx|redirect|REDIRECT}} | {{tlx|redirect|REDIRECT|{{!}}PAGE}} | {{tlx|redirect|REDIRECT|USE|PAGE}} | {{tlx|redirect2|REDIRECT1|REDIRECT2}} | {{tlx|redirect2|REDIRECT1|REDIRECT2|USE|PAGE}} | {{tlx|redirect3|REDIRECT|TEXT}} | {{tlx|redirect-multi|3|REDIRECT1|REDIRECT2|REDIRECT3}} | {{tlx|redirect-several|REDIRECT1|REDIRECT2|…}} }} | ||
| group12 = "Not to be confused with..." | | group12 = "Not to be confused with..." | ||
| list12 = | | list12 = {{hlist | {{tlx|distinguish|PAGE}} | {{tlx|distinguish2|TEXT}} | {{tlx|redirect-distinguish|TEXT}} | {{tlx|redirect-distinguish2|TEXT1|TEXT2}} }} | ||
| group13 = Hatnote categories | | group13 = Hatnote categories | ||
| list13 = | | list13 = {{hlist | [[:Category:Hatnote templates|Hatnote templates]] | [[:Category:Hatnote templates for category pages|for category pages]] | [[:Category:Hatnote templates for names|for names]] | [[:Category:Hatnote templates for lists|for lists]] }} | ||
| | | list14 = {{hlist | [[Wikipedia:Hatnote#Hatnote templates|Hatnote templates documentation]] | {{DD:Files}} [[:Category:Hatnote templates]] }} | ||
}}<includeonly>[[Category:Hatnote templates]]</includeonly><noinclude>{{Documentation}}</noinclude> | |||
}}<noinclude>{{Documentation}}</noinclude> |
Latest revision as of 22:47, 20 January 2018
How to manage this template's initial visibility
To manage this template's visibility when it first appears, add the parameter:
|state=collapsed
to show the template in its collapsed state, i.e. hidden apart from its titlebar – e.g.{{Hatnote templates |state=collapsed}}
|state=expanded
to show the template in its expanded state, i.e. fully visible – e.g.{{Hatnote templates |state=expanded}}
|state=autocollapse
to show the template in its collapsed state but only if there is another template of the same type on the page – e.g.{{Hatnote templates |state=autocollapse}}
Unless set otherwise (see the |state=
parameter in the template's code), the template's default state is autocollapse
.
See also[edit source]
The above documentation is transcluded from Template:Hatnote templates/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. |