Templat:Stack
Jump to navigation
Jump to search
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.
Usage[sunting sumber]
{{stack|<objects>}}
<objects>
is simply a string of wiki code for many images / templates.
Optional parameters[sunting sumber]
{{stack| <objects>| float=left/right| clear=true/false}}
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).
Examples[sunting sumber]
Lipsum[sunting sumber]
{{stack| [[File:Example.png|thumb|Example]] [[File:Example.png|thumb|Example2]] [[File:Example.png|thumb|Example3]] }}
The above code is placed directly under the heading "Lipsum".
Lorem[sunting sumber]
Ipsum[sunting sumber]
See also[sunting sumber]
- {{Fix bunching}}
- {{Multiple image}}
- {{Superimpose}}—places one image over another
- {{Superimpose2}}—places up to 50 image layers over one another
Pendokumenan di atas ditransklusikan daripada Templat:Stack/doc. (sunting | sejarah) Para penyunting boleh membuat percubaan di laman kotak pasir (cipta | cermin) dan kes ujian (cipta) templat ini. Sila letakkan kategori di sublaman /doc. Sublaman templat ini. |