Content deleted Content added
m lang="wikitext" |
Jroberson108 (talk | contribs) →Floating portal boxes: Add clear instead of width & overflow to fix mobile portrait (Android). Tags: Mobile edit Mobile web edit Advanced mobile edit |
||
Line 213:
|}
{{stack |{{portal|Animals}}{{portal|Cats}}}}
The example here uses {{tld|stack}} to float two portal boxes (Animals, Cats) as follows:
{{clear}}<syntaxhighlight lang="wikitext
{{stack |{{portal|Animals}}{{portal|Cats}} }}
</syntaxhighlight>
The two portal-boxes are stacked and floated together by both being listed as {{tld|stack}}'s (first) parameter. Because the infobox and image were also stacked together, {{tld|stack}} moved the two portal-boxes alongside the infobox despite
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 {{tld|stack}} call, such as in a stub or an article with many stacked images near the bottom. Using {{tld|stack}} is extremely efficient, due to being a short template which uses builtin tag <table> to float the boxes.
|