תבנית:Wide image

מתוך שקוף באוהל
(הבדלים בין גרסאות)
קפיצה אל: ניווט, חיפוש
מ
מ
 
שורה 12: שורה 12:
 
|#default={{{3|}}}}}]]</div>{{ #if: {{{3|}}}|<div class="thumbcaption" {{#if:{{{align-cap|}}}|style="text-align:{{{align-cap}}}"}}><div class="magnify">[[:File:{{{1}}}| ]]</div>{{{3}}}</div>|}}
 
|#default={{{3|}}}}}]]</div>{{ #if: {{{3|}}}|<div class="thumbcaption" {{#if:{{{align-cap|}}}|style="text-align:{{{align-cap}}}"}}><div class="magnify">[[:File:{{{1}}}| ]]</div>{{{3}}}</div>|}}
 
</div></div></includeonly><noinclude>
 
</div></div></includeonly><noinclude>
{{documentaion}}
+
{{תבנית:Wide image/doc}}
 
<!-- If you copy this template, you need to add the overflowx and overflowy CSS classes to your global CSS for Internet Explorer users. On the English Wikipedia, these are conditionally loaded by [[MediaWiki:Common.js]] -->
 
<!-- If you copy this template, you need to add the overflowx and overflowy CSS classes to your global CSS for Internet Explorer users. On the English Wikipedia, these are conditionally loaded by [[MediaWiki:Common.js]] -->
 
<!-- Add categories to the /doc subpage, not here! -->
 
<!-- Add categories to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

גרסה אחרונה מתאריך 08:10, 3 במאי 2015

תבנית:Documentation subpage תבנית:TOCRight This template allows you to easily include a panorama image. If the image is too wide, scrollbars will be added. If you do not want the image to use a thumbnail frame, you can use the template תבנית:Tl instead.

תוכן עניינים

Usage

{{Wide image|name|image width|caption|box width|alignment|alt=alt text}}

A caption option is optional, and an image frame will be used if a caption is supplied. If the caption contains an equal sign, use the parameter |3=caption in the place of |caption. If the caption supplied is exactly equal to image syntax such as thumb, the image's tooltip will no longer display the caption, but instead default to the name of the image.

The box width option is optional, and if given a value in pixels followed by "px", or a value in percent followed by "%",תבנית:Clarify will set the width of the box to that amount.

The alignment option is also optional but requires box width to be defined. If given a value of right or left, the entire wide image will float the to right or left. If given a value of none the image will not float.

The alt text describes the image's visual appearance to visually disabled readers. Please see WP:ALT for details.

To change the scroll direction from left-to-right to right-to-left, use תבנית:Para.

To align the caption, use תבנית:Para.

Example

Without caption

{{wide image|Helsinki z00.jpg|1800px|
|alt=Panorama of city with mixture of five to ten story buildings}}

<div class="thumb tnone" style="margin-left: auto; margin-right:auto; width:99%; max-width:שגיאה בביטוי: תו פיסוק בלתי מזוהה, "["px;">

</div>

smaller

{{wide image|Helsinki z00.jpg|400px|
|alt=Panorama of city with mixture of five to ten story buildings}}

<div class="thumb tnone" style="margin-left: auto; margin-right:auto; width:99%; max-width:שגיאה בביטוי: תו פיסוק בלתי מזוהה, "["px;">

</div>

With caption

{{wide image|Helsinki z00.jpg|1800px|[[Helsinki]] panorama
|alt=Panorama of city with mixture of five to ten story buildings}}

<div class="thumb tnone" style="margin-left: auto; margin-right:auto; width:99%; max-width:שגיאה בביטוי: תו פיסוק בלתי מזוהה, "["px;">

</div>

תבנית:Clear

Right aligned

{{wide image|Helsinki z00.jpg|1800px|[[Helsinki]] panorama|45%|right
|alt=Panorama of city with mixture of five to ten story buildings}}
This text goes after the ''wide image'' template. [[Lorem ipsum]] dolor sit amet...

<div class="thumb tright" style=" width:45%; max-width:שגיאה בביטוי: תו פיסוק בלתי מזוהה, "["px;">

</div>

This text goes after the wide image template. תבנית:Lorem ipsum תבנית:Clear

Left aligned

{{wide image|Helsinki z00.jpg|1800px|[[Helsinki]] panorama|45%|left
|alt=Panorama of city with mixture of five to ten story buildings}}
This text goes after the ''wide image'' template. Lorem ipsum dolor sit amet...

<div class="thumb tleft" style=" width:45%; max-width:שגיאה בביטוי: תו פיסוק בלתי מזוהה, "["px;">

</div>

This text goes after the wide image template. תבנית:Lorem ipsum תבנית:Clear

No alignment

{{wide image|Helsinki z00.jpg|1800px|[[Helsinki]] panorama|45%|none
|alt=Panorama of city with mixture of five to ten story buildings}}
This text goes after the ''wide image'' template. Lorem ipsum dolor sit amet...

<div class="thumb tnone" style=" width:45%; max-width:שגיאה בביטוי: תו פיסוק בלתי מזוהה, "["px;">

</div>

This text goes after the wide image template. תבנית:Lorem ipsum תבנית:Clear

Scroll right to left

{{wide image|Helsinki z00.jpg|1800px|[[Helsinki]] panorama
|alt=Panorama of city with mixture of five to ten story buildings
|dir=rtl}}

<div class="thumb tnone" style="margin-left: auto; margin-right:auto; width:99%; max-width:שגיאה בביטוי: תו פיסוק בלתי מזוהה, "["px;">

</div>

תבנית:Clear

Template data

<templatedata>{ "description": "Allows you to easily include a panorama image. If the image is too wide, scrollbars will be added.", "params": {

"1": {
   "label": "Filename",
   "description": "Name of the file to display. Example: Helsinki z00.jpg",
   "type": "string",
   "required": true
 },
 "2": {
   "label": "Image width",
   "description": "Give the width in pixels (like: 1600px) that you want the included image to be",
   "type": "string",
   "required": true
 },
 "3": {
   "label": "Caption",
   "description": "A caption for the image that will be shown below image",
   "type": "string",
   "required": false
 },
 "4" : {
   "label": "Width of frame",
   "description": "Limit the width of the frame enclosing the picture. Example: \"400px\" or \"40%\"",
   "type": "string",
   "required": false
 },
 "5": {
   "label": "Frame alignment",
   "description": "Either of: left, right, center or none. When specified also requires you to set the \"Width of frame\" option",
   "default": "center",
   "type": "string",
   "required": false
 },
 "dir" : {
   "label": "Picture alignment",
   "description": "Use the value 'rtl' to make the right side of the image the initial visible portion inside the scroll frame",
   "default": "ltr",
   "type": "string",
   "required": false
 },
 "alt" : {
   "label": "Textual alternative",
   "description": "Describes the image's visual appearance to visually disabled readers. Please see WP:ALT for details",
   "type": "string",
   "required": false
 }

} }</templatedata>

See also

תבנית:Commons

כלים אישיים
גרסאות שפה
מרחבי שם
פעולות
ניווט
תיבת כלים