Difference between revisions of "Template:Grant Morrison"

From blackwiki
Jump to navigation Jump to search
imported>Werideatdusk33
imported>TonyTheTiger
(adding {{collapsible option}} and/or {{{state}}})
Line 2: Line 2:
 
|name = Grant Morrison
 
|name = Grant Morrison
 
|title = [[Grant Morrison]] [[Grant Morrison bibliography|bibliography]]
 
|title = [[Grant Morrison]] [[Grant Morrison bibliography|bibliography]]
|state = autocollapse
+
|state = {{{state|autocollapse}}}
 
|listclass = hlist
 
|listclass = hlist
  
Line 98: Line 98:
 
   }}
 
   }}
 
}}<noinclude>
 
}}<noinclude>
 +
{{collapsible option}}
  
 
This template, since it only covers either comics titles or storylines, will automatically add the article to [[:Category:Comics by Grant Morrison]], sorted by article name. The sort can be changed by adding " <tt>|<name to be sorted on><tt> ".
 
This template, since it only covers either comics titles or storylines, will automatically add the article to [[:Category:Comics by Grant Morrison]], sorted by article name. The sort can be changed by adding " <tt>|<name to be sorted on><tt> ".

Revision as of 04:43, 1 October 2012

Initial visibility: currently defaults to autocollapse

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

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

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

Example: {{Grant Morrison|Liberators, The}} would sort to "L" not "T".

The parameter: |type = can be added to the template. Active settings include "film", "game", and "work". Any of these three will currently place the article into Category:Works by Grant Morrison 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.

ru:Шаблон:Грант Моррисон