Difference between revisions of "Template:Main page gallery"
Jump to navigation
Jump to search
(correct approach) |
|||
Line 1: | Line 1: | ||
<includeonly><div class="mpg-wrap"> | <includeonly><div class="mpg-wrap"> | ||
− | <div class="mpg-box"><div class="boxInner"><div class="imgBox"> | + | <div class="mpg-box"><div class="boxInner"><div class="imgBox">[[Image:{{{image1}}}]]</div><div class="titleBox">{{large link|{{{link1}}}}}</div></div></div> |
− | <div class="mpg-box"><div class="boxInner"><div class="imgBox"> | + | <div class="mpg-box"><div class="boxInner"><div class="imgBox">[[Image:{{{image2}}}]]</div><div class="titleBox">{{large link|{{{link2}}}}}</div></div></div> |
− | <div class="mpg-box"><div class="boxInner"><div class="imgBox"> | + | <div class="mpg-box"><div class="boxInner"><div class="imgBox">[[Image:{{{image3}}}]]</div><div class="titleBox">{{large link|{{{link3}}}}}</div></div></div> |
− | <div class="mpg-box"><div class="boxInner"><div class="imgBox"> | + | <div class="mpg-box"><div class="boxInner"><div class="imgBox">[[Image:{{{image4}}}]]</div><div class="titleBox">{{large link|{{{link4}}}}}</div></div></div> |
</div></includeonly><noinclude>{{documentation}}</noinclude> | </div></includeonly><noinclude>{{documentation}}</noinclude> |
Latest revision as of 04:24, 2 February 2023
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 the name of an image on this wiki, including the filename extension, e.g.
My_image.png
. The image should be square, and about 400 × 400 pixels. - 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:
The above documentation is transcluded from Template:Main page gallery/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |