টেমপ্লেট:FreedImg/নথি

testwiki থেকে
imported>Bodhisattwa কর্তৃক ০৭:৩৮, ২৫ জুলাই ২০২৩ তারিখে সংশোধিত সংস্করণ
(পরিবর্তন) ← পূর্বের সংস্করণ | সর্বশেষ সংস্করণ (পরিবর্তন) | পরবর্তী সংস্করণ → (পরিবর্তন)
পরিভ্রমণে চলুন অনুসন্ধানে চলুন

টেমপ্লেট:Documentation subpage টেমপ্লেট:Uses TemplateStyles টেমপ্লেট:Lua

  • Use this image container template to display CENTERED images.
  • Resizes the container dynamically and provides additional image related features.
  • When used to display an offset image, the surrounding text is broken into a new paragraph.

Usage

{{FI
 | type         =
 | file         =
 | width        =
 | imgwidth     =
 | cclass       =
 | cstyle       =
 | float        =
 | margin-left  =
 | margin-right =
 | clear        =
 | caption      =
 | top-caption  =
 | tmleft       =
 | indent       =
 | tstyle       =
 | talign       =
 | alt          =
 | link         =
 | page         =
}}

For true inline usage, please see FreedImg/span, টেমপ্লেট:Tl, instead.

Parameters

For the Image itself
when the (টেমপ্লেট:Parameter=user ) is present & set
  • Images generated by certain wikicode extensions (e.g. the default <math> User preference, <score>, etc.) may be entered in the named টেমপ্লেট:Parameter parameter instead.
Primary DIV container
Image element
Image Caption

Styling via CSS

The following classes are applied, which can be targeted with work-specific CSS:

Examples

Basic example: centred image

টেমপ্লেট:Doc example

Musical score

টেমপ্লেট:Doc example

Mathematical Equation

টেমপ্লেট:Smaller

টেমপ্লেট:Doc example

Page of a multipage document

টেমপ্লেট:Doc example

Adding classes to the image (e.g. rotation)

টেমপ্লেট:T/c2|
{{FI
 | file     = Iceberg.jpg
 | width    = 20%
 | link     = w:Iceberg{{!}}Iceberg article at Wikipedia
 | alt      = WS Iceberg
 | imgclass = rot270
 | caption  = Gravity right
}}
টেমপ্লেট:T/c2|
{{FI
 | file     = Iceberg.jpg
 | width    = 40%
 | link     = w:Iceberg{{!}}Iceberg article at Wikipedia
 | alt      = WS Iceberg
 | imgclass = rot90
 | caption  = Gravity left
}}
টেমপ্লেট:T/c2|টেমপ্লেট:FI টেমপ্লেট:T/c2|টেমপ্লেট:FI
টেমপ্লেট:T/r2টেমপ্লেট:Ts| টেমপ্লেট:T/c|টেমপ্লেট:FI টেমপ্লেট:T/r2টেমপ্লেট:Ts|
টেমপ্লেট:T/cটেমপ্লেট:Ts|
{{FI
 | file     = Iceberg.jpg
 | width    = 40%
 | link     = w:Iceberg{{!}}Iceberg article at Wikipedia
 | alt      = WS Iceberg
 | imgclass = rot180
 | caption  = Gravity up
}}

Extra CSS styles

টেমপ্লেট:Doc example


Missing images

If an image doesn't exist yet, you can use missing in the টেমপ্লেট:Parameter parameter:

টেমপ্লেট:Doc example


See also


<templatedata> { "params": { "type": { "label": "type", "description": "Type of content", "type": "string", "suggestedvalues": [ "math", "score", "missing" ], "suggested": true }, "file": { "label": "file", "description": "filename of image to float.", "type": "string" }, "alt": {}, "link": {}, "page": { "label": "page", "description": "Page number to use when the filename is a multi page document (such as PDF/DJVU).", "type": "number" }, "width": {}, "cclass": {}, "cstyle": {}, "float": {}, "clear": {}, "margin-left": {}, "margin-right": {}, "imgclass": {}, "imgwidth": {}, "caption": {}, "top-caption": {}, "tstyle": {}, "talign": {}, "tmleft": {}, "indent": {} }, "description": "Floats an image/caption block.", "paramOrder": [ "type", "file", "alt", "link", "page", "width", "cclass", "cstyle", "float", "clear", "margin-left", "margin-right", "imgclass", "imgwidth", "caption", "top-caption", "tstyle", "talign", "tmleft", "indent" ], "format": "block" } </templatedata>