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

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

ವಿಕಿಪೀಡಿಯದಿಂದ, ಇದು ಮುಕ್ತ ಹಾಗೂ ಸ್ವತಂತ್ರ ವಿಶ್ವಕೋಶ

Standard boxes

[ಬದಲಾಯಿಸಿ]

{{Userbox}}

{{{info}}}

{{Userbox/sandbox}}

info

{{Userbox}}

{{{info}}}

{{Userbox/sandbox}}

info

{{Userbox}}

{{{info}}}

{{Userbox/sandbox}}

info

{{Userbox}}

{{{info}}}

{{Userbox/sandbox}}

info
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

{{Userbox}}

{{{info}}}

{{Userbox/sandbox}}

info

{{Userbox}}

{{{info}}}

{{Userbox/sandbox}}

info

{{Userbox}}

{{{info}}}

{{Userbox/sandbox}}

info
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...
42The Answer to Great Question of the Universe, Life, and Everything
;This user thinks TeX is cool.

{{Userbox/sandbox}}

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

Stacked

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

π3.1415926535897932384626433832795028841941693993751058209749445923808162...
π3.1415926535897932384626433832795028841941693993751058209749445923808162...
42The Answer to Great Question of the Universe, Life, and Everything
42The Answer to Great Question of the Universe, Life, and Everything
;This user thinks TeX is cool.
;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