Portal Guide

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.

==Editors' Note==

'''All the credit for the original design of the portal templates should go to http://dragonage.wikia.com/wiki/User:Tierrie Tierrie of Dragon Age Wikia.''' The portal design of Deus Ex Wikia completely based on his original design for Dragon Age Wikia. Even this documentation regarding portals based on a documentation prepared by him for Dragon Age Wikia.

The creation of containers and elements of the portal box is handled by Template:PortalSection|PortalSection. It's 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 MediaWiki:Wikia.css|the stylesheet.

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

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 {{Portal:Component/News}}.
* Template:Portal/Component/News
* Template:Portal/Component/Forums
* Template:Portal/Component/Statistics
* Template:Portal/Component/Help
* Template:Portal/Component/Twitter
* Template:Portal/Component/Quotes
* Template:Portal/Component/FeaturedArticle
* Template:Portal/Component/Video
* Template:Portal/Component/Images
* Template:Portal/Component/Activity (this component does not currently exist)
* Template:Portal/Component/NewestArticles (this component does not currently exist)
* Template:Portal/Component/Countdown, see Info component instead (this component does not currently exist)

==Portal Components==
A portal is a unique type of component in that it is designed to fit within a certain width and height. It needs its fixed width as it is designed to be a tab in  or as a standalone in the fallback  Pages.
* Template:Portal/Main, this is a special page, see  Portal
* Template:Portal/Deus Ex: Human Revolution
* Template:Portal/Deus Ex: Invisible War
* Template:Portal/Deus Ex

There is only one current layout for the page and it is Deus Ex Wiki - this wiki's main page. Its layout uses a unique component called the Template:Portal/Component/Slider unless it is transcluded and passed an anonymous {{{1}}} parameter. This page is only transcluded by  Pages.

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  Pages.

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.
* Add the following code to the middle part of the page. A content can be anything but should be a  Components
 <div id="portal_content-4" class="ui-tabs-hide">CONTENT HERE</div>

==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  Components, it should also contain
 <div class="portal_sliderlink_X">CONTENT HERE</div>
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.

{|class="portal_container" width="100%" border="0" cellspacing="0" cellpadding="0" style="padding-top: 1em;"
|width="50%" valign="top"|{{Template:Portal/Component/News}}
|width="50%" valign="top"|{{Template:Portal/Component/Video}}{{Template:Portal/Component/Twitter}} |} {{Template:Portal/Component/Quotes}}{{Template:Portal/Component/Statistics}}{{Template:Portal/Component/Images}} {{Template:Portal/Component/Help}} __NOTOC__ __NOEDITSECTION__ Category:Testing
How do I edit a template? This "items in DX/DXIW" template works, but there are some undesirable links, like "zyme vial" or "energy cell"

User:Dorgles|Dorgles 04:01, January 27, 2011 (UTC)
The pages that are under this category only use for testing purposes. The purpose of having such testing pages is to test new modifications to the Wikis' current structure without harming the actual Wiki.
Category:Site maintenance
{{Deus Ex: Invisible War image}}
Category:Deus Ex: Invisible War character images