Template:Alan Grant

From Hey Kids Comics

Initial visibility

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

  • |state=collapsed: {{Alan Grant|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Alan Grant|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Alan Grant|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 is not set, the template's initial visibility is taken from the |default= parameter in the template. For this template, that currently evaluates to autocollapse.

This template, since it only covers either comics titles or storylines, will automatically add the article to Category:Comics by Alan Grant, sorted by article name. The sort can be changed by adding " |<name to be sorted on> ".

Example: {{Alan Grant|Last American, The}} would sort to "L" not "T".

The parameter: |type = can be added to the template. Active settings include "character", "script" and "work". Any of these three will currently place the article into Category:Works by Alan Grant in stead of the default comics category.

Please note that with normal placement of the navigation template, the category will precede "manually" added categories. Care should be taken.