ವಿಷಯಕ್ಕೆ ಹೋಗು

# ಟೆಂಪ್ಲೇಟು:Userbox/testcases

## Standard boxes

{{Userbox}}

 `{{{info}}}`

{{Userbox/sandbox}}

 info

{{Userbox}}

 `{{{info}}}`

{{Userbox/sandbox}}

 info

{{Userbox}}

 `{{{info}}}`

{{Userbox/sandbox}}

 info

{{Userbox}}

 `{{{info}}}`

{{Userbox/sandbox}}

 info

## Box width

10 examples

{{Userbox}}

 `{{{info}}}`

{{Userbox/sandbox}}

 info

{{Userbox}}

 `{{{info}}}`

{{Userbox/sandbox}}

 info

{{Userbox}}

 `{{{info}}}`

{{Userbox/sandbox}}

 info

{{Userbox}}

 `{{{info}}}`

{{Userbox/sandbox}}

 info

{{Userbox}}

 `{{{info}}}`

{{Userbox/sandbox}}

 info

{{Userbox}}

 `{{{info}}}`

{{Userbox/sandbox}}

 info

{{Userbox}}

 `{{{info}}}`

{{Userbox/sandbox}}

 info

{{Userbox}}

 `{{{info}}}`

{{Userbox/sandbox}}

 info

{{Userbox}}

 `{{{info}}}`

{{Userbox/sandbox}}

 info

{{Userbox}}

 `{{{info}}}`

{{Userbox/sandbox}}

 info

## Small / flat

{{Userbox}}

 `{{{info}}}`

{{Userbox/sandbox}}

 info

{{Userbox}}

 `{{{info}}}`

{{Userbox/sandbox}}

 info

{{Userbox}}

 `{{{info}}}`

{{Userbox/sandbox}}

 info

## Maths

3×3 examples

### Side by side

`{{Userbox}}` to the left of `{{Userbox/sandbox}}`

{{Userbox}}

 `{{{info}}}`

{{Userbox/sandbox}}

 info

{{Userbox}}

 `{{{info}}}`

{{Userbox/sandbox}}

 info

{{Userbox}}

 `{{{info}}}`

{{Userbox/sandbox}}

 info

### Floating

3 instances of `{{Userbox}}` precede 3 instances of `{{Userbox/sandbox}}`.

 π 3.1415926535897932384626433832795028841941693993751058209749445923808162...
 42 The Answer to Great Question of the Universe, Life, and Everything
 ${\displaystyle TeX}$; This user thinks TeX is cool.

`{{Userbox/sandbox}}`

π 3.1415926535897932384626433832795028841941693993751058209749445923808162...
42 The Answer to Great Question of the Universe, Life, and Everything
${\displaystyle TeX}$; This user thinks TeX is cool.

### Stacked

`{{Userbox}}` precedes `{{Userbox/sandbox}}` in each case.

 π 3.1415926535897932384626433832795028841941693993751058209749445923808162...
π 3.1415926535897932384626433832795028841941693993751058209749445923808162...
 42 The Answer to Great Question of the Universe, Life, and Everything
42 The Answer to Great Question of the Universe, Life, and Everything
 ${\displaystyle TeX}$; This user thinks TeX is cool.
${\displaystyle TeX}$; This user thinks TeX is cool.

## Long text example

{{Userbox}}

 `{{{info}}}`

{{Userbox/sandbox}}

 info

## Height and width comparison

Each table contains `{{Userbox}}` in the top-left and bottom-right; `{{Userbox/sandbox}}` in the top-middle and bottom-left, for ease of comparing widths and heights. The single instance on the top-right and in the bottom row is another instance of `{{Userbox}}` but with a single-pixel border; this is the model width and height that the sandbox instance should conform to, unless the `{{{id-h}}}` parameter is otherwise specified. All colours for ease of comparison against the page background colour.

Height unspecified, border 4px
 id {{Userbox|border-s=4}}
id {{Userbox/sandbox|border-s=4}}
 id {{Userbox|border-s=1}}
id {{Userbox/sandbox|border-s=4}}
 id {{Userbox|border-s=4}}
 id {{Userbox|border-s=1}}
Height unspecified, border 0
 id {{Userbox|border-s=0}}
id {{Userbox/sandbox|border-s=0}}
 id {{Userbox|border-s=1}}
id {{Userbox/sandbox|border-s=0}}
 id {{Userbox|border-s=0}}
 id {{Userbox|border-s=1}}
Height 50px, border 4px
 id {{Userbox|border-s=4|id-h=50}}
id {{Userbox/sandbox|border-s=4|id-h=50}}
 id {{Userbox|border-s=1|id-h=50}}
id {{Userbox/sandbox|border-s=4|id-h=50}}
 id {{Userbox|border-s=4|id-h=50}}
 id {{Userbox|border-s=1|id-h=50}}

## Blank parameters

```{{userbox
| border-width=
| border-s=10
}}
```

{{Userbox}}

 `{{{info}}}`

{{Userbox/sandbox}}

 info
```{{userbox
|
| border-c=blue
}}
```

{{Userbox}}

 `{{{info}}}`

{{Userbox/sandbox}}

 info
```{{userbox
| info-background =
}}
```

{{Userbox}}

 `{{{info}}}`

{{Userbox/sandbox}}

 info
```{{userbox
| id = id
| id-w =
}}
```

{{Userbox}}

 `{{{info}}}`

{{Userbox/sandbox}}

 info
```{{userbox
| info-color =
| info-fc = red
}}
```

{{Userbox}}

 `{{{info}}}`

{{Userbox/sandbox}}

 info