Difference between revisions of "Template:Main page gallery/doc"

From AAPG Wiki
Jump to navigation Jump to search
(basic docs)
 
(updated example)
Line 11: Line 11:
 
<pre>
 
<pre>
 
{{main page gallery
 
{{main page gallery
| image1 = http://wiki.aapg.org/images/f/f1/MainPage_PinedaleFieldLandRig.jpg  
+
| image1 = MainPage_PinedaleFieldLandRig.jpg  
 
| link1 = Land rigs
 
| link1 = Land rigs
| image2 = http://wiki.aapg.org/images/8/88/MainPage_Newfoundland-hero.jpg
+
| image2 = MainPage_Newfoundland-hero.jpg
 
| link2 = Offshore rigs
 
| link2 = Offshore rigs
| image3 = http://wiki.aapg.org/images/0/0c/MainPage_Upper_Haurangi_Ls.jpg
+
| image3 = MainPage_Upper_Haurangi_Ls.jpg
 
| link3 = Carbonate reservoir models: facies, diagenesis, and flow characterization{{!}}Carbonate diagenesis
 
| link3 = Carbonate reservoir models: facies, diagenesis, and flow characterization{{!}}Carbonate diagenesis
| image4 = http://wiki.aapg.org/images/6/6b/MainPage_Fluid_contacts.jpg
+
| image4 = MainPage_Fluid_contacts.jpg
 
| link4 = Fluid contacts
 
| link4 = Fluid contacts
 
}}
 
}}
Line 25: Line 25:
  
 
{{main page gallery
 
{{main page gallery
| image1 = http://wiki.aapg.org/images/f/f1/MainPage_PinedaleFieldLandRig.jpg  
+
| image1 = MainPage_PinedaleFieldLandRig.jpg  
 
| link1 = Land rigs
 
| link1 = Land rigs
| image2 = http://wiki.aapg.org/images/8/88/MainPage_Newfoundland-hero.jpg
+
| image2 = MainPage_Newfoundland-hero.jpg
 
| link2 = Offshore rigs
 
| link2 = Offshore rigs
| image3 = http://wiki.aapg.org/images/0/0c/MainPage_Upper_Haurangi_Ls.jpg
+
| image3 = MainPage_Upper_Haurangi_Ls.jpg
 
| link3 = Carbonate reservoir models: facies, diagenesis, and flow characterization{{!}}Carbonate diagenesis
 
| link3 = Carbonate reservoir models: facies, diagenesis, and flow characterization{{!}}Carbonate diagenesis
| image4 = http://wiki.aapg.org/images/6/6b/MainPage_Fluid_contacts.jpg
+
| image4 = MainPage_Fluid_contacts.jpg
 
| link4 = Fluid contacts
 
| link4 = Fluid contacts
 
}}
 
}}

Revision as of 13:29, 1 July 2014

Edit this template with caution. This template is used on Main Page.

The gallery contains exactly 4 images. You must provide 8 parameters, called image1, link1, image2, link2, etc. The image parameter is a URL, including 'http://', to an image on this wiki. The link parameter is an article in the wiki, and can include a piped link text if you use the notation shown here:

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

Here is a complete example:

{{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 produces: