Template:Photo
Jump to navigation
Jump to search
Photo is an alternative to the Gallery extension that simulates Polaroid photographs. It is used for photo-based table-of-contents or as a standalone Gallery.
Usage and Notes
- Image (Parameter 1): The picture to be displayed.
- Example:
CaveC.jpg
orimage = CaveC.jpg
- Example:
- Caption: (Optional) The caption to be displayed.
- Example:
caption = Central Cave
- Example:
- Link: (Optional) Hyperlink to follow if NOT just to the displayed image when clicked.
- Example:
link = Caves
- Note: to link the image directly (for photo galleries), leave the link blank.
- Example:
- Equivalent Caption and Link: (Optional) Use only when both the Caption and Link are the same to increase legibility of the code.
- Example:
caption/link = Caves
- For instance,
caption/link = Artifact_Of_The_Clever
- does exactly the same as
caption = Artifact_Of_The_Clever
link = Artifact_Of_The_Clever
- Example:
- Icon: (Optional) An icon to be displayed at the start of the caption.
- Example:
icon = Artifact_Of_The_Clever.png
- Example:
- Icon2: (Optional) A second icon to be displayed at the start of the caption after the first icon.
- Example:
icon2 = Artifact_Of_The_Devourer.png
- Example:
- CSS: (Optional) CSS to affect the entire photograph at the <li> html tag encompassing it.
- Example:
css = background:pink; font-variant:small-caps;
- Example:
- Blackbox: (Optional) The color to display the stereotypical "Black Background" when the image doesn't fill the full 200x113px area.
- Example:
blackbox = purple
- Example:
blackbox = #ffffff
- Example:
blackbox = transparent
- Example:
<ul class="photo-nav OR photo-gallery"> {{ Photo | Image_SRC.xxx | | caption/link = (Omit if caption and link aren't the same) | caption = | link = | icon = | icon2 = | css = | blackbox = }} {{ Photo | Image_SRC.xxx | | caption/link = (Omit if caption and link aren't the same) | caption = | link = | icon = | icon2 = | css = | blackbox = }} </ul>