Template:Superimpose/testcases
Appearance
This is the template test cases page for the sandbox of Template:Superimpose. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
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 |
---|---|---|---|
Compare to File: syntax
[edit]caption and link | caption an no link | link and no caption | no caption an no link |
---|---|---|---|
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 |
---|---|---|---|
Test base attribution symbol
[edit]top left | top right | bottom left | default |
---|---|---|---|
Suppressing the float link
[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 |
---|---|---|