साँचा:Plain image

मुक्त ज्ञानकोश विकिपीडिया से
नेविगेशन पर जाएँ खोज पर जाएँ

साँचा:clear2

Since MediaWiki does not provide a way to add visible captions to images integrated seamlessly in a page (i.e., without borders), this template aims to provide that functionality.

Usage

This template can be either with named parameters, as in

साँचा:mono

...or in its shorthand form:

साँचा:mono
Parameter Default Acceptable values
image mandatory any image filename ("File:" or "Image:" is optional)
caption mandatory any valid wiki markup
width 220px any pixel width ("px" suffix optional)
height none any pixel height ("px" suffix optional)
align right left, center, right, none
caption position bottom top, bottom
triangle none triangle, none
triangle color #ff0080 any CSS color
image override Anything (lets you replace the image block with anything—useful for stacking image overlays)
caption override Anything (lets you replace the caption block with anything)

Examples

The triangle parameters give the option to add a colored triangle label— साँचा:plain image with caption साँचा:mono

साँचा:clear

Using "image-override" to stack images


साँचा:clear2

Since MediaWiki does not provide a way to add visible captions to images integrated seamlessly in a page (i.e., without borders), this template aims to provide that functionality.

Usage

This template can be either with named parameters, as in

साँचा:mono

...or in its shorthand form:

साँचा:mono
Parameter Default Acceptable values
image mandatory any image filename ("File:" or "Image:" is optional)
caption mandatory any valid wiki markup
width 220px any pixel width ("px" suffix optional)
height none any pixel height ("px" suffix optional)
align right left, center, right, none
caption position bottom top, bottom
triangle none triangle, none
triangle color #ff0080 any CSS color
image override Anything (lets you replace the image block with anything—useful for stacking image overlays)
caption override Anything (lets you replace the caption block with anything)

Examples

The triangle parameters give the option to add a colored triangle label— साँचा:plain image with caption साँचा:mono

साँचा:clear

Using "image-override" to stack images

साँचा चक्र मिला: साँचा:Plain image {{Plain image|File:Helical granum.png|'''Grana structure''' The prevailing model for [[granum|granal]] structure is a stack of granal [[thylakoids]] linked by helical [[stroma (fluid)|stromal]] thylakoids that wrap around the grana stacks and form large sheets that connect different grana.|432px|left|top|triangle|#3cb14d|image override=<div style="float: right; position: relative; width: 432px; height: 432px;"> <div style="float: right; position: absolute; width: 432px;">[[File:Helical granum.png|432px]]</div> <div style="float: right; position: absolute; width: 432px;">[[File:Granum labels.svg|432px|The prevailing model for [[granum|granal]] structure.]]</div></div>}}

साँचा:clear

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. click here to see a monthly parameter usage report for this template.

TemplateData for Plain image

साँचा:template other

A template for adding a caption to a frameless image.

साँचा प्राचल

प्राचलवर्णनप्रकारस्थिति
Imageimage 1

The image to use. The ''File:'' prefix is optional.

डिफ़ॉल्ट
स्ट्रिंगआवश्यक
Image caption and alt textcaption 2

The caption to display under or above the image. Also sets the alt text.

डिफ़ॉल्ट
स्ट्रिंगआवश्यक
Image widthwidth 3

Sets the pixel width of the image and the template. the ''px'' suffix is optional.

डिफ़ॉल्ट
220px
संख्यावैकल्पिक
Image heightheight

Sets the pixel height of the image and the template. the ''px'' suffix is optional.

संख्यावैकल्पिक
Float and centeralign 4

Floats the template to the left, right, or centers it. Accepts ''left'', ''center'', ''right'', or ''none''.

डिफ़ॉल्ट
right
स्ट्रिंगवैकल्पिक
Caption positioncaption position 5

Determines whether the caption goes above or below the image. Accepts ''top'' or ''bottom''.

डिफ़ॉल्ट
bottom
स्ट्रिंगवैकल्पिक
Triangle pointertriangle 6

Allows you to add a triangular pointer next to the caption text. Accepts ''triangle'' or ''none''.

डिफ़ॉल्ट
none
स्ट्रिंगवैकल्पिक
Triangle pointer colortriangle color 7

Lets you set a CSS color for the triangular pointer.

डिफ़ॉल्ट
#ff0080
स्ट्रिंगवैकल्पिक
Replacement content for the imageimage override 8

Lets you substitute any allowed HTML where the image would normally be.

डिफ़ॉल्ट
स्ट्रिंगवैकल्पिक
Replacement content for the captioncaption override 9

Lets you substitute any allowed HTML where the caption would normally be.

डिफ़ॉल्ट
स्ट्रिंगवैकल्पिक

See also

{{Plain image|File:Helical granum.png|'''Grana structure''' The prevailing model for [[granum|granal]] structure is a stack of granal [[thylakoids]] linked by helical [[stroma (fluid)|stromal]] thylakoids that wrap around the grana stacks and form large sheets that connect different grana.|432px|left|top|triangle|#3cb14d|image override=<div style="float: right; position: relative; width: 432px; height: 432px;"> <div style="float: right; position: absolute; width: 432px;">[[File:Helical granum.png|432px]]</div> <div style="float: right; position: absolute; width: 432px;">[[File:Granum labels.svg|432px|The prevailing model for [[granum|granal]] structure.]]</div></div>}}

साँचा:clear

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. click here to see a monthly parameter usage report for this template.

TemplateData for Plain image

साँचा:template other

A template for adding a caption to a frameless image.

साँचा प्राचल

प्राचलवर्णनप्रकारस्थिति
Imageimage 1

The image to use. The ''File:'' prefix is optional.

डिफ़ॉल्ट
स्ट्रिंगआवश्यक
Image caption and alt textcaption 2

The caption to display under or above the image. Also sets the alt text.

डिफ़ॉल्ट
स्ट्रिंगआवश्यक
Image widthwidth 3

Sets the pixel width of the image and the template. the ''px'' suffix is optional.

डिफ़ॉल्ट
220px
संख्यावैकल्पिक
Image heightheight

Sets the pixel height of the image and the template. the ''px'' suffix is optional.

संख्यावैकल्पिक
Float and centeralign 4

Floats the template to the left, right, or centers it. Accepts ''left'', ''center'', ''right'', or ''none''.

डिफ़ॉल्ट
right
स्ट्रिंगवैकल्पिक
Caption positioncaption position 5

Determines whether the caption goes above or below the image. Accepts ''top'' or ''bottom''.

डिफ़ॉल्ट
bottom
स्ट्रिंगवैकल्पिक
Triangle pointertriangle 6

Allows you to add a triangular pointer next to the caption text. Accepts ''triangle'' or ''none''.

डिफ़ॉल्ट
none
स्ट्रिंगवैकल्पिक
Triangle pointer colortriangle color 7

Lets you set a CSS color for the triangular pointer.

डिफ़ॉल्ट
#ff0080
स्ट्रिंगवैकल्पिक
Replacement content for the imageimage override 8

Lets you substitute any allowed HTML where the image would normally be.

डिफ़ॉल्ट
स्ट्रिंगवैकल्पिक
Replacement content for the captioncaption override 9

Lets you substitute any allowed HTML where the caption would normally be.

डिफ़ॉल्ट
स्ट्रिंगवैकल्पिक

See also