قالب:Stack begin/doc
هذه صفحة توثيق الفرعية، لشرح القالب وتصنيفه، وهي لا تدخل في استخدامه. |
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.
Basic usage
تعديلUsing {{stack}}
,
{{stack|<objects>}}
or, alternatively, using {{stack begin}}
/{{stack end}}
{{stack begin}} <objects> {{stack end}}
Here, <objects>
is simply a string of wiki code 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).
Examples
تعديلLipsum
تعديل{{stack| [[ملف:Example.png|thumb|Example]] [[ملف:Example.png|thumb|Example2]] [[ملف:Example.png|thumb|Example3]] }}
The above code is placed directly under the heading "Lipsum".
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem
تعديلLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Ipsum
تعديلLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Stack templates
تعديل- {{Stack}}
- {{Stack begin}}
- {{Stack end}}
See also
تعديل- {{Fix bunching}}
- {{Double image}} places images side by side horizontally
- {{Multiple image}} allows both vertical and horizontal layouts
- {{Superimpose}}—places one image over another
- {{Superimpose2}}—places up to 50 image layers over one another