AAPG Wiki:Editing the main page

From AAPG Wiki
Jump to navigation Jump to search

The main page has some specialized markup. Some of the markup relates to style (design) and some to content. Most of the style is controlled by the Common stylesheet, MediaWiki:Common.css. Most of the content is in the page itself.

The page has three main parts:

  • Banner
  • Body
  • Gallery

[edit]

The markup looks like this:

<div class="mpg-banner">
<span class="mpg-title">'''Welcome to AAPG Wiki'''</span>

<span class="mpg-subtitle">an encyclopedia of subsurface science • [[AAPG Wiki:About|about the wiki]]</span>
<div style="height:3em;"></div>
<div class="mpg-info">'''[[Special:Statistics|{{NUMBEROFARTICLES}}]]''' articles • '''[[Special:Statistics|{{NUMBEROFACTIVEUSERS}}]]''' active users</div>
<div class="mpg-credit">Image credit: The Booklight, Flickr, {{no glossary|CC-BY}}</div>
</div>

The div and span classes (mpg-banner etc) control the style. The CSS describing how the classes are displayed is in the interface page MediaWiki:Common.css, which only administrators can edit.

To edit the style of the banner, edit Common.css. To edit the content, edit the text in between (that is, not inside the < and > signs) the div and span opening and closing tags.

Body[edit]

The body text is enclosed between tags:

<div class="mpg-text-block">
'''Welcome to AAPG Wiki — a new wiki for subsurface geoscience in the energy industry.'''
.
.
.
</div>

As before, edit the stylesheet to edit the style. You can edit the content directly.

Gallery[edit]

The gallery section is a bit different because it uses a template call to build the content. The section looks like this:

{{main page gallery
| image1 = MainPage_PinedaleFieldLandRig.jpg 
| link1 = Land rigs
| image2 = MainPage_Newfoundland-hero.jpg
| link2 = Offshore rigs
| image3 = MainPage_Upper_Haurangi_Ls.jpg
| link3 = Carbonate reservoir models: facies, diagenesis, and flow characterization{{!}}Carbonate diagenesis
| image4 = MainPage_Fluid_contacts.jpg
| link4 = Fluid contacts
}}

This makes a call to the {{Main page gallery}} template and passes the parameters image1, link1, image2, etc. You have to pass 4 images and 4 links, no more, no less.

The image parameter is a URL, including 'http://', to an image on this wiki. You have to provide the exact URL to the image file itself, not the URL to the File: page in the wiki. To add a new image:

  • Find or make a square image at least 400 × 400 pixels — you can use Apple Preview, GIMP, or any image editing software.
  • Upload the image using the Special:Upload page; give it a short but descriptive Destination filename. Note that you don't have to use the name of the file you are uploading. You can assign a new name, as long as it has the same file-type extension (.jpg, .png, etc).
  • The image parameter is the same destination filename you uploaded the file with, including the file-type extension.

The link parameter is an article in the wiki. If you want to use a different text, perhaps because the article you want to link to has a very long name, then you can include a piped link if you use the notation shown here:

| link3 = Really long name of an article{{!}}Short name

Any trouble, get in touch with User:Matt.