Difference between revisions of "Template:Languages of the Philippines"

From blackwiki
Jump to navigation Jump to search
imported>MarkH21
(reflect article moves / merges)
imported>Paine Ellsworth
(update documentation + fmt + expand sections on this page only + update state= parameter)
Line 2: Line 2:
 
|name = Languages of the Philippines
 
|name = Languages of the Philippines
 
|title = {{flagdeco|Philippines|20px}} [[Languages of the Philippines]]
 
|title = {{flagdeco|Philippines|20px}} [[Languages of the Philippines]]
|state = <noinclude>{{{state|expanded}}}</noinclude><includeonly>{{{state|collapsed}}}</includeonly>
+
|state = {{{state<includeonly>|collapsed</includeonly>}}}
 
|listclass = hlist
 
|listclass = hlist
  
Line 37: Line 37:
  
 
|group1 = [[Luzon]]
 
|group1 = [[Luzon]]
 +
|state1 = <noinclude>expanded</noinclude>
 
|list1 =
 
|list1 =
 
{{navbox|subgroup
 
{{navbox|subgroup
Line 140: Line 141:
  
 
|group2 = [[Visayas]]
 
|group2 = [[Visayas]]
 +
|state2 = <noinclude>expanded</noinclude>
 
|list2 =
 
|list2 =
 
{{navbox|subgroup
 
{{navbox|subgroup
Line 169: Line 171:
  
 
|group3 = [[Mindanao]]
 
|group3 = [[Mindanao]]
 +
|state3 = <noinclude>expanded</noinclude>
 
|list3 =
 
|list3 =
 
{{navbox|subgroup
 
{{navbox|subgroup
Line 252: Line 255:
 
* [[Proto-Philippine language|Proto-Philippine]]  
 
* [[Proto-Philippine language|Proto-Philippine]]  
 
* [[Old Tagalog]]
 
* [[Old Tagalog]]
 +
 
}}<noinclude>
 
}}<noinclude>
{{collapsible option}}
+
{{Documentation|content=
 +
{{collapsible option|default=collapsed}}
 
[[Category:Languages of the Philippines templates| ]]
 
[[Category:Languages of the Philippines templates| ]]
 
[[Category:Philippines navigational boxes]]
 
[[Category:Philippines navigational boxes]]
</noinclude>
+
}}</noinclude>

Revision as of 01:20, 11 November 2019

Template documentation

Initial visibility: currently defaults to collapsed

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

  • |state=collapsed: {{Languages of the Philippines|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Languages of the Philippines|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Languages of the Philippines|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 collapsed.