Help:Portal

This is the documentation page for the Portal pages and its components.

The portal and front pages are constructed out of multiple components. Each of these components can be edited individually and is auto-magically rendered with the right background.

This is the same portal created by Tierrie.

Sections
The creation of containers and elements of the portal box is handled by PortalSection. Its design adds the necessary class so that the css can apply the correct style to the elements. You can move the elements about, but keep in mind that it might not look good unless you can also edit the stylesheet.

Transformer
PortalTransformer is the transformer that takes the layout and converts it into PortalSection. It can also transform a portal section into a frameless section called a PortalPage.

Components
The following is a list of the components which can be used to make up a page. Simply transclude them into a page like so.


 * Template:Portal/Component/News


 * Template:Portal/Component/Forum


 * Template:Portal/Component/Featured Article


 * Template:Portal/Component/Featured Users, users with something great they want to show off


 * Template:Portal/Component/Featured Images


 * Template:Portal/Component/Featured Music


 * Template:Portal/Component/Podcast


 * Template:Portal/Component/Quotes


 * Template:Portal/Component/Today


 * Template:Portal/Component/Countdown

Portal Pages
Portal pages are actual portals - if javascript fails and as a fallback position, Template:Portal/Main will link to each of these portal pages without sliding. Therefore, even though these pages are seldom used, they must be created in the event the user does not have javascript enabled, or if javascript fails to load.

These portal pages transclude and passes  as a parameter. This basically tells wiki to use the layout but instead of using, use a static Portal Component instead.


 * Template:Portal/Main


 * Template:Portal/Music


 * Template:Portal/Print Works


 * Template:Portal/Games


 * Template:Portal/Characters


 * Template:Portal/Characters2


 * Template:Portal/Characters3


 * Template:Portal/Characters4


 * Template:Portal/Encyclopedia & Misc

Unused Portal Pages

 * Template:Portal/Bestiary


 * Template:Portal/Locations

Slider
There is one unique component called Template:Portal/Component/Slider which is a component that consists of the other portal components. Its primary purpose is create a page with multiple pages of portal. Only Template:Portal/Main is shown and the rest is hidden. If javascript is enabled, then the user can slide through these pages. If javascript is not enabled, then clicking on links in the main page will take you to the.

In order to add new pages, you must do two things


 * Add the following code to the top of the page. X must be a number in the sequence.

&lt;li&gt;&lt;/li&gt;


 * Add the following code to the middle part of the page. A content can be anything but should be a

&lt;div id="portal_content-4" class="ui-tabs-hide"&gt;CONTENT HERE&lt;/div&gt;

Main Portal
The main portal is the first thing the reader sees when they enter the wiki as it is the first page of the. It should contain normal links to pages or portals.

In addition, if the link is to a, it should also contain

&lt;div class="portal_sliderlink_X"&gt;CONTENT HERE&lt;/div&gt;

If javascript is enabled, this will cause the code to slide to the page X instead of opening the portal. If javascript is not, then as a fallback, the user will be taken to that link location.