Difference between revisions of "Template:Stacked image/doc"

From RimWorld Wiki
Jump to navigation Jump to search
Line 39: Line 39:
 
|}
 
|}
  
 +
=== Stacking ===
 
{| class="wikitable
 
{| class="wikitable
| {{Stacked image|GeneBackground Endogene.png|Neanderthal.png|32|Neanderthals|Neanderthals}}
+
| {{Stacked image|GeneBackground Endogene.png|Neanderthal.png|32|Neanderthals|Neanderthals}}{{Clear}}{{Stacked image|GeneBackground Endogene.png|Waster.png|32|Wasters|Wasters}}{{Clear}}{{Stacked image|GeneBackground Endogene.png|Yttakin.png|32|Yttakin|Yttakin}}{{Clear}}{{Stacked image|GeneBackground Xenogene.png|Sanguophage.png|32|Sanguophages|Sanguophages}}
<br>
 
{{Stacked image|GeneBackground Endogene.png|Waster.png|32|Wasters|Wasters}}
 
<br>
 
{{Stacked image|GeneBackground Endogene.png|Yttakin.png|32|Yttakin|Yttakin}}
 
<br>
 
{{Stacked image|GeneBackground Xenogene.png|Sanguophage.png|32|Sanguophages|Sanguophages}}
 
 
|}
 
|}
  
 
<noinclude>[[Category: Template documentation]]</noinclude>
 
<noinclude>[[Category: Template documentation]]</noinclude>
 
<includeonly>[[Category: Formatting templates]]</includeonly>
 
<includeonly>[[Category: Formatting templates]]</includeonly>

Revision as of 22:04, 30 December 2024

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 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

Named

{{Stacked image|bottom image=GeneBackground Endogene.png|top image=Gene DeadCalm.png|width=48|caption=Example text|link=Genes#Dead calm}}

Produces:

Example text
Example text

Unnamed

{{Stacked image|GeneBackground ArchiteGene.png|Gene Ageless.png|128|Example text|Genes#Ageless}}

Produces:

Example text
Example text

Float right

{{Stacked image|GeneBackground Xenogene.png|Gene Depressive.png|64|Example text|Genes#Very unhappy|right}}

Produces:

Example text
Example text

Padding

Example text
Example text
Example text
Example text
Unpadded Padded

Stacking

Neanderthals
Neanderthals
Wasters
Wasters
Yttakin
Yttakin
Sanguophages
Sanguophages