imported>DbBot
 
جز (۱ نسخه واردشده)
 
(یک نسخهٔ میانی ویرایش شده توسط یک کاربر دیگر نشان داده نشد)
خط ۱: خط ۱:
{{#if: {{{1|}}}
<templatestyles src="Image/styles.css"/><div class="t-image {{#ifeq:{{{padding|}}}|no||t-image-padding}}" {{#if:{{{width|}}}|style="max-width:{{{width}}}%"}}>
| {{#ifeq: {{str left|{{{1|}}}}} | [
[[File:{{{file|1AKC Samoyed Dog Show 2011.jpg}}}|{{{imagewidth|400}}}px|{{#ifeq:{{{border|}}}|yes|border{{!}}}}alt={{{caption|}}}|{{#if:{{{link|}}}|link={{{link|}}}}}]]{{#if: {{{caption|}}}|
  | {{{1}}}  <!-- Full image syntax -->
<p class="t-image-caption">
  | [[{{#ifeq: {{NAMESPACE:{{{1|}}}}} | {{ns:File}}
{{{caption}}}
      | {{{1}}}  <!-- File name with namespace -->
</p>}}
      | {{ns:File}}:{{{1}}}  <!-- File name without namespace -->
</div><noinclude>
      }}{{#ifeq: {{{alt|a}}} | {{{alt|b}}}
{{documentation|content=
      | {{!}}alt={{{alt}}}
{{Uses TemplateStyles|Template:Image/styles.css}}
      }}{{#ifeq: {{{link|a}}} | {{{link|b}}}
This template is used to provide images with captions as an alternative to the ugly image captions that come with MediaWiki.
      | {{!}}link={{{link}}}
      }}{{#ifeq: {{{upright|a}}} | {{{upright|b}}}
      | {{!}}upright={{{upright}}}
      }}{{#ifeq: {{{2|a}}} | {{{2|b}}}
      | {{!}}{{{2}}}
      }}{{#ifeq: {{{3|a}}} | {{{3|b}}}
      | {{!}}{{{3}}}
      }}{{#ifeq: {{{4|a}}} | {{{4|b}}}
      | {{!}}{{{4}}}
      }}{{#ifeq: {{{5|a}}} | {{{5|b}}}
      | {{!}}{{{5}}}
      }}{{#ifeq: {{{6|a}}} | {{{6|b}}}
      | {{!}}{{{6}}}
      }}]]
  }}
|  <!-- Empty first parameter -->
}}<noinclude>
{{توضیحات}}


Syntax:
* '''<code>file=</code>''' Sets which file to use. Default value is [[commons:File:1AKC Samoyed Dog Show 2011.jpg|1AKC Samoyed Dog Show 2011.jpg]].
* '''<code>width=</code>''' The maximum width of the image. Note that the image gets smaller so that it is never more than a certain percentage of the browser window. Defaults to 400px.
* <s>'''<code>percentage=</code>'''</s> '''Never used''' The percent width of the browser window the image takes up. The width proportionality is maintained until the image is at the maximum size; it does not get better. Defaults to 50%.
* '''<code>caption=</code>''' Places a caption beneath the image, and also serves as the alt text. Optional.
* '''<code>padding=</code>''' Gives the option to turn off padding, in case the image is part of a floating div already. Default is to include padding; turn off by setting parameter to "no".
* '''<code> link=</code>''' Allows the image to link to a different page. Default is to link to the image description page. Set <code>link=</code> to nothing and the image will not be clickable
}}
</noinclude>
</noinclude>

نسخهٔ کنونی تا ‏۵ آبان ۱۴۰۱، ساعت ۱۷:۳۳

توضیحات الگو

خطای لوآ: پودمان:TNT:158: Missing JsonConfig extension, or not properly configured; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab. See https://www.mediawiki.org/wiki/Extension:JsonConfig#Supporting_Wikimedia_templates. This template is used to provide images with captions as an alternative to the ugly image captions that come with MediaWiki.

Syntax:

  • file= Sets which file to use. Default value is 1AKC Samoyed Dog Show 2011.jpg.
  • width= The maximum width of the image. Note that the image gets smaller so that it is never more than a certain percentage of the browser window. Defaults to 400px.
  • percentage= Never used The percent width of the browser window the image takes up. The width proportionality is maintained until the image is at the maximum size; it does not get better. Defaults to 50%.
  • caption= Places a caption beneath the image, and also serves as the alt text. Optional.
  • padding= Gives the option to turn off padding, in case the image is part of a floating div already. Default is to include padding; turn off by setting parameter to "no".
  • link= Allows the image to link to a different page. Default is to link to the image description page. Set link= to nothing and the image will not be clickable

[[Category:Template documentation pages{{#translation:}}]]