ଛାଞ୍ଚ:Stack

ଉଇକିପାଠାଗାର‌ରୁ
Template documentation[view] [edit] [history] [purge]


This template can be used to stack images and other floating content such as infobox templates without causing problems with spacing and floating. Enter a string of images/templates as the first parameter to have them stack without generating floating errors or spacing errors. You can stack many objects from the top of a section and not force further subsections to space out.

ଛାଞ୍ଚ:TOClimit

Usage[ସମ୍ପାଦନା]

At its simplest:

{{stack|<objects>}}

Alternatively, using ଛାଞ୍ଚ:Tld, ଛାଞ୍ଚ:Tld and ଛାଞ୍ଚ:Tld:

{{stack begin}}
<object>
{{stack mid}}
<object>
...
{{stack end}}

Previous usage suggests {{stack mid}} is not always needed. Thus, <object> may simply be a string of wikicode for many images/templates.

Optional parameters[ସମ୍ପାଦନା]

{{stack| <objects> | float=left/right | clear=true/false}}

or

{{stack begin | float=left/right | clear=true/false}}

where

  • float= left or right (default is right)
    This option can be used to float the stack to the left or right of the page
  • clear= true or false (default is false)
    This option can be used to force the stack to the far left or right (e.g., near an infobox).

You can also explicily list multiple arguments, which is then identical to the {{stack begin}}, {{stack mid}} and {{stack end}} version.

{{stack| float=left/right | clear=true/false
|1=<object(s)>
|2=<object(s)>
|3=<object(s)>, etc. up to 9 parameters in the current version
}}
  • NB This multiple argument version does include extra vertical whitespace between each (set of) <object(s)>.

Examples[ସମ୍ପାଦନା]

ଛାଞ୍ଚ:Stack documentation/examples

Stack template family[ସମ୍ପାଦନା]

See also[ସମ୍ପାଦନା]

  • {{Double image}}, which places images side by side horizontally.
  • {{Multiple image}}, providing both vertical and horizontal layouts for multiple images.
  • {{Superimpose}}, which places one image over another.
  • {{Superimpose2}}, which can place up to fifty image layers over one another.