Template:TabbedFolder

From PRIMUS Database
Revision as of 08:48, 7 March 2016 by Liath (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Liath Knot.png
Liath Pencil.png
Liath Pic.png
Liath Top.png
Tab Title


The TabbedFolder box provids a neat simple design for seperating out specific information on a page

How to use the TabbedFolder

The long and involved process works thusly. If you just want the damn Box, go directly to the Cheat Sheet.

Trigger the use of the TabbedFolder on your page if you plan to include it. At the top of your edit window, enter:

{{TabbedFolder

Below that, you'll want to fill out all the parameters that you can fill out or care to fill out. For this, you'll need the name of the parameter that corresponds to the field you'll want to fill; in most cases, the parameter names are the same as the name of the field, but they differ in some. A complete list can be found below. The format for filling in a parameter is as follows:

| parameter = value
eg.
| title = Vigilante
| content = Your content or information to include.

This will replace the {{{title}}} placeholder in the original TabbedFolder with 'Vigilante'. Each parameter should be put in a new line for ease of parsing and debugging in case something goes wrong.

Close the Template. This is done by appending the following at the end of your list:

|}}

And with this, you're set.

List of Parameters

  • title - The title to be shown in the tab of the box. This will appear in big bold letters at top left.
  • content - The information to be displayed within the box. This could be directly input text, another template or any valid mediawiki or html code.
  • textcolor - Sets color for tab title and content. Defaults to  White . Values accepted include: standard HTML Color Names, any hexadecimal color value.
  • textshadow - Sets shadow color for tab title and content. Helps text stand out on lighter backgrounds. Defaults to  Black . Values accepted include: standard HTML Color Names, any hexadecimal color value.
  • backcolor - Sets main color for the box background. Defaults to  Blue . Values accepted include: standard HTML Color Names, any hexadecimal color value.
  • backfadeout - Sets alternate/fade to color for the box background. Defaults to  Transparent . Values accepted include: standard HTML Color Names, any hexadecimal color value.
  • tabwidth - Width of the Tab at top of the 'folder'. Values must be entered with px scale identifier or percentage. e.g 150px or 50%. Defaults to 300px.
  • boxwidth - Width of the main box of the 'folder'. Values must be entered with px scale identifier or percentage. e.g 600px or 100%. Defaults to 100% of parent container.
  • boxcurve - Size of curve (if any) of main box of the 'folder'. Values must be entered with px scale identifier. e.g 5px. Defaults to 15px (same as the Tab section).
  • handle - The 'name' of your box. Include this is you want to add a link somewhere on your page to direct visitors to this section. e.g 'information' you can then add a link for users to click with the following code: [[#information|<font color=silver>Information Section</font>]]


Note: To display the default value, remove the parameter line from the cheat sheet, remove the equals(=) sign or alternatively comment out the section(s) as follows:

<!--| realname = -->
This way if you decide to fill in that section in the future, you can simply delete the
<|-- -->
comment markers


TabbedFolder Cheatsheet

Copy the following onto your page and fill out the appropriate information.

{{TabbedFolder |title= |content= |textcolor |textshadow |backcolor |backfadeout |tabwidth |boxwidth |boxcurve |handle |}}

TabbedFolder Examples

Click here to see pages which use this template.


Created by: @liath.png