টেমপ্লেট:Font size block
This template uses block (e.g. <div> or <p> ) elements.It should not be nested inside an inline element (e.g. |
এই টেমপ্লেটটি টেমপ্লেট শৈলী ব্যবহার করে: |
Usage[সম্পাদনা]
General form[সম্পাদনা]
This template renders one or more blocks of text in the appropriate smaller or larger font.
e.g.
{{Font size block|font-size-name=smaller|{{lorem ipsum}}}}
yields
বিষণ্ণ ঔদাসীন্যে ঊষাবৌদি বাংলাভাষায় প্রচলিত ঈশপের নিখুঁত গল্পটির ডালপালা অর্ধেক ছড়াতেই ঋতু ভুঁইঞা আর ঐন্দ্রিলা ধড়ফড়িয়ে দারুণ হৈ-হৈ করে উঠল-- ওঃ, ব্যাস্ এবার থামো তো, বুঝেছি বড্ডো পুরানো ঢঙের কেমন এক গল্প যার নীতিবাক্য হল,“মূঢ় আড়ম্বর ও আত্মশ্লাঘার ফল জীবনে বিঘ্ন ও বৃহৎ ক্ষতি”-- তাই না, এ্যাঁ? ০১২৩৪৫৬৭৮৯ ৳৫৬/- ৫৬/-
To modify the size of a few words within a block of text, use the appropriate inline template (<span>)—this will modify the span without breaking up the text, and without interfering in block-level properties like line spacing.
As open and close tags[সম্পাদনা]
This template is also available in an open and close format where the <div> needs to span a page break in the Page namespace.
- {{Font size block/s}} to open
- {{Font size block/e}} to close
- Example
{{Font size block/s|font-size-name=smaller}}{{lorem ipsum}}{{lorem ipsum}}{{Font size block/e}}
yields
See also[সম্পাদনা]
All Wikisource size templates are relative to the default size. There are two kinds of sizing template: inline and block templates. Inline templates are suitable for use within a paragraph, but can't handle paragraph breaks, and do not adjust line spacing. Block templates can handle paragraph breaks, and adjust line spacing, but are not suitable for use within a paragraph, as they will cause a paragraph break.
Inline template | Block template | Size | Sample |
---|---|---|---|
{{smaller}} | {{smaller block}} | 90% | আমার সোনার বাংলা আমি তোমায় ভালবাসি, |
{{fine}}| | {{fine block}} | 92% | আমার সোনার বাংলা আমি তোমায় ভালবাসি, |
— | — | 100% | আমার সোনার বাংলা আমি তোমায় ভালবাসি, |
{{larger}} | {{larger block}} | 120% | আমার সোনার বাংলা আমি তোমায় ভালবাসি, |
{{x-larger}} | {{x-larger block}} | 144% | আমার সোনার বাংলা আমি তোমায় ভালবাসি, |
{{xx-larger}} | {{xx-larger block}} | 182% | আমার সোনার বাংলা আমি তোমায় ভালবাসি |
{{xxx-larger}} | {{xxx-larger block}} | 207% | আমার সোনার বাংলা আমি তোমায় ভালবাসি |
{{xxxx-larger}} | {{xxxx-larger block}} | 249% | আমার সোনার বাংলা আমি তোমায় ভালবাসি |
Size elements | |||
{{font-size}} manual text scaling | |||
{{font-size-x}} also scales line height |
বিবরণ নেই।
প্যারামিটার | বিবরণ | ধরন | অবস্থা | |
---|---|---|---|---|
1 | 1 | Text to apply font-sizing to. | স্ট্রিং | ঐচ্ছিক |
class | class | Additional CSS classes to apply. | স্ট্রিং | ঐচ্ছিক |
style | style | Additional CSS styles to apply. | স্ট্রিং | ঐচ্ছিক |
font size name | font-size-name | Named font size to apply.
| স্ট্রিং | ঐচ্ছিক |
font size | font-size | Manual font size to apply.
| স্ট্রিং | ঐচ্ছিক |
উপরোক্ত নথিটি টেমপ্লেট:Font size block/নথি থেকে প্রতিলিপ্ত। (সম্পাদনা | ইতিহাস) ব্যবহারকারীগণ খেলাঘর (তৈরি করুন | আয়না) এবং পরীক্ষা পাতায় (তৈরি করুন) এই টেমপ্লেট সংক্রান্ত পরীক্ষা-নিরীক্ষা করতে পারেন। এই টেমপ্লেটের উপপাতাসমূহ। |