Changes

Jump to navigation Jump to search
basic help
The [[Main Page|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

==Banner==
The markup looks like this:
<pre>
<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>
</pre>

The <code>div</code> and <code>span</code> classes (<code>mpg-banner</code> etc) control the style. The [[wikipedia:CSS|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 [[MediaWiki:Common.css|Common.css]]. To edit the content, edit the text '''in between''' (that is, not inside the <code>&lt;</code> and <code>&gt;</code> signs) the <code>div</code> and <code>span</code> opening and closing tags.

==Body==
The body text is enclosed between tags:

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

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

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

<pre>
{{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
}}
</pre>

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

The '''image''' parameter is a URL, including '<code>http://</code>', 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 &times; 400 pixels — you can use Apple Preview, GIMP, or any image editing software.
* Upload the image using [[Special:Upload|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:

<pre>
| link3 = Really long name of an article{{!}}Short name
</pre>

Any trouble, get in touch with [[User:Matt]].

Navigation menu