Difference between revisions of "Template:Sidebar/doc"

From Goon Wiki
Jump to: navigation, search
(Created page with "This is a meta-template for use in creating other sidebar templates, like Template:Sidebar IntOrg. Call this template by invoking '''<nowiki>{{Sidebar}}</nowiki>'''. the...")
 
 
Line 1: Line 1:
This is a meta-template for use in creating other sidebar templates, like [[Template:Sidebar IntOrg]].
This is a meta-template for use in creating other sidebar templates, like [[Template:Sidebar Newbee]].


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

Latest revision as of 08:24, 11 November 2021

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.