Difference between revisions of "Module:Hatnote templates"

From blackwiki
Jump to navigation Jump to search
test>Uanfala
(rm {{Other Pennsylvania townships}} and {{Pope Stephen ToP Dab}} – chances are that all articles that ever needed hatnotes for Pennsylvanian townships or for popes named "Stephen" will already have them by now – unlikely to be sought by editors using this navbox)
test>Uanfala
(move templates for use in article sections (rather than in lede) into a separate group; reorganise the rest)
Line 11: Line 11:
 
*[[Wikipedia:Redirect]]
 
*[[Wikipedia:Redirect]]
  
| group1 = Main articles
+
| group1 = Generic
 
| list1 =
 
| list1 =
*{{tl|Main}}
 
 
| group2 = Generic
 
| list2 =
 
 
*{{tl|Hatnote}}
 
*{{tl|Hatnote}}
 
*{{tl|Selfref}} (for self-references)
 
*{{tl|Selfref}} (for self-references)
  
| group3 = Other uses
+
| group2 = For and about
| list3 =
+
| list2 =
 +
*{{tl|For}}
 +
*{{tl|For2}} (for custom text)
 
*{{tl|About}}
 
*{{tl|About}}
 
*Variations: {{tl|Other uses}}
 
*Variations: {{tl|Other uses}}
Line 30: Line 28:
 
*{{tl|Distinguish-otheruses3}} (custom use text)
 
*{{tl|Distinguish-otheruses3}} (custom use text)
  
| group4 = For (other topic)
+
| group3 = Other topics
| list4 =
+
| list3 =
*{{tl|For}}
 
*{{tl|For2}} (for custom text)
 
 
 
| group5 = Further information
 
| list5 =
 
*{{tl|Further}}
 
*{{tl|Further2}} (for custom text)
 
*{{tl|For outline}}
 
*{{tl|Broader}}
 
 
 
| group6 = See
 
| list6 =
 
*{{tl|See also}}
 
*{{tl|See also if exists}}
 
*{{tl|See introduction}}
 
*{{tl|See Wiktionary}}
 
 
 
| group7 = Other topics
 
| list7 =
 
 
*{{tl|Other people}}
 
*{{tl|Other people}}
 
*{{tl|About other people}} (adds "about" description)
 
*{{tl|About other people}} (adds "about" description)
 
*{{tl|Similar names}}
 
*{{tl|Similar names}}
*{{tl|Other hurricanes}}
 
 
*{{tl|Other places}}
 
*{{tl|Other places}}
 
*{{tl|Other ships}}
 
*{{tl|Other ships}}
 +
*{{tl|Other hurricanes}}
  
| group8 = Redirect
+
| group4 = Redirect
| list8 =
+
| list4 =
 
*{{tl|Redirect}}
 
*{{tl|Redirect}}
 
*{{tl|Redirect2}} (for two redirects)
 
*{{tl|Redirect2}} (for two redirects)
Line 69: Line 48:
 
*{{tl|technical reasons}}
 
*{{tl|technical reasons}}
  
| group9 = Distinguish
+
| group5 = Distinguish
| list9 =
+
| list5 =
 
*{{tl|Distinguish}} (supports custom text too)
 
*{{tl|Distinguish}} (supports custom text too)
 
*{{tl|Redirect-distinguish}}
 
*{{tl|Redirect-distinguish}}
Line 78: Line 57:
 
*{{tl|About-distinguish2}} (for custom text)
 
*{{tl|About-distinguish2}} (for custom text)
  
| group10 = Transclusion
+
| group6 = For use in sections
| list10 =
+
| list6 =
 +
*{{tl|Main}}
 +
*{{tl|Further}}
 +
*{{tl|Further2}} (for custom text)
 +
*{{tl|See also}}
 +
*{{tl|See also if exists}}
 +
 
 +
 
 +
| group7 = Special
 +
| list7 =
 +
*{{tl|For outline}}
 +
*{{tl|Broader}}
 +
*{{tl|See introduction}}
 +
*{{tl|See Wiktionary}}
 
*{{tl|Transcluding article}}
 
*{{tl|Transcluding article}}
 
*{{tl|Transcluded section}}
 
*{{tl|Transcluded section}}
  
| group11 = Subject specific
+
| group8 = Subject specific
| list11 =  
+
| list8 =  
 
* {{tl|Year dab}}
 
* {{tl|Year dab}}
 
* {{tl|Highway detail hatnote}}
 
* {{tl|Highway detail hatnote}}

Revision as of 00:34, 18 April 2020

50px Module documentation[view] [edit] [history] [purge]

Initial visibility: currently defaults to autocollapse

To set this template's initial visibility, the |state= parameter may be used:

  • |state=collapsed: {{Hatnote templates|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Hatnote templates|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Hatnote templates|state=autocollapse}}
    • shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
    • shows the template in its expanded state if there are no other collapsible items on the page

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.

Template parameters

ParameterDescriptionTypeStatus
Statestate

no description

Unknownoptional

See also