No edit summary |
mNo edit summary |
||
Line 16: | Line 16: | ||
<mainpage-endcolumn /> |
<mainpage-endcolumn /> |
||
</pre> |
</pre> |
||
− | |||
− | |||
⚫ | |||
==How to use the tags== |
==How to use the tags== |
||
⚫ | |||
The "leftcolumn" tag starts the 670px wide left column, and comes first: |
The "leftcolumn" tag starts the 670px wide left column, and comes first: |
||
Revision as of 18:20, 19 October 2012
This set of main page <tags/> allows for easier main page design and are the recommended method of creating layouts for main pages.
Using the following tags, you can create a main page that will work with the Wikia ad and will be compatible with any future changes Wikia may need to make to the main page layouts.
<mainpage-leftcolumn-start /> content the left column <mainpage-endcolumn /> <mainpage-rightcolumn-start /> content in the right column <mainpage-endcolumn />
How to use the tags
The "leftcolumn" tag starts the 670px wide left column, and comes first:
<mainpage-leftcolumn-start />
The left column is ended by:
<mainpage-endcolumn />
Next, the following starts a 330px wide right column:
<mainpage-rightcolumn-start />
The right column is ended by:
<mainpage-endcolumn />
After the end of the rightcolumn tag you can place anything you wish, and make them 100% page width. (Please note this is recommended against, especially on shorter pages.) However, you will need to add the following to ensure it appears below the columns:
<br style="clear:both;"/>
Examples
This demo wiki's main page is set up to display this article and some placeholder content, to illustrate how the tags can be used:
http://main-page-demo.wikia.com
The source code used to create that demo wiki's main page can be found at Help:Main_page_column_tags/source.
Main page tags in action on other wikis
See also
- Help:Galleries and slideshows to add cool images to your main page
- Help:Templates to create templates for things like "image of the day"
- Help:Main page