টেমপ্লেট:Hanging indent inherit

টেমপ্লেট নথি[দেখুন] [সম্পাদনা] [ইতিহাস] [শোধন]
This is the first half of a paired template based on <div>. It needs a second template {{div end}} applied to close, and hence function properly.


Usage সম্পাদনা

This template applies a hanging indent as a division <div> (default) or as paragraph <p>, and it inherits any previously applied formatting (the margins are generally the most important in this context, as they will "accumulate"). It acts as a wrapper around text, rather than embedding the text into the template. Consequently the template needs to be closed with {{div end}} to function properly.

Note that this template functions differently from {{hanging indent}}

Parameters সম্পাদনা

  • 1: indentation (in em) of first line relative to the other lines of the paragraph (i.e. CSS "text-indent")
  • 2: indentation (in em) of the whole paragraph (i.e. the CSS "margin-left")

Note: indentation is measured rightwards. To "reverse indent" (make a line stick out to the left), enter a negative value.

Examples সম্পাদনা

Defaults: hanging indent সম্পাদনা

  • {{hii}} = {{hii|0|2}}
    • First line 0em from relative position
    • Remaining lines indented further 2em:
{{hanging indent inherit}}{{lorem ipsum}}
{{div end}}

বিষণ্ণ ঔদাসীন্যে ঊষাবৌদি বাংলাভাষায় প্রচলিত ঈশপের নিখুঁত গল্পটির ডালপালা অর্ধেক ছড়াতেই ঋতু ভুঁইঞা আর ঐন্দ্রিলা ধড়ফড়িয়ে দারুণ হৈ-হৈ করে উঠল-- ওঃ, ব্যাস্ এবার থামো তো, বুঝেছি বড্ডো পুরানো ঢঙের কেমন এক গল্প যার নীতিবাক্য হল,“মূঢ় আড়ম্বর ও আত্মশ্লাঘার ফল জীবনে বিঘ্ন ও বৃহৎ ক্ষতি”-- তাই না, এ্যাঁ? ০১২৩৪৫৬৭৮৯ ৳৫৬/- ৉৫৬/-

Example2: two indented paragraphs সম্পাদনা

  • For each paragraph:
    • First line 0em from relative position
    • Remaining lines indented further 2em
{{hanging indent inherit}}{{lorem ipsum}}
{{hanging indent inherit}}{{lorem ipsum}}
{{div end}}
{{div end}}

বিষণ্ণ ঔদাসীন্যে ঊষাবৌদি বাংলাভাষায় প্রচলিত ঈশপের নিখুঁত গল্পটির ডালপালা অর্ধেক ছড়াতেই ঋতু ভুঁইঞা আর ঐন্দ্রিলা ধড়ফড়িয়ে দারুণ হৈ-হৈ করে উঠল-- ওঃ, ব্যাস্ এবার থামো তো, বুঝেছি বড্ডো পুরানো ঢঙের কেমন এক গল্প যার নীতিবাক্য হল,“মূঢ় আড়ম্বর ও আত্মশ্লাঘার ফল জীবনে বিঘ্ন ও বৃহৎ ক্ষতি”-- তাই না, এ্যাঁ? ০১২৩৪৫৬৭৮৯ ৳৫৬/- ৉৫৬/-

বিষণ্ণ ঔদাসীন্যে ঊষাবৌদি বাংলাভাষায় প্রচলিত ঈশপের নিখুঁত গল্পটির ডালপালা অর্ধেক ছড়াতেই ঋতু ভুঁইঞা আর ঐন্দ্রিলা ধড়ফড়িয়ে দারুণ হৈ-হৈ করে উঠল-- ওঃ, ব্যাস্ এবার থামো তো, বুঝেছি বড্ডো পুরানো ঢঙের কেমন এক গল্প যার নীতিবাক্য হল,“মূঢ় আড়ম্বর ও আত্মশ্লাঘার ফল জীবনে বিঘ্ন ও বৃহৎ ক্ষতি”-- তাই না, এ্যাঁ? ০১২৩৪৫৬৭৮৯ ৳৫৬/- ৉৫৬/-

Example 3: two differently indented paragraphs সম্পাদনা

  • First paragraph:
    • Start 2em from relative, and remaining lines indented 2em
  • Second paragraph
    • Start 1em from relative, and remaining lines indented 1em
{{hanging indent inherit|2|2}}{{lorem ipsum}}
{{hanging indent inherit|1|1}}{{lorem ipsum}}
{{div end}}{{div end}}

বিষণ্ণ ঔদাসীন্যে ঊষাবৌদি বাংলাভাষায় প্রচলিত ঈশপের নিখুঁত গল্পটির ডালপালা অর্ধেক ছড়াতেই ঋতু ভুঁইঞা আর ঐন্দ্রিলা ধড়ফড়িয়ে দারুণ হৈ-হৈ করে উঠল-- ওঃ, ব্যাস্ এবার থামো তো, বুঝেছি বড্ডো পুরানো ঢঙের কেমন এক গল্প যার নীতিবাক্য হল,“মূঢ় আড়ম্বর ও আত্মশ্লাঘার ফল জীবনে বিঘ্ন ও বৃহৎ ক্ষতি”-- তাই না, এ্যাঁ? ০১২৩৪৫৬৭৮৯ ৳৫৬/- ৉৫৬/-

বিষণ্ণ ঔদাসীন্যে ঊষাবৌদি বাংলাভাষায় প্রচলিত ঈশপের নিখুঁত গল্পটির ডালপালা অর্ধেক ছড়াতেই ঋতু ভুঁইঞা আর ঐন্দ্রিলা ধড়ফড়িয়ে দারুণ হৈ-হৈ করে উঠল-- ওঃ, ব্যাস্ এবার থামো তো, বুঝেছি বড্ডো পুরানো ঢঙের কেমন এক গল্প যার নীতিবাক্য হল,“মূঢ় আড়ম্বর ও আত্মশ্লাঘার ফল জীবনে বিঘ্ন ও বৃহৎ ক্ষতি”-- তাই না, এ্যাঁ? ০১২৩৪৫৬৭৮৯ ৳৫৬/- ৉৫৬/-

Example 4: traditionally indented paragraphs সম্পাদনা

This template can be used for traditional first line indent. However this is not recommended, as this is more efficiently done using a CSS style such as "text-indent:2em".

  • first line 2em, paragraph -2 relative
  • first line 1em, paragraph -1 relative
{{hanging indent inherit|2|-2}}{{lorem ipsum}}
{{hanging indent inherit|1|-1}}{{lorem ipsum}}
{{div end}}{{div end}}

বিষণ্ণ ঔদাসীন্যে ঊষাবৌদি বাংলাভাষায় প্রচলিত ঈশপের নিখুঁত গল্পটির ডালপালা অর্ধেক ছড়াতেই ঋতু ভুঁইঞা আর ঐন্দ্রিলা ধড়ফড়িয়ে দারুণ হৈ-হৈ করে উঠল-- ওঃ, ব্যাস্ এবার থামো তো, বুঝেছি বড্ডো পুরানো ঢঙের কেমন এক গল্প যার নীতিবাক্য হল,“মূঢ় আড়ম্বর ও আত্মশ্লাঘার ফল জীবনে বিঘ্ন ও বৃহৎ ক্ষতি”-- তাই না, এ্যাঁ? ০১২৩৪৫৬৭৮৯ ৳৫৬/- ৉৫৬/-

বিষণ্ণ ঔদাসীন্যে ঊষাবৌদি বাংলাভাষায় প্রচলিত ঈশপের নিখুঁত গল্পটির ডালপালা অর্ধেক ছড়াতেই ঋতু ভুঁইঞা আর ঐন্দ্রিলা ধড়ফড়িয়ে দারুণ হৈ-হৈ করে উঠল-- ওঃ, ব্যাস্ এবার থামো তো, বুঝেছি বড্ডো পুরানো ঢঙের কেমন এক গল্প যার নীতিবাক্য হল,“মূঢ় আড়ম্বর ও আত্মশ্লাঘার ফল জীবনে বিঘ্ন ও বৃহৎ ক্ষতি”-- তাই না, এ্যাঁ? ০১২৩৪৫৬৭৮৯ ৳৫৬/- ৉৫৬/-


See also সম্পাদনা