Template:Sidebar/doc

From Goon Wiki
< Template:Sidebar
Revision as of 08:24, 11 November 2021 by Myrddin calyx (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is a meta-template for use in creating other sidebar templates, like Template:Sidebar Newbee.

Call this template by invoking {{Sidebar}}. the template assumes that at least the following parameters will be called:

  • title: This sets the title of the sidebar. If not set, it defaults to Sidebar Title.
  • group1: This sets the first sub-heading of the sidebar. If not set, it defaults to Group 1 Title.
  • content1: This sets the content for the first group. If not set, it defaults to Group 1 Content.
  • bottom: This sets the static bottom link for a sidebar, typically Other Guides. If not set, it defaults to a non-breakable space.

The template supports up to 5 groups. If you set a group without setting content, the parameter for that content defaults to Group # Content. Not setting a group at all results in it simply not appearing.

All groups also have a switchable parameter called group#collapsed (where # is the group number, IE group1collapsed), which sets if the group is collapsed by default or not.

There is also an image parameter which can be used to set an image to be used above the title.