Difference between revisions of "Adding a gallery"
From WikiMarion
(instructions on how to create a gallery) |
|||
Line 1: | Line 1: | ||
You can add a photo gallery to a page on MediaWiki. This may be useful if you have have more photos than you have room to display them next to the text of your article. You can also create a page that includes only a gallery. When you are editing your page, here's the what your code should look like: | You can add a photo gallery to a page on MediaWiki. This may be useful if you have have more photos than you have room to display them next to the text of your article. You can also create a page that includes only a gallery. When you are editing your page, here's the what your code should look like: | ||
− | < | + | <code> |
<gallery> | <gallery> | ||
image:Jay_House_Then_and_Now.jpg|The Jay House | image:Jay_House_Then_and_Now.jpg|The Jay House | ||
Line 7: | Line 7: | ||
image:Well_at_Matter_Park_3.jpg|The well at Matter Park | image:Well_at_Matter_Park_3.jpg|The well at Matter Park | ||
</gallery> | </gallery> | ||
− | </ | + | </code> |
The <nowiki><gallery> and </gallery></nowiki> tags mark the beginning and end of the gallery. Each line in between them represents one item. Type 'image:' followed by the name the image has in the WikiMarion database. If you want to add a caption for an image, put the vertical line (called a pipe), followed by the caption. | The <nowiki><gallery> and </gallery></nowiki> tags mark the beginning and end of the gallery. Each line in between them represents one item. Type 'image:' followed by the name the image has in the WikiMarion database. If you want to add a caption for an image, put the vertical line (called a pipe), followed by the caption. |
Revision as of 15:36, 7 March 2007
You can add a photo gallery to a page on MediaWiki. This may be useful if you have have more photos than you have room to display them next to the text of your article. You can also create a page that includes only a gallery. When you are editing your page, here's the what your code should look like:
The <gallery> and </gallery> tags mark the beginning and end of the gallery. Each line in between them represents one item. Type 'image:' followed by the name the image has in the WikiMarion database. If you want to add a caption for an image, put the vertical line (called a pipe), followed by the caption.