টেমপ্লেট:Rule/নথি
![]() |
এটি টেমপ্লেট:Rule-এর জন্য একটি নথির উপপাতা। এখানে ব্যবহার সংক্রান্ত তথ্য, বিষয়শ্রেণী এবং অন্যান্য সামগ্রী রয়েছে যা মূল টেমপ্লেট পাতার অংশ নয়। |
Usage[সম্পাদনা]
This template inserts a black horizontal rule. It should be used in transcriptions in preference to wiki syntax "----", which inserts a rule but in a lighter colour. Furthermore there can be no certainty that the rendering of "----" will not change in the future. Please check for any [X]HTML 5 issues as well.
For example
{{rule}}
produces
The common case of a double-rule can be achieved by
{{rule}}{{rule}}
which produces
Template:Double rule may be used as shorthand for this.
Width[সম্পাদনা]
A width may optionally be provided, in em or by % in which case a black horizontal rule of that width is centered on the line.
For example
{{rule|width=12em}}
and
{{rule|12em}}
both produce
Height[সম্পাদনা]
Height is provided by the named height parameter:
{{rule|height=3px}}
Alignment[সম্পাদনা]
In rare cases where the left or right alignment is required, the align parameter may be used.
উদাহরণ
{{rule|6em|align=left}}
produces
Top/bottom margins[সম্পাদনা]
If the rule has wider padding around it, this can be set with margin_tb:
উদাহরণ
{{center| Foo {{rule|margin_tb=2em}} Bar }}
produces
Foo
Bar
Class[সম্পাদনা]
Style[সম্পাদনা]
Finally, any desired special HTML styling may be applied through the style parameter.
For example
{{rule|width=12em|height=1em|style=background-color:orange;border:1px solid black}}
produces
Redirects[সম্পাদনা]
- {{Hline}}
See also[সম্পাদনা]
- {{section end rule}} for a semantic rule at the end of a section
- {{separator}} for a row of dots
- {{custom rule}} for a customized decorative rule
- {{longdash}} for an inline long dash
- {{bar}} for an inline, user specified length of the dash
Adds a horizontal rule to content.
প্যারামিটার | বিবরণ | ধরন | অবস্থা | |
---|---|---|---|---|
width | 1 width | width of rule. (CSS 'units specifcations should be used) | স্ট্রিং | পরামর্শকৃত |
class | class | CSS classes to apply to the created HR element. | স্ট্রিং | ঐচ্ছিক |
color | color | color that should be applied to the rule , CSS style color specifcations should be used. | স্ট্রিং | ঐচ্ছিক |
align | align | (Option) Aligns the rule with the left or right of the containing content.
| স্ট্রিং | ঐচ্ছিক |
margin_tb | margin_tb | Vary the vertical spacing around the rule. (uses CSS unit specifcations.) | স্ট্রিং | ঐচ্ছিক |
height | height | Varies the vertical height of the rule (Uses CSS units) | স্ট্রিং | ঐচ্ছিক |
style | style | Additional CSS styles to be applied to the 'rule' | স্ট্রিং | ঐচ্ছিক |