Welcome to Assassin's Creed Wiki! Log in and join the community.

Help:Portal: Difference between revisions

From the Assassin's Creed Wiki
Jump to navigation Jump to search
imported>Tierrie
Created page with "{{TOC right}}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 compon…"
 
imported>Cristophorus35
m Elements removed as per Soranin's request.
 
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{TOC right}}This is the documentation page for the Portal pages and its components.  
{{TOC right}}This is the documentation page for the [[Template: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.
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.
Line 11: Line 11:
==Components==
==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 <nowiki>{{Portal:Component/News}}</nowiki>.  
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 <nowiki>{{Portal:Component/News}}</nowiki>.  
* [[Template:Portal/Component/Slider]], this page is special. See [[#Slider]] for more information.
* [[Template:Portal/Component/News]]
* [[Template:Portal/Component/News]]
* [[Template:Portal/Component/Forums]]
* [[Template:Portal/Component/Forums]]
Line 23: Line 24:
* [[Template:Portal/Component/NewestArticles]]
* [[Template:Portal/Component/NewestArticles]]
* [[Template:Portal/Component/Countdown]], see Info component instead
* [[Template:Portal/Component/Countdown]], see Info component instead
* [[Template:Portal/Component/IRC]]
* [[Template:Portal/Component/Sexbuddies]]
* [[Template:Portal/Component/Fanon]]


==Portal Components==
==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 [[#Slider]] or as a standalone in the fallback [[#Portal Pages]].
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 [[#Slider]] or as a standalone in the fallback [[#Portal Pages]].
* [[Template:Portal/Main]], this is a special page, see [[#Main Portal]]
* [[Template:Portal/Main]], this is a special page, see [[#Main Portal]]
** [[Template:Portal/Games]]
** [[Template:Portal/Series]]
** [[Template:Portal/Community]]
** [[Template:Portal/Admin]]
Unused
* [[Template:Portal/Assassin's Creed]]
* [[Template:Portal/Assassin's Creed]]
* [[Template:Portal/Assassin's Creed II]]
* [[Template:Portal/Assassin's Creed II]]
* [[Template:Portal/Assassin's Creed III]]
* [[Template:Portal/Assassin's Creed: Brotherhood]]
* [[Template:Portal/Assassin's Creed: Revelations]]
* [[Template:Portal/Assassin's Creed Series]]
* [[Template:Portal/Assassin's_Creed_Wiki]]
* [[Template:Portal/Assassin's Creed Wiki:Project Timeline]]
* [[Template:Portal/Assassin's Creed Wiki:Padawans]]
* [[Template:Portal/Assassin's Creed Wiki:Crew]]


==Portal Pages==
==Portal Pages==
Line 36: Line 53:


The following is a list of '''Portal Pages'''
The following is a list of '''Portal Pages'''
<!-- add list of portal pages here -->
* [[Portal:Assassin's Creed]]
* [[Portal:Assassin's Creed II]]
* [[Portal:Assassin's Creed: Brotherhood]]
* [[Portal:Series]]
* [[Portal:Assassin's_Creed_Wiki]]
* [[Portal:Assassin's Creed: Revelations]]
* [[Portal:Assassin's Creed III]]


==Layout==
==Layout==

Latest revision as of 03:48, 18 September 2023

This is the documentation page for the Template: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.

Sections[edit source]

The creation of containers and elements of the portal box is handled by {{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 the stylesheet.

Transformer[edit source]

{{PortalTransformer}} is the transformer that takes the layout and converts it into {{PortalSection}} much like our {{ItemTransformer}} does. It can also transform a portal section into a frameless section called a {{PortalPage}}.

Components[edit source]

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

Portal Components[edit source]

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 #Slider or as a standalone in the fallback #Portal Pages.

Unused

Portal Pages[edit source]

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 #Layout and passes #Portal Components as a parameter. This basically tells wiki to use the layout but instead of using #Slider, use a static Portal Component instead.

The following is a list of Portal Pages

Layout[edit source]

There is only one current layout for the page and it is Assassin's Creed 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 #Portal Pages.

Slider[edit source]

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

Main Portal[edit source]

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

In addition, if the link is to a #Portal 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.

Random Pages[edit source]

These pages are here to distract you and cause confusion.