உள்ளடக்கத்துக்குச் செல்

வார்ப்புரு:Border/doc

விக்கிமூலம் இலிருந்து

This specialized template creates a box to display text or combined text/images in; it creates a border around whatever you would like. Each property has a default so you do not need to define the setting if what you want is already the default.

You can embed other templates within this one (e.g. {{rule}} or {{sc}} or even another {{border}}). However, embedded templates that contain parameters, and things like tables, may cause this template to not work properly. In that case, use {{border/s}} and {{border/e}} instead.

Note: If you place images inside this box, be sure to define it so that the box is larger than the image.

Basic template

[தொகு]

This template is without the optional parameters.

{{border|Your content here}}

Full template

[தொகு]

This template includes all optional parameters. Note that you may need to delete unused parameters for the template to work correctly.

{{border |2= |3= |4= |5= |6= |7= |8= |9= |style= |
Content
}}
{{border |maxwidth= |bstyle= |bthickness= |color= |bgcolor= |align= |position= |padding= |style= |
Content
}}

Parameters

[தொகு]
  • 1: whatever goes in the box
  • maxwidth (2): maximum width of the content area in pixels or percentage (default: null/full width)
  • Note: You probably don't want 100% as it doesn't mean 100% of that "section" of the page. It means 100% of the screen size. So, if you choose 100%, it will end up going off the screen as the screen size will be added to the size of the navigation bar on the left. If you want it to just fill the content area of the screen, leave the option empty.
  • Note 2: Maximum width is used so that the box is responsive to screen sizes smaller that won't allow the box to fit without scrolling right. ie. mobile browsers
  • bstyle (3): border style (default: solid)
  • Options: solid, dotted, dashed, double, groove, ridge, inset, outset
  • Note: If you choose a border such as double but a thickness of 1px, it will still appear to be a single border because it is only 1px thick. Therefore, for the non-solid borders it is recommended to choose a value greater than 1px.
  • bthickness (4): border thickness in pixels (default: 1px)
  • color (5): border color (default: #000000, black)
  • bgcolor (6): background color (default: #FFFFFF, white)
  • Note: You can define the color in plain English (e.g. white) or hexadecimal (e.g. #FFFFFF). See Web Colors for more information.
  • align (7): alignment within the box (default: left)
  • Options: left, center, right, justify
  • position (8): alignment of the box (default: center)
  • Options: left, center, right
  • padding (9): padding, the space between the border and the content inside it, in pixels (default: 5px)
  • style: CSS, which will override any styles defined before it

Examples

[தொகு]

Default

[தொகு]
{{border|
[[File:Philadelphia blackletter.svg|125px||link=|alt=Philadelphia:]]

{{Mc}}CARTY & DAVIS, No. 171, MARKET STREET.
{{rule|3em}}
1834.
}}

Displays as:

Philadelphia:

McCARTY & DAVIS, No. 171, MARKET STREET.


1834.


Example 1

[தொகு]
{{border|maxwidth=200px|bstyle=dashed|bthickness=5px|color=black|align=center|
[[File:Philadelphia blackletter.svg|125px|link=|alt=Philadelphia:]]

{{Mc}}CARTY & DAVIS, No. 171, MARKET STREET.
{{rule|3em}}
1834.
}}

Displays as:

Philadelphia:

McCARTY & DAVIS, No. 171, MARKET STREET.


1834.


Example 2

[தொகு]
{{border|maxwidth=400px|color=black|position=right|padding=40px|
[[File:Philadelphia blackletter.svg|125px|link=|alt=Philadelphia:]]

{{right|{{Mc}}CARTY & DAVIS, No. 171, MARKET STREET.}}
}}

Displays as:

Philadelphia:

McCARTY & DAVIS, No. 171, MARKET STREET.

Example 3

[தொகு]
{{border|maxwidth=25%|bthickness=2px|color=#FF0000|bgcolor=aqua|position=left|
[[File:Philadelphia blackletter.svg|125px|link=|alt=Philadelphia:]]

{{Mc}}CARTY & DAVIS, No. 171, MARKET STREET.
{{rule|3em}}
1834.
}}

Displays as:

Philadelphia:

McCARTY & DAVIS, No. 171, MARKET STREET.


1834.


Example 4

[தொகு]
{{border|maxwidth=400px|bstyle=ridge|bthickness=10px|color=navy|bgcolor=#66FF99|align=center|padding=20px|style=border-radius:25px|
[[File:Philadelphia blackletter.svg|125px|link=|alt=Philadelphia:]]

{{Mc}}CARTY & DAVIS, No. 171, MARKET STREET.
{{rule|3em}}
1834.
}}

Displays as:

Philadelphia:

McCARTY & DAVIS, No. 171, MARKET STREET.


1834.

"Double Border"

[தொகு]

Standard

[தொகு]

There are two ways to make a double border. One is to use the standard "double border" feature of CSS. It is simple and only requires that parameter 3 be equal to double. Here is what this will look like:

{{border|maxwidth=400px|bstyle=double|bthickness=8px|align=center|padding=20px|
[[File:Philadelphia blackletter.svg|125px|link=|alt=Philadelphia:]]

{{Mc}}CARTY & DAVIS, No. 171, MARKET STREET.
{{rule|3em}}
1834.
}}

Displays as:

Philadelphia:

McCARTY & DAVIS, No. 171, MARKET STREET.


1834.

{{border|maxwidth=400px|bstyle=double|bthickness=20px|align=center|padding=20px|
[[File:Philadelphia blackletter.svg|125px|link=|alt=Philadelphia:]]

{{Mc}}CARTY & DAVIS, No. 171, MARKET STREET.
{{rule|3em}}
1834.
}}

Displays as:

Philadelphia:

McCARTY & DAVIS, No. 171, MARKET STREET.


1834.


Creative / Controllable

[தொகு]

However, for more control, you may wish to use a border within another border:

{{border|maxwidth=400px|bthickness=2px|position=center|padding=7px|
{{border|bthickness=5px|bgcolor=#FFEFD5|align=center|padding=20px|
[[File:Philadelphia blackletter.svg|125px|link=|alt=Philadelphia:]]

{{Mc}}CARTY & DAVIS, No. 171, MARKET STREET.
{{rule|3em}}
1834.
}}}}

Displays as:

Philadelphia:

McCARTY & DAVIS, No. 171, MARKET STREET.


1834.


"https://ta.wikisource.org/w/index.php?title=வார்ப்புரு:Border/doc&oldid=1066461" இலிருந்து மீள்விக்கப்பட்டது