Template:BannerShell
From Wikipedia, the free encyclopedia
Contents[hide] |
Description
{{BannerShell}} wraps a collapsible container around another template, and is designed for use in conjunction with {{WikiProjectBannerShell}}.
Usage
This template is designed to be used in conjunction with {{WikiProjectBannerShell}}. It is a workaround necessary because Template:WikiProjectBannerShell was originally designed only for project banners that "have a bit of coding inserted that allows it to be condensed". However, many banners, especially banners that are not for WikiProjects, don't have that bit of coding. In that case, proceed as follows:
General usage for any banner
To include a banner like {{WPFOOBAR}}, write the following:
{{WikiProjectBannerShell|1= {{BannerShell|{{WPFOOBAR}}|text=foobar}} }}
The text parameter is optional and defaults to "more...".
WikiProject specific usage
To make a theoretical non-compliant protected project banner {{WPFOOBAR}} of "WikiProject FooBar" collapsible, you would convert:
{{WPFOOBAR|class=B}}
to the following:
{{WikiProjectBannerShell|1= {{BannerShell|class=B|topic=FooBar|1={{WPFOOBAR|class=B}}}} }}
Any extraneous message boxes will mess up the template, and should be removed. Let's take the very real example of WPBIO's {{WPBiography}}; this:
{{WPBiography|living=yes|class=B}}
Becomes this using WikiProjectBannerShell's blp=yes:
{{WikiProjectBannerShell|blp=yes|1= {{BannerShell|class=B|topic=Biography|{{WPBiography|class=B}}}} }}
The only other WPBIO parameter that WikiProjectBannerShell supports is activepol=yes.
Pitfalls
- On some templates, especially those that use a variant of {{portal}}, the [hide] button is the center of the template, whereas the [show] button is fine.
- Templates with more than one message box by default will be impossible to wrap. Thankfully, this is rare. Most templates have options to disable extra features, so in this case be on the lookout for those.