Difference between revisions of "Template:HKLegco 2012/doc"

From blackwiki
Jump to navigation Jump to search
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
imported>Jonesey95
m (Fix Linter errors using AutoEd)
 
Line 4: Line 4:
 
=== Usage ===
 
=== Usage ===
 
This template will add the category [[:Category:Members of the Legislative Council of Hong Kong|Members of the Legislative Council of Hong Kong]] to the
 
This template will add the category [[:Category:Members of the Legislative Council of Hong Kong|Members of the Legislative Council of Hong Kong]] to the
article. If it is not suitable, Use <tt><nowiki>{{HKLegco|cat=no}}</nowiki></tt> to exclude the category.
+
article. If it is not suitable, Use <code><nowiki>{{HKLegco|cat=no}}</nowiki></code> to exclude the category.
  
 
{{collapsible option}}
 
{{collapsible option}}

Latest revision as of 02:10, 3 June 2020

Usage

This template will add the category Members of the Legislative Council of Hong Kong to the article. If it is not suitable, Use {{HKLegco|cat=no}} to exclude the category.

Initial visibility: currently defaults to autocollapse

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

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

See also