(Utworzono nową stronę "<includeonly><li style="{{#if:{{{css|}}}|{{#replace:{{{css}}}|;|!important;}}|}} margin: 8px 6px; padding:5px; position:relative; display:inline-block; width:200px; min-...") |
Nie podano opisu zmian |
||
(Nie pokazano 5 wersji utworzonych przez 2 użytkowników) | |||
Linia 1: | Linia 1: | ||
− | <includeonly><li style="{{#if:{{{css|}}}|{{#replace:{{{css}}}|;|!important;}}|}} |
+ | <includeonly><li class="photo-bg" style="{{#if:{{{css|}}}|{{#replace:{{{css}}}|;|!important;}}|}} "> |
− | <div style="display:table-cell; background:{{#if:{{{blackbox|}}}|{{{blackbox}}}|#000}}; width:200px; height:113px; vertical-align:middle;">[[File:{{{1|{{{ |
+ | <div style="display:table-cell; background:{{#if:{{{blackbox|}}}|{{{blackbox}}}|#000}}; width:200px; height:113px; vertical-align:middle;">[[File:{{{1|{{{image}}}}}}|middle|200x113px|link=]]</div> |
− | <div |
+ | <div class="photo-text">{{#if:{{{icon|}}}|[[File:{{{icon}}}|28px|link=]] {{#if:{{{icon2|}}}|[[File:{{{icon2}}}|28px|link=]] {{#if:{{{icon3|}}}|[[File:{{{icon3}}}|28px|link=]] {{#if:{{{icon4|}}}|[[File:{{{icon4}}}|28px|link=]] {{#if:{{{icon5|}}}|[[File:{{{icon5}}}|28px|link=]] {{#if:{{{icon6|}}}|[[File:{{{icon6}}}|28px|link=]] }}}}}}}}}}}}{{#if:{{{caption/link|}}}|{{{caption/link}}}|{{#if:{{{caption|}}}{{{text|}}}|{{{caption|{{{text}}}}}}}}}}</div>{{#if:{{{caption/link|}}}|[[{{{caption/link}}}|<span class="link-spanner"></span>]]|{{#if:{{{link|}}}|[[{{{link}}}|<span class="link-spanner"></span>]]|[[:File:{{{1|{{{image}}}}}}|<span class="link-spanner"></span>]]}}}}</li></includeonly><noinclude> |
'''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. |
'''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. |
||
Linia 70: | Linia 70: | ||
</ul> |
</ul> |
||
− | [[Category: |
+ | [[Category:Templates]][[en:Template:Photo]][[ru:Шаблон:Photo]]</noinclude> |
Aktualna wersja na dzień 10:54, 23 cze 2020
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>