Difference between revisions of "Template:Diary of a Wimpy Kid"

From blackwiki
Jump to navigation Jump to search
imported>StAnselm
imported>TonyTheTiger
(adding {{collapsible option}} and/or {{{state}}})
Line 3: Line 3:
 
|title= The [[Diary of a Wimpy Kid (series)|''Diary of a Wimpy Kid'']] series by [[Jeff Kinney (writer)|Jeff Kinney]]
 
|title= The [[Diary of a Wimpy Kid (series)|''Diary of a Wimpy Kid'']] series by [[Jeff Kinney (writer)|Jeff Kinney]]
 
|bodyclass= hlist
 
|bodyclass= hlist
|state=
+
|state= {{{state|}}}
 
|colheaderstyle = vertical-align: top; width:14.286%; padding-top: 0.3em; padding-bottom: 0.3 em;
 
|colheaderstyle = vertical-align: top; width:14.286%; padding-top: 0.3em; padding-bottom: 0.3 em;
  
Line 33: Line 33:
 
*See also: [[List of Diary of a Wimpy Kid characters|Characters]] ([[Greg Heffley]]){{·}} [[Diary of a Wimpy Kid (film series)|Film series]]
 
*See also: [[List of Diary of a Wimpy Kid characters|Characters]] ([[Greg Heffley]]){{·}} [[Diary of a Wimpy Kid (film series)|Film series]]
 
}}<noinclude>
 
}}<noinclude>
 +
{{collapsible option}}
 
[[Category:Diary of a Wimpy Kid]]
 
[[Category:Diary of a Wimpy Kid]]
 
[[Category:Book series templates]]
 
[[Category:Book series templates]]

Revision as of 01:54, 1 October 2012

Initial visibility: currently defaults to autocollapse

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

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

pt:Predefinição:Diary of a Wimpy Kid