ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

ModEnc:Sidebars: Difference between revisions

From ModEnc
Jump to navigation Jump to search
Nighthawk200 (talk | contribs)
Updating...
Nighthawk200 (talk | contribs)
Adding.
 
Line 10: Line 10:
*[[ModEnc:Sidebars/GameBar]] {{arr|r}} [[Template:GameBar]]
*[[ModEnc:Sidebars/GameBar]] {{arr|r}} [[Template:GameBar]]
*[[ModEnc:Sidebars/ModBar]] {{arr|r}} [[Template:ModBar]]
*[[ModEnc:Sidebars/ModBar]] {{arr|r}} [[Template:ModBar]]
*[[ModEnc:Sidebars/SiteBar]] {{arr|r}} [[Template:SiteBar]]
*[[ModEnc:Sidebars/ToolBar]] {{arr|r}} [[Template:ToolBar]]
*[[ModEnc:Sidebars/ToolBar]] {{arr|r}} [[Template:ToolBar]]


==See also==
==See also==
*[[Template:Sidebar]]
*[[Template:Sidebar]]

Latest revision as of 22:21, 22 June 2008

This page acts as a parent page for all (or most) sidebar content pages. If you want to add your own sidebar, do the following things:

  • Create the content-area of your sidebar, complete with parameters, as a child of this page (e.g. ModEnc:Sidebars/ExampleBar)
  • Create the template people will call (e.g. ExampleBar)
  • Call Template:Sidebar from within that template
  • Pass your content page complete with parameters to Sidebar's content parameter, while having new parameters for the template input (e.g. content={{ModEnc:Sidebars/ExampleBar|{{{example}}}|{{{param}}}}})
  • Now you should be able to do {{ExampleBar|example=foo|param=bar}}, which would resolve to a Sidebar call with a content of ModEnc:Sidebars/ExampleBar|foo|bar, which would resolve to foo and bar occupying places {{{1}}} and {{{2}}} in the output of ModEnc:Sidebars/ExampleBar.

Sidebars

See also