Difference between revisions of "Template:Frank Miller"

From blackwiki
Jump to navigation Jump to search
Line 62: Line 62:
 
}}{{#switch:{{{type|}}}
 
}}{{#switch:{{{type|}}}
 
     |comic = {{#if:{{{1|}}}|[[Category:Comics by Frank Miller|{{{1|}}}]]|[[Category:Comics by Frank Miller]]}}
 
     |comic = {{#if:{{{1|}}}|[[Category:Comics by Frank Miller|{{{1|}}}]]|[[Category:Comics by Frank Miller]]}}
    |film = [[Category:Films directed by Frank Miller]]
 
 
     |script = [[Category:Films directed by Frank Miller]][[Category:Screenplays by Frank Miller]]
 
     |script = [[Category:Films directed by Frank Miller]][[Category:Screenplays by Frank Miller]]
 
     |work = [[Category:Works by Frank Miller]]
 
     |work = [[Category:Works by Frank Miller]]
Line 68: Line 67:
 
{{collapsible option}}
 
{{collapsible option}}
 
The parameter: '''<tt>|type = </tt>''' can be added to the template. Setting include:
 
The parameter: '''<tt>|type = </tt>''' can be added to the template. Setting include:
* "comic" which will place the article into [[:Category:Comics by Frank Miller]], and
+
* "comic" which will place the article into [[:Category:Comics by Frank Miller]],
* "film" which will place the article into [[:Category:Films directed by Frank Miller]],
 
 
* "script" which will place the article into the Films category as well as [[:Category:Screenplays by Frank Miller]],
 
* "script" which will place the article into the Films category as well as [[:Category:Screenplays by Frank Miller]],
 
* "work" which will place the article into [[:Category:Works by Frank Miller]],
 
* "work" which will place the article into [[:Category:Works by Frank Miller]],

Revision as of 16:24, 10 May 2014

Initial visibility: currently defaults to autocollapse

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

  • |state=collapsed: {{Frank Miller|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Frank Miller|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Frank Miller|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. The parameter: |type = can be added to the template. Setting include:

Please note that:

  • The sorting will be by the pagename or the default set with {{DEFAULTSORT}}.
  • With normal placement of the navigation template, the category will precede "manually" added categories. Care should be taken.