Template:Portal/doc

This template is part of a set of templates designed to streamline the portals look and feel.

Usage
The basic usage is Other content |}

As you can see there is the need of a DIV element to put some margin, and a " |} " to close the table at the end of the block.

Explaination
But let's explain what each row does. Includes the portal navigation template (Template:Portalsnav) and opens the table that provides the base background colour (usually the darker one) Adds some padding in a safe way, I could have tried to do it inside this template but mediawiki closes the div right after the end of the template. In other words, it's quick and dirty, but it works. Calls the main header template (Template:Portal Header) to display the introduction of the Portal along with an icon (resized to 100px wide), Box Content holds the content of the introduction box, usually a relevant quote in Race Portals. Other content The other boxes, the simplest way to add boxes or headings with no boxes is to use Template:Portal Box Template:Portal Heading. |} Closure of the 'safe padding' and the coloured container, again it's quick and dirty, but it works.

Look and feel
The look of every element can be changed by creating some templates with css code inside.

Every table/element includes a template inside his style parameter, basically it works like this

 

Not only both Template:Portal,Template:Portal Header,Template:Portal Headingand Template:Portal Box use different templates, the template included is also relative to the page it is included into.

IE.: if in Portal:Test I put a Template:Portal Box, the resulting box will include the styles from Template:Portal Box Head Styles/Portal:Test for the box title and Template:Portal Box Styles/Portal:Test for the lower box part, where the content is. As you can see the path is Template:Portal Box Head Styles/Portal:Test so the Portal Box template automatically switches Portal Box Head Styles/Portal Box Styles based on which page it is included into. You can force a different style by using the parameter Style, in this way you can have different looking boxes in a single page.

This page uses Template:Portal Main Table Styles/Portal, Template:Portal Header Styles/Portal, Template:Portal Box Head Styles/Portal and Template:Portal Box Styles/Portal.

ANY kind of css rule is allowed there, but it's best to keep them simple, and alter the main templates in case that all the portals need that style change.

Simplyfied skeleton
To be used for copy-paste.


 * }

Real-life example

 * }

Result
This produces:


 * }