Difference between revisions of "Template:Stacked image/doc"
Jump to navigation
Jump to search
(Created page with "{{Stacked image|bottom image=GeneBackground Endogene.png|top image=Gene DeadCalm.png|width=48|caption=Example text|link=Genes#Dead calm}} {{Stacked image|GeneBackground Archi...") |
|||
Line 1: | Line 1: | ||
+ | As the name implies, this template allows for the stacking of images. It is based on [https://en.wikipedia.org/wiki/Template:Stacked_image Wikipedia's Template:Stacked image] | ||
+ | |||
+ | Note that at this time, the sizes of the image have to be the same. | ||
+ | |||
+ | == Parameters == | ||
+ | The template takes the following parameters either unnamed in this order, or named in any order. Best practice is to maintain this order regardless. | ||
+ | |||
+ | * bottom image: ''Mandatory'' | ||
+ | * top image: ''Mandatory'' | ||
+ | * width: Optional. Defined in px. Defaults to 300 | ||
+ | * caption: Caption to display on mouse hover. Optional. Defaults to link. | ||
+ | * link: Optional. Defaults to link to bottom image used. | ||
+ | * float: Optional. Defaults to left. Typically only left and right will be necessary. | ||
+ | |||
+ | == Examples == | ||
+ | === Named === | ||
+ | <pre>{{Stacked image|bottom image=GeneBackground Endogene.png|top image=Gene DeadCalm.png|width=48|caption=Example text|link=Genes#Dead calm}}</pre> | ||
+ | Produces: | ||
{{Stacked image|bottom image=GeneBackground Endogene.png|top image=Gene DeadCalm.png|width=48|caption=Example text|link=Genes#Dead calm}} | {{Stacked image|bottom image=GeneBackground Endogene.png|top image=Gene DeadCalm.png|width=48|caption=Example text|link=Genes#Dead calm}} | ||
− | {{Stacked image|GeneBackground ArchiteGene.png|Gene Ageless.png|128|Example text}} | + | === Unnamed === |
− | + | <pre>{{Stacked image|GeneBackground ArchiteGene.png|Gene Ageless.png|128|Example text|Genes#Ageless}}</pre> | |
+ | Produces: | ||
+ | {{Stacked image|GeneBackground ArchiteGene.png|Gene Ageless.png|128|Example text|Genes#Ageless}} | ||
+ | === Float right === | ||
+ | <pre>{{Stacked image|GeneBackground Xenogene.png|Gene Depressive.png|64|Example text|Genes#Very unhappy|right}}</pre> | ||
+ | Produces: | ||
+ | {{Stacked image|GeneBackground Xenogene.png|Gene Depressive.png|64|Example text|Genes#Very unhappy|right}} | ||
<noinclude>[[Category: Template documentation]]</noinclude> | <noinclude>[[Category: Template documentation]]</noinclude> | ||
<includeonly>[[Category: Formatting templates]]</includeonly> | <includeonly>[[Category: Formatting templates]]</includeonly> |
Revision as of 12:59, 7 March 2023
As the name implies, this template allows for the stacking of images. It is based on Wikipedia's Template:Stacked image
Note that at this time, the sizes of the image have to be the same.
Parameters
The template takes the following parameters either unnamed in this order, or named in any order. Best practice is to maintain this order regardless.
- bottom image: Mandatory
- top image: Mandatory
- width: Optional. Defined in px. Defaults to 300
- caption: Caption to display on mouse hover. Optional. Defaults to link.
- link: Optional. Defaults to link to bottom image used.
- float: Optional. Defaults to left. Typically only left and right will be necessary.
Examples
Named
{{Stacked image|bottom image=GeneBackground Endogene.png|top image=Gene DeadCalm.png|width=48|caption=Example text|link=Genes#Dead calm}}
Produces:
Unnamed
{{Stacked image|GeneBackground ArchiteGene.png|Gene Ageless.png|128|Example text|Genes#Ageless}}
Produces:
Float right
{{Stacked image|GeneBackground Xenogene.png|Gene Depressive.png|64|Example text|Genes#Very unhappy|right}}
Produces: