साँचा:Block
Use, Limitations, Parameters and Options
[सम्पादन]Not to be confused with Template:Blocked.
Use
[सम्पादन]The template has one parameter: Content; unformatted text for the box. The default state produces a pale blue band across the page for a centered Courier text entry; it is useful to emphasise a single code line.
The options can be used in a more elaborate way to assemble a page with contiguous coloured background sections; see the example, which includes an image. The code to call the template into use and the result of doing so is seen below:
{{block|ta=left|ff=Arial|background=Lightyellow|color=blue|[[image:rose.jpg|left|150px]]This is a block of fictitious text {{lorem ipsum}}}}{{block|background=papayawhip|{{lorem ipsum}}}}{{block|ta=left|fs=12pt|ff=serif|background=mistyrose|{{lorem ipsum}}}}
Limitations
[सम्पादन]It is not possible for the parameter text to start with a wikitext heading, (==Heading==); use the HTML form instead, (<h2>Heading</h2>.
A Wikitext table will not render at all well. Use an HTML table instead and avoid having the table at the start of the parameter.
At times which are not yet clarified, using the named parameter form, (1= The parameter text...), works well when the unnamed equivalent,(The parameter text...) does not.
Options
[सम्पादन]- display
- display mode, default block, can be set to inline for wrapped text sections.
- background
- background color, pale blue
- color
- font color, black
- ff
- font family or face, Courier
- fs
- font size, 10pt
- ta
- text alignment, center
- lh
- line height, 1.4em
- padding
- content padding.
The defaults produce a pale ivory band in the page for a centered text entry, in a monospaced font.