Template:Superimpose/testcases

Template:Template test cases notice The same logic applies to both the base image and the float image. The results are the same as when using the Extended image syntax.

Test title text

edit

Logic:

tooltip = if caption then caption else if link then link else void
link = if link then link else image file (the float link can be suppressed. See below)
caption and link caption an no link link and no caption no caption an no link
Float caption
Base caption
Float caption
Base caption
Red Dot.svg
US_Locator_Blank.svg
Red Dot.svg
US_Locator_Blank.svg

Compare to File: syntax

edit
caption and link caption an no link link and no caption no caption an no link
Alt text Alt text Alt text Alt text

Test alt text

edit

The alt text should only be seen in the HTML code or with a screen reader.

Logic:

alt = if alt then alt else if caption then caption else file name
alt text and captions alt text and no captions captions and no alt text no alt text and no captions
Float alt
Base alt
Float alt
Base alt
Float caption
Base caption
Red Dot.svg
US_Locator_Blank.svg

Test base attribution symbol

edit
top left top right bottom left default
Float caption
About this image
Base caption
Float caption
About this image
Base caption
Float caption
About this image
Base caption
Float caption
About this image
Base caption
edit

Logic:

if the float_link parameter is assigned a value then the link will be to that value.
if the float_link parameter is included but is not assigned any value then the link will be suppressed.
if the float_link parameter is not included then the link will be to the float image.
link defined and specified link defined and unspecified link undefined
Float caption
Base caption
Float caption
Base caption
Float caption
Base caption