টেমপ্লেট:Inline block

উইকিপিডিয়া, মুক্ত বিশ্বকোষ থেকে
টেমপ্লেট নথি[দেখুন] [সম্পাদনা] [ইতিহাস] [শোধন]

ব্যবহার[সম্পাদনা]

The template {{Inline block}} creates an element—by default a <span>—that has the CSS property display:inline-block. There is support for a range of common style properties as template parameters, and an all-purpose style parameter.

One intended use is to replace {{nowrap}} when coding templates with complex layout, which need to display differently on mobile and desktop. Like {{nowrap}}, it holds content together and avoids wrapping it where possible. However, if necessary, such as on small screens, the content will wrap.

Example of wrapping control[সম্পাদনা]

In each case the outline represents a width constraint, which might be affected by the user's screen size, other parts of the template, or both.

1 (red)=Gas3 (black)=Solid80 (green)=LiquidColor of the atomic number shows state of matter (at 0 °C and 1 atm)
1 (red)=Gas3 (black)=Solid80 (green)=LiquidColor of the atomic number shows state of matter (at 0 °C and 1 atm)
1 (red)=Gas3 (black)=Solid80 (green)=LiquidColor of the atomic number shows state of matter (at 0 °C and 1 atm)

Here, each grey box and the text "Color of ..." are wrapped in {{inline block}} templates. If {{nowrap}} had been used instead, there would be no visible difference in the first two cases. In the third case, however, the text would have been unable to wrap into the space available. On mobile, this might mean that a table or the whole article is forced to become horizontally scrollable.

TemplateData[সম্পাদনা]

নতুন দৃশ্যমান সম্পাদনা দ্বারা ব্যবহৃত টেমপ্লেটের জন্য টেমপ্লেটডাটা নথি।

Inline block শীর্ষ

The template {{Inline block}} creates an inline-block element. Among other uses, it can replace {{nowrap}} when coding templates with complex layout.
প্যারামিটারবিবরণধরনঅবস্থা
Content1
The content to be wrapped in an inline-block element
বিষয়বস্তুঐচ্ছিক
Tag name2
Changes the HTML tag used. This may affect what elements this template should contain or be contained by.
পূর্বনির্ধারিত
span
উদাহরণ
div, abbr
স্ট্রিংঐচ্ছিক
Titletitle
Title of the content (used as tooltip text, or expanded abbreviation when 2=abbr
উদাহরণ
died (for abbr d.)
স্ট্রিংঐচ্ছিক
Widthwidth
The width; passed directly to the "width" CSS attribute
স্ট্রিংঐচ্ছিক
Heightheight
The height; passed directly to the "height" CSS attribute
স্ট্রিংঐচ্ছিক
Text colorcolor
The text color; passed directly to the "color" CSS attribute
স্ট্রিংঐচ্ছিক
Background formattingbackground
bg
The background formatting; passed directly to the "background" CSS attribute
স্ট্রিংঐচ্ছিক
Other stylesstyle
Style information as plain CSS.
স্ট্রিংঐচ্ছিক
Test of raw TemplateData output:

The template {{Inline block}} creates an inline-block element. Among other uses, it can replace {{nowrap}} when coding templates with complex layout.

টেমপ্লেট প্যারামিটার

প্যারামিটারবিবরণধরনঅবস্থা
Content1

The content to be wrapped in an inline-block element

বিষয়বস্তুঐচ্ছিক
Tag name2

Changes the HTML tag used. This may affect what elements this template should contain or be contained by.

পূর্বনির্ধারিত
span
উদাহরণ
div, abbr
স্ট্রিংঐচ্ছিক
Titletitle

Title of the content (used as tooltip text, or expanded abbreviation when 2=abbr

পূর্বনির্ধারিত
উদাহরণ
died (for abbr d.)
স্ট্রিংঐচ্ছিক
Widthwidth

The width; passed directly to the "width" CSS attribute

স্ট্রিংঐচ্ছিক
Heightheight

The height; passed directly to the "height" CSS attribute

স্ট্রিংঐচ্ছিক
Text colorcolor

The text color; passed directly to the "color" CSS attribute

স্ট্রিংঐচ্ছিক
Background formattingbackground bg

The background formatting; passed directly to the "background" CSS attribute

স্ট্রিংঐচ্ছিক
Other stylesstyle

Style information as plain CSS.

স্ট্রিংঐচ্ছিক

আরও দেখুন[সম্পাদনা]

টেমপ্লেট:List of nowrap-like templates