Template:Stack documentation

From Hack/Mine Wiki
Revision as of 06:13, 6 August 2014 by 37.233.27.142 (Talk)

Jump to: navigation, 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.

Fj6G0w Major thankies for the blog post.Really looking forward to read more. Keep writing.

wWoyye Really appreciate you sharing this blog post.Really thank you! Much obliged.

oUTjMX Awesome blog.Really looking forward to read more. Awesome.

Float portal boxes

Because auto-floating of portal boxes could cause a loss of margin control, the Template:stack can be used, as needed in some articles, when floating a portal box would look better alongside an infobox (or right-side image).

Infobox


Line 1
Line 2
Line 3
Line 4
L5
L6
L7
L8
L9

A wikitable here, as a typical left-side table. The overlap on left-side tables had been a frequent problem with allowing other boxes to "float:right" on a page. So this is a test of how well a floating portal-box would avoid overlapping onto a left-side table.

{{#invoke:Portal|portal}}{{#invoke:Portal|portal}}

The example here uses UIesKf Thanks again for the blog.Really looking forward to read more. Much obliged. to float 2 portal boxes (for Animals & Cats), as follows:

  • {{stack |{{portal|Animals}}{{portal|Cats}} }}

The 2 portal-boxes are stacked together, and floated together as a stack, by both being listed in parameter 1 to UIesKf Thanks again for the blog.Really looking forward to read more. Much obliged.. Although the 2 portal-boxes were specified below the Mona Lisa image, because the infobox+image were also stacked together, then the UIesKf Thanks again for the blog.Really looking forward to read more. Much obliged. moved the 2 portal-boxes, even higher, alongside the infobox.

Normally, a portal-box would be stuck below the Mona Lisa image, causing this entire text section to format further below, and causing a large text-gap of empty whitespace to appear near the infobox. There is no limit to the number of portalboxes (or Commonscat boxes) which can be listed within a UIesKf Thanks again for the blog.Really looking forward to read more. Much obliged. call, such as in a stub or an article with many stacked images near the bottom. Using UIesKf Thanks again for the blog.Really looking forward to read more. Much obliged. is extremely efficient, due to being a short template which uses builtin tag <table> to float the boxes.

Stack templates

See also

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox