Template:Infobox drug/testcases7images

{{testcases notice}}

{{Drugbox/testcases/navbox}}

{testcases}}

params

| image =

| width =

| alt =

| caption =

| image2 =

| width2 =

| alt2 =

| caption2 =

| imageL =

| widthL =

| altL =

| imageR=

| widthR =

| altR =

| captionLR =

{{collapse top|bg=#ccc|title=setup}}

| image1 = {{{image}}}

|size={{{width}}}

|sizedefault=frameless

|alt={{{alt}}}

| image2 = {{{image2}}}

|size={{{width2}}} OR {{{width}}}

|sizedefault=frameless

|alt={{{alt2}}}

| image3 = IFnot1,2 :File:{{PAGENAME}}.png

|size={{{width|}}}

|sizedefault=frameless

|alt={{{alt}}}

|title=Chemical structure of {{PAGENAME}}

| caption-2 XOR 1 XOR 3 = {{{caption}}}

| image4 = {{{imageL|}}}{{{imageR|}}}

<table style="width:100%; margin:0;">

<td style="vertical-align:top; text-align:center; width:50%;">

|image={{{imageL}}}

|size={{{widthL}}}

|sizedefault=frameless

|upright=0.5

|alt={{{altL}}}

<td style="vertical-align:top; text-align:center; width:50%;">

|image={{{imageR}}}

|size={{{widthR}}}

|sizedefault=frameless

|upright=0.5

|alt={{{altR}}}

</tr> </table>

| caption4 = {{{captionLR}}}

{{collapse bottom}}

{{testcase table}}

All up

{{purge}}

{{testcase table

| drug_name=All up - no xtra settings

| image = Aspirin-skeletal.svg

| image2 = Aspirin-B-3D-balls.png

| width =

| alt =

| width2 =

| alt2 =

| caption = Caption-0

| imageL = L4 barcelona.svg

| widthL =

| altL =

| imageR = Riverside County R2.svg

| widthR =

| captionLR = CAPTION-L-R

}}

{{testcase table

| drug_name=All up - widths, alts set

| image = Linezolid.svg

| width = 100

| alt =alt-0

| image2 = Linezolid-from-xtal-2008-3D-balls.png

| width2 = 150

| alt2 =alt-2

| caption = Caption-0

| imageL = L4 barcelona.svg

| widthL = 120

| altL =alt-L

| imageR = Riverside County R2.svg

| widthR = 80

| altR =alt-R

| captionLR = CAPTION-L-R

}}

test new caption2

{{purge}}

{{testcase table

| drug_name=4 up

| image = Linezolid.svg

| width =

| alt =alt0

| image2 = Linezolid-from-xtal-2008-3D-balls.png

| width2 =

| alt2 =alt2

| caption = Caption-0

| caption2 = Caption-02

| imageL = L4 barcelona.svg

| widthL =

| altL =alt-L

| imageR = Riverside County R2.svg

| widthR =

| altR =alt-R

| captionLR = CAPTION-L-R

}}

{{testcase table

| drug_name=i0, c0 only

| image = Linezolid.svg

| width =

| alt =alt0

| image2 =

| width2 =

| alt2 =

| caption = Caption-0

| caption2 =

}}

{{testcase table

| drug_name=i2 c2 only

| image =

| width =

| alt =

| image2 = Linezolid-from-xtal-2008-3D-balls.png

| width2 =

| alt2 =alt2

| caption =

| caption2 = Caption-02

}}

{{testcase table

| drug_name=i0 c2

| image = Linezolid.svg

| width =

| alt =alt0

| image2 =

| width2 =

| alt2 =

| caption =

| caption2 = Caption-02

}}

{{testcase table

| drug_name=i2 c0 only

| image =

| width =

| alt =alt0

| image2 = Linezolid-from-xtal-2008-3D-balls.png

| width2 =

| alt2 =alt2

| caption = Caption-0

| caption2 =

}}

=sub=

{{testcase table

| drug_name=i0 miss

| image =

| width =

| alt =alt0

| image2 = Linezolid-from-xtal-2008-3D-balls.png

| width2 =

| alt2 =alt2

| caption = Caption-0

| caption2 = Caption-02

}}

{{testcase table

| drug_name=i2 miss

| image = Linezolid.svg

| width =

| alt =alt0

| image2 =

| width2 =

| alt2 =alt2

| caption = Caption-0

| caption2 = Caption-02

}}

{{testcase table

| drug_name=c0 miss

| image = Linezolid.svg

| width =

| alt =alt0

| image2 = Linezolid-from-xtal-2008-3D-balls.png

| width2 =

| alt2 =alt2

| caption =

| caption2 = Caption-02

}}

{{testcase table

| drug_name=c2 miss

| image = Linezolid.svg

| width =

| alt =alt0

| image2 = Linezolid-from-xtal-2008-3D-balls.png

| width2 =

| alt2 =alt2

| caption = Caption-0

| caption2 =

}}

Test 1

{{testcase table

| drug_name = {{PAGENAME}}

| Verifiedfields = changed

| verifiedrevid = 415028406

| IUPAC_name = (S)-N-({3-[3-fluoro-4-(morpholin-4-yl)phenyl]-2-oxo-1,3-oxazolidin-5-yl}methyl)acetamide

| image = Linezolid.svg

| alt = Skeletal formula of linezolid

| image2 = Linezolid-from-xtal-2008-3D-balls.png

}}

Test 2

{{testcase table

| IUPAC_name = (7S,9E,11S,12R,13S,14R,15R,16R,17S,18S,19E,21Z,26E)-26-{[(4-cyclopentylpiperazin-1-yl)amino]methylidene}-2,15,17,29-tetrahydroxy-11-methoxy-3,7,12,14,16,18,22-heptamethyl-6,23,27-trioxo-8,30-dioxa-24-azatetracyclo[23.3.1.14,7.05,28]triaconta-1(28),2,4,9,19,21,25(29)-heptaen-13-yl acetate

| image = Rifapentine.svg

| width = 250

| synonyms = 3{[(4-cyclopentyl-1-piperazinyl)imino]methyl}rifamycin

}}

Test 4

{{testcase table

| drug_name = Atorvastatin

| image = Atorvastatin2DCSD.svg

| width = 300

| image2 = Atorvastatin3Dan.gif

| width2 = 250

}}

Test all 1

{{Testcase table

| imagename = 2

| type = 3

| drug_name = testcases

| image = Bad Title Example.png

| width = 175px

| alt = an example image

| image2 = Nocover.svg

| width2 = 150px

| alt2 = another example image

| caption = some images

| IUPAC_name = 12

}}

Test all 2

{{Testcase table

| drug_name = 1

| imagename = 2

| type = combo

| image = Bad Title Example.png

| width = 175px

| alt = an example image

| image2 = Nocover.svg

| width2 = 150px

| alt2 = another example image

| caption = some images

| IUPAC_name = 12

| target = 13

}}

Test all 3

{{Testcase table

| drug_name = 1

| imagename = 2

| type = vaccine

| image = Bad Title Example.png

| width = 175px

| alt = an example image

| image2 = Nocover.svg

| width2 = 150px

| alt2 = another example image

| caption = some images

| IUPAC_name = 12

| target = 13

}}

Test all 4

{{Testcase table

| drug_name = 1

| imagename = 2

| type = mab

| image = Bad Title Example.png

| width = 175px

| alt = an example image

| image2 = Nocover.svg

| width2 = 150px

| alt2 = another example image

| caption = some images

| IUPAC_name = 12

| target = 13

}}

Dark mode test

=testing defaults: no css class set=

{{testcase table

| drug_name=no css class set

| image = Aspirin-skeletal.svg

| image2 = Aspirin-B-3D-balls.png

| width =

| alt =

}}

{{testcase table

| drug_name=defaults

| image = Aspirin-B-3D-balls.png

| image_class =

| caption = Setting is blank (image_class=)

| image2 = Aspirin-B-3D-balls.png

| image_class2 = dark_mode_safe

| caption2 = class specified (image_class=dark_mode_safe)

| width =

| alt =

}}

=applied css class=

{{testcase table

| drug_name=the two different skin-invert classes (it should be identical)

| image = Aspirin-skeletal.svg

| image_class = skin-invert-image

| caption = class: skin-invert-image

| image2 = Aspirin-skeletal.svg

| image_class2 = skin-invert

| caption2 = class: skin-invert

}}

{{testcase table

| drug_name=different darkmode settings for each image

| image = Aspirin-skeletal.svg

| image_class = skin-invert-image

| caption = class: skin-invert-image

| image2 = Aspirin-B-3D-balls.png

| caption2 = class: dark_mode_safe, or not setting a class, makes it default to a safe darkmode background

| width =

| alt =

| width2 =

| alt2 =

| imageL = L4 barcelona.svg

| image_classL = bg-transparent

| widthL =

| altL =

| imageR = Riverside County R2.svg

| image_classR = bg-transparent

| widthR =

| captionLR = class: using any class, even inexistent classes, like "bg-transparent", allows to use a transparent background

}}