Create Mediawiki Template

From ThemesWiki

Jump to: navigation, search
MediaWiki
Official Page
Project Documentation
Download
Source Book
200px-1847195202.jpg
ISBN 978-1-847195-20-3
Publisher Packt Publishing
Author(s) Richard Carter

We can change the layout of the wiki's new skin. You can use your own classes and ids in your template, but it is better to use MediaWiki's default names for them, because:unlimited hosting

  • If others edit your skin's template file or CSS, it will make it easier for them to work out what's going on, if they are familiar with MediaWiki.Seo marketing
  • Some class and id names (for example, the navigation list items) are automatically generated by MediaWiki, by default.
  • It is more consistent, as the other skins for your wiki are presented with those names. As a result, it is easier to make cross-skin changes.SEO

Contents

[edit] Ordering Elements

As we have used the MonoBook template as the basis for our new skin, the ordering of the elements within the page is not quite right for our JazzMeet skin's layout. search marketing In MonoBook, the ordering within the body is as follows:

  • The page's primary content:
    • Page title
    • Your wiki's tagline
    • "New message" notification, if needed
    • jump-to-nav links, to skip to either the wiki's navigation or the search feature
    • The content itself
    • The category links, if any
    • The print footer
  • The interface:
    • Views (for example, edit page, view page history)
    • Personal tools (for example, log in, log out, preferences)
    • The logo
    • Navigation
    • Search
    • Toolbox
    • The wiki's footer

The following order needs to be adopted to produce the layout required for JazzMeet:

  • The page's header, which contains the wiki's logo and the personal tools element
  • The column content, including links to JazzMeet's sponsors, and the search feature
  • The views and navigation elements
  • The page's primary content (this remains the same as mentioned earlier)
    • Page title
    • Your wiki's tagline
    • "New message" notification, if needed
    • jump-to-nav links, to skip to either the wiki's navigation or the search feature
    • The content itself
    • The category links, if any
    • The print footer
  • The toolbox
  • The footer

[edit] Content Ordering

Ideally, we want each page's primary content to be as close to the top of the page as possible. This is not only good for the search engines, as they can instantly see what your page is about, but is also better for those who use text-only Internet browsers.physical education degree

[edit] Layouts with CSS

To create the basic two-column layout that is required for JazzMeet's design, we can use the following:

 <div id="globalWrapper">
 
 <div id="content">
 <!-- main content here -->
 </div>
 
 <div id="column-one">
 <!-- column content here -->
 </div>
 
 <div style="clear: both !important;"></div>
 </div>

By assigning widths to the content and the column divs and making them float left, we can easily create a two-column layout that positions the primary content higher in the page's structure than the content in the column.Life Experience Degree Thus, the CSS would be as follows:

 #globalWrapper {
 margin: 0 auto; /* centre the layout */
 width: 950px;
 }
 #content {
 float: left;
 width: 710px;
 }
 #column-one {
 float: left;
 width: 215px;
 }
 
More CSS-based Layouts:

There are a lot of CSS resources on the Internet. Two of the best are Bluerobot's Layout Reservoir (http://www.bluerobot.com/web/layouts/), and Position is Everything (http://www.positioniseverything.net/).

[edit] Moving Blocks Around

Currently, the JazzMeet wiki's content is in a single column, with the page's primary content displayed above other elements such as the toolbox and navigation links, and the search feature.

Back up your skin template frequently:

Moving the content around in the template can become messy. So make sure you create copies of your skin template frequently, just in case!

JazzMeet's design means that we will need two columns, with the primary content to the left, and the other content, such as the search feature and our sponsors to the right, as we demonstrated earlier.

[edit] The Header

We have already dealt with the <head> elements. First in the page's <body> are the #p-personal element and the wiki's logo, which we need to enclose in a new div to style them more effectively. We can insert the following existing div inside:

 <div id="header">
 
 <div class="portlet" id="p-personal">
 ====The Content Column: #column-one====

The JazzMeet design has a column along the right-hand side of the page's primary content that displays JazzMeet's sponsors, and some advertisements. In the order of our page for JazzMeet, this content comes before the page's primary content.[http://www.speedydegrees.com/Online/pharmacy-degrees.htm pharmacy degree]


Beneath the closing tag for our new header, we can now add the necessary content for our column that includes the search feature:
<pre>
 <div id="column-one">
 
 <div id="p-search" class="portlet">
 ==Source==
The source of this content is '''Chapter 4: Changing the Layout''' of [http://www.packtpub.com/mediawiki-skins-design/book?utm_source=themeswiki&utm_medium=MediaWiki%2BSkins%20Design&utm_term=source_booklink%2B&utm_campaign=sep_2008 MediaWiki Skins Design] by Richard Carter ([http://www.packtpub.com/mediawiki-skins-design/book?utm_source=themeswiki&utm_medium=MediaWiki%2BSkins%20Design&utm_term=%20source_packt&utm_campaign=sep_2008 Packt Publishing], 2008).
[[Category:Open Source]]
[[Category:PHP/MySQL]]

==Source==
The source of this content is '''Chapter 4: Changing the Layout''' of [http://www.packtpub.com/mediawiki-skins-design/book?utm_source=themeswiki&utm_medium=MediaWiki%2BSkins%20Design&utm_term=source_booklink%2B&utm_campaign=sep_2008 MediaWiki Skins Design] by Richard Carter ([http://www.packtpub.com/mediawiki-skins-design/book?utm_source=themeswiki&utm_medium=MediaWiki%2BSkins%20Design&utm_term=%20source_packt&utm_campaign=sep_2008 Packt Publishing], 2008). 

[[Category:Open Source]]
[[Category:PHP/MySQL]]

====The Result====

The resulting pages, and the associated style and images generated with the template, resemble our vision for JazzMeet a lot more closely.[http://www.hostingpro.com.sg/ hosting]


[[Image:5203_04_08.png|thumb|center]]

==Additional References==
* For instructions on Installing MediaWiki, click [http://www.installationwiki.org/MediaWiki here]
* For instructions on Customizing MediaWiki, click [http://www.themeswiki.org/Customizing_MediaWiki here]
* For instructions on Troubleshooting Browser Issues with MediaWiki, click [http://www.troubleshootingwiki.org
* [http://www.eluneart.com Web design agency]
* [http://www.thewebsitegurus.com Cheap websites]
/Troubleshooting_Browser_Issues_with_MediaWiki here]

==Source==
The source of this content is '''Chapter 4: Changing the Layout''' of [http://www.packtpub.com/mediawiki-skins-design/book?utm_source=themeswiki&utm_medium=MediaWiki%2BSkins%20Design&utm_term=source_booklink%2B&utm_campaign=sep_2008 MediaWiki Skins Design] by Richard Carter ([http://www.packtpub.com/mediawiki-skins-design/book?utm_source=themeswiki&utm_medium=MediaWiki%2BSkins%20Design&utm_term=%20source_packt&utm_campaign=sep_2008 Packt Publishing], 2008). 

[[Category:Open Source]]
[[Category:PHP/MySQL]]

====The Result====

The resulting pages, and the associated style and images generated with the template, resemble our vision for JazzMeet a lot more closely.[http://www.hostingpro.com.sg/ hosting]


[[Image:5203_04_08.png|thumb|center]]

==Additional References==
* For instructions on Installing MediaWiki, click [http://www.installationwiki.org/MediaWiki here]
* For instructions on Customizing MediaWiki, click [http://www.themeswiki.org/Customizing_MediaWiki here][http://www.speedydegrees.com/Online/marketing-management-degrees.htm marketing management degree]
* For instructions on Troubleshooting Browser Issues with MediaWiki, click [http://www.troubleshootingwiki.org/Troubleshooting_Browser_Issues_with_MediaWiki here][http://www.hostingpro.com.sg/services.php web hosting service]

==Source==
The source of this content is '''Chapter 4: Changing the Layout''' of [http://www.packtpub.com/mediawiki-skins-design/book?utm_source=themeswiki&utm_medium=MediaWiki%2BSkins%20Design&utm_term=source_booklink%2B&utm_campaign=sep_2008 MediaWiki Skins Design] by Richard Carter ([http://www.packtpub.com/mediawiki-skins-design/book?utm_source=themeswiki&utm_medium=MediaWiki%2BSkins%20Design&utm_term=%20source_packt&utm_campaign=sep_2008 Packt Publishing], 2008).[http://www.casinoonlineplus.net casino online]

[[Category:Open Source]]
[[Category:PHP/MySQL]]

====The Content Column: #column-one====

The JazzMeet design has a column along the right-hand side of the page's primary content that displays JazzMeet's sponsors, and some advertisements. In the order of our page for JazzMeet, this content comes before the page's primary content.[http://www.speedydegrees.com/Online/pharmacy-degrees.htm pharmacy degree]


Beneath the closing tag for our new header, we can now add the necessary content for our column that includes the search feature:
<pre>
 <div id="column-one">
 
 <div id="p-search" class="portlet">
 ==Source==
The source of this content is '''Chapter 4: Changing the Layout''' of [http://www.packtpub.com/mediawiki-skins-design/book?utm_source=themeswiki&utm_medium=MediaWiki%2BSkins%20Design&utm_term=source_booklink%2B&utm_campaign=sep_2008 MediaWiki Skins Design] by Richard Carter ([http://www.packtpub.com/mediawiki-skins-design/book?utm_source=themeswiki&utm_medium=MediaWiki%2BSkins%20Design&utm_term=%20source_packt&utm_campaign=sep_2008 Packt Publishing], 2008).
[[Category:Open Source]]
[[Category:PHP/MySQL]]

==Source==
The source of this content is '''Chapter 4: Changing the Layout''' of [http://www.packtpub.com/mediawiki-skins-design/book?utm_source=themeswiki&utm_medium=MediaWiki%2BSkins%20Design&utm_term=source_booklink%2B&utm_campaign=sep_2008 MediaWiki Skins Design] by Richard Carter ([http://www.packtpub.com/mediawiki-skins-design/book?utm_source=themeswiki&utm_medium=MediaWiki%2BSkins%20Design&utm_term=%20source_packt&utm_campaign=sep_2008 Packt Publishing], 2008). 

[[Category:Open Source]]
[[Category:PHP/MySQL]]

====The Result====

The resulting pages, and the associated style and images generated with the template, resemble our vision for JazzMeet a lot more closely.[http://www.hostingpro.com.sg/ hosting]


[[Image:5203_04_08.png|thumb|center]]

==Additional References==
* For instructions on Installing MediaWiki, click [http://www.installationwiki.org/MediaWiki here]
* For instructions on Customizing MediaWiki, click [http://www.themeswiki.org/Customizing_MediaWiki here]
* For instructions on Troubleshooting Browser Issues with MediaWiki, click [http://www.troubleshootingwiki.org
* [http://www.eluneart.com Web design agency]
* [http://www.thewebsitegurus.com Cheap websites]
/Troubleshooting_Browser_Issues_with_MediaWiki here]

==Source==
The source of this content is '''Chapter 4: Changing the Layout''' of [http://www.packtpub.com/mediawiki-skins-design/book?utm_source=themeswiki&utm_medium=MediaWiki%2BSkins%20Design&utm_term=source_booklink%2B&utm_campaign=sep_2008 MediaWiki Skins Design] by Richard Carter ([http://www.packtpub.com/mediawiki-skins-design/book?utm_source=themeswiki&utm_medium=MediaWiki%2BSkins%20Design&utm_term=%20source_packt&utm_campaign=sep_2008 Packt Publishing], 2008). <a href="http://www.casinoonlineplus.net" title="casino online"><img src="http://www.casinoonlineplus.net/ScreenShot008.jpg" alt="casino online" border="0"></a> <a href="http://www.grattaevinciaams.com" title="gratta e vinci"><img src="http://www.casinoonlineplus.net/ScreenShot008.jpg" alt="gratta e vinci" border="0"></a> <a href="http://www.casinoonlineplus.net/europa-casino.html" title="europa casino"><img src="http://www.casinoonlineplus.net/ScreenShot008.jpg" alt="europa casino" border="0"></a> <a href="http://www.casinoonlineplus.net/titan-casino.html" title="titan casino"><img src="http://www.casinoonlineplus.net/ScreenShot008.jpg" alt="titan casino" border="0"></a> <a href="http://www.casinoonlineplus.net/bellini-casino.html" title="bellini casino"><img src="http://www.casinoonlineplus.net/ScreenShot008.jpg" alt="bellini casino" border="0"></a> <a href="http://www.casinoonlineplus.net/craps-casino.html" title="craps casino"><img src="http://www.casinoonlineplus.net/ScreenShot008.jpg" alt="craps casino" border="0"></a> <a href="http://www.casinoonlineplus.net/casino-tropez.html" title="tropez casino"><img src="http://www.casinoonlineplus.net/ScreenShot008.jpg" alt="tropez casino" border="0"></a> <a href="http://www.casinoonlineplus.net/titan-poker.html" title="titan poker"><img src="http://www.casinoonlineplus.net/ScreenShot008.jpg" alt="titan poker" border="0"></a>

[[Category:Open Source]]
[[Category:PHP/MySQL]]

====The Result====

The resulting pages, and the associated style and images generated with the template, resemble our vision for JazzMeet a lot more closely.[http://www.hostingpro.com.sg/ hosting]


[[Image:5203_04_08.png|thumb|center]]

==Additional References==
* For instructions on Installing MediaWiki, click [http://www.installationwiki.org/MediaWiki here]
* For instructions on Customizing MediaWiki, click [http://www.themeswiki.org/Customizing_MediaWiki here][http://www.speedydegrees.com/Online/marketing-management-degrees.htm marketing management degree]
* For instructions on Troubleshooting Browser Issues with MediaWiki, click [http://www.troubleshootingwiki.org/Troubleshooting_Browser_Issues_with_MediaWiki here][http://www.hostingpro.com.sg/services.php web hosting service]

==Source==
The source of this content is '''Chapter 4: Changing the Layout''' of [http://www.packtpub.com/mediawiki-skins-design/book?utm_source=themeswiki&utm_medium=MediaWiki%2BSkins%20Design&utm_term=source_booklink%2B&utm_campaign=sep_2008 MediaWiki Skins Design] by Richard Carter ([http://www.packtpub.com/mediawiki-skins-design/book?utm_source=themeswiki&utm_medium=MediaWiki%2BSkins%20Design&utm_term=%20source_packt&utm_campaign=sep_2008 Packt Publishing], 2008).

[[Category:Open Source]]
[[Category:PHP/MySQL]]
Personal tools