Difference between revisions of "Template:Stacked image/doc"
Jump to navigation
Jump to search
Line 17: | Line 17: | ||
<pre>{{Stacked image|bottom image=GeneBackground Endogene.png|top image=Gene DeadCalm.png|width=48|caption=Example text|link=Genes#Dead calm}}</pre> | <pre>{{Stacked image|bottom image=GeneBackground Endogene.png|top image=Gene DeadCalm.png|width=48|caption=Example text|link=Genes#Dead calm}}</pre> | ||
Produces: | Produces: | ||
− | {{Stacked image|bottom image=GeneBackground Endogene.png|top image=Gene DeadCalm.png|width=48|caption=Example text|link= | + | {{Stacked image|bottom image=GeneBackground Endogene.png|top image=Gene DeadCalm.png|width=48|caption=Example text|link=Dead calm}} |
=== Unnamed === | === Unnamed === | ||
<pre>{{Stacked image|GeneBackground ArchiteGene.png|Gene Ageless.png|128|Example text|Genes#Ageless}}</pre> | <pre>{{Stacked image|GeneBackground ArchiteGene.png|Gene Ageless.png|128|Example text|Genes#Ageless}}</pre> | ||
Produces: | Produces: | ||
− | {{Stacked image|GeneBackground ArchiteGene.png|Gene Ageless.png|128|Example text| | + | {{Stacked image|GeneBackground ArchiteGene.png|Gene Ageless.png|128|Example text|Ageless}} |
=== Float right === | === Float right === | ||
<pre>{{Stacked image|GeneBackground Xenogene.png|Gene Depressive.png|64|Example text|Genes#Very unhappy|right}}</pre> | <pre>{{Stacked image|GeneBackground Xenogene.png|Gene Depressive.png|64|Example text|Genes#Very unhappy|right}}</pre> | ||
Produces: | Produces: | ||
− | {{Stacked image|GeneBackground Xenogene.png|Gene Depressive.png|64|Example text| | + | {{Stacked image|GeneBackground Xenogene.png|Gene Depressive.png|64|Example text|Very unhappy|right}} |
=== Padding === | === Padding === | ||
{| class="wikitable" style="text-align: center;" | {| class="wikitable" style="text-align: center;" | ||
|- | |- | ||
− | | width=100px height=50px | {{Stacked image|GeneBackground Xenogene.png|Gene WoundHealingRateSuperfast.png|64|Example text| | + | | width=100px height=50px | {{Stacked image|GeneBackground Xenogene.png|Gene WoundHealingRateSuperfast.png|64|Example text|Superfast wound healing}} |
− | | width=100px height=50px | {{Stacked image|GeneBackground Xenogene.png|Gene WoundHealingRateSuperfast.png|64|Example text| | + | | width=100px height=50px | {{Stacked image|GeneBackground Xenogene.png|Gene WoundHealingRateSuperfast.png|64|Example text|Superfast wound healing||20}} |
|- | |- | ||
| Unpadded | | Unpadded |
Latest revision as of 01:52, 4 January 2025
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[edit]
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 none. Typically only none, left, and right will be necessary.
- padding: Add padding to the left of the stacked image, measured in pixels. Positive moves it right, negative moves it right. Optional. Defaults to 0.
Examples[edit]
Named[edit]
{{Stacked image|bottom image=GeneBackground Endogene.png|top image=Gene DeadCalm.png|width=48|caption=Example text|link=Genes#Dead calm}}
Produces:
Unnamed[edit]
{{Stacked image|GeneBackground ArchiteGene.png|Gene Ageless.png|128|Example text|Genes#Ageless}}
Produces:
Float right[edit]
{{Stacked image|GeneBackground Xenogene.png|Gene Depressive.png|64|Example text|Genes#Very unhappy|right}}
Produces:
Padding[edit]
Unpadded | Padded |