| advertise add site services publishers database health videos | ![]() | about toolbar stats live show health store more stuff JOIN/LOGIN |
Tramadol Wikipedia =>> Trusted Pills Catalog synergeticsusa.com | Fecal incontinence - Wikipedia, the free encyclopedia socalgastroenterologist.c... | MediLexicon Search - Search the Web, Wikipedia, Dictionary and More medilexicon.com | Society for Neuroscience - Neuroscience Wikipedia Initiative sfn.org |
When there is a long strip of right-positioned images or infoboxes together with a number of article sections, it usually causes the section editing links — "[edit]" — for the sections which start after the first and before the last image or infobox to bunch up to the left of it like this: [edit] [edit] [edit] (see Example 1.) This causes several problems:
There are several ways to either avoid or work around this and similar issues, as discussed below. The best (most universally effective) and easiest of these has been formalized in the template {{FixBunching}}. [edit] Using the FixBunching templateThe easiest method works with both images and infoboxes. It leaves formatting virtually untouched except for unbunching the problematic edit links. Use the {{FixBunching}} template as in the following code: {{FixBunching|beg}} {{ 1st infobox, image, table, etc. }} {{FixBunching|mid}} {{ 2nd infobox, image, table, etc. }} ...continue as needed with {{FixBunching|mid}} before content: {{FixBunching|mid}} {{ 3rd infobox, image, table, etc. }} {{FixBunching|end}} Note that the resulting column of objects will be as wide as its widest component throughout. See Example 2 for sample code and its results. [edit] Clearing the floatsThis can be done if there is no problem adding extra whitespace before the next section (for instance, because the problem only shows in uncommon font sizes, or if the images are logically attached to sections). This can be accomplished by adding an element with either of the CSS properties [edit] Moving the images aroundWhen the article is long enough, it is possible to spread the images around, instead of having them together. It is also possible to make some of the images float left instead of right. This often is enough to fix the issue, and generally results in a prettier article. [edit] Using a galleryWhen you have too many images, it might make sense to move some or most of them to a gallery. However, while this avoids the issue, it has issues of its own (for instance, the captions can be small to the point of being unreadable in some cases, and the image size is fixed). [edit] Removing some of the imagesIt might be a good idea to question yourself whether all these images are really necessary. The images are supposed to be to illustrate the subject, not to turn an article into a gallery. If images are too dense, but none of them warrant removal, it may mean that the article needs to be expanded. The ideal solution might be to create a page or category combining all of them at Wikimedia Commons and use a relevant template ({{commons}}, {{commonscat}}, {{commons-inline}} or {{commonscat-inline}}) and link to it instead, so that further images are readily found if the article is expanded. [edit] Using a floated divThis fix works reliably only for "div" based elements and Images. For table elements such as infoboxes, see #Using the FixBunching template. This method has the advantage of not visibly changing anything in the article; the resulting appearance is almost identical to the original, with the only differences being that the section edit links flow naturally as expected, instead of ending bunched up to the left of the last image, slightly different spacing between the images, and a slightly different margin size. It also has the advantage of being possible to do mechanically (either with a bot or manually). However, it can only be used when the images have identical width (usually happens when all are either To do this, first remove any See Example 3 for an example. [edit] Using a wikitable to groupThis is actually what {{FixBunching}} does in a simplified manner, without requiring use of the wikitable syntax. For an example of using the wikitable code, see Example 4. [edit] Using a stacking templateThe template {{stack}} is another way to group images in a single floating box. The syntax is the following: {{stack|[[image1.jpg]][[image2.jpg]][[image3.jpg]][[image4.jpg]]}} or {{stack|float=left/right|[[image1.jpg]][[image2.jpg]][[image3.jpg]][[image4.jpg]]}} [edit] ExamplesHopefully some examples will make these complicated technical matters easier to understand for non-nerds. [edit] Example 1This example will demonstrate that the images on the right and sections on the right create rendering issues for each other. This manifests opposite the top edge of the bottom image where the three section edit links line up like this: [edit] [edit] [edit] [[Image:Wikipedesketch1.png|thumb|right|ETAOIN SHRDLU CMFWYP VBGKQJ XZ]] [[Image:Wikipedesketch1.png|thumb|right|ETAOIN SHRDLU CMFWYP VBGKQJ XZ]] [[Image:Wikipedesketch1.png|thumb|right|ETAOIN SHRDLU CMFWYP VBGKQJ XZ]] [edit] Section 1Lorem ipsum dolor sit amet, consectetur adipisicing 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. [edit] Section 2Lorem ipsum dolor sit amet, consectetur adipisicing 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. [edit] Section 3Lorem ipsum dolor sit amet, consectetur adipisicing 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. [edit] Example 2This example uses the {{FixBunching}} template to correct bunching [edit] [edit] [edit] links. {{FixBunching|beg}} [[Image:Wikipedesketch1.png|thumb|right|ETAOIN SHRDLU CMFWYP VBGKQJ XZ]] {{FixBunching|mid}} [[Image:Wikipedesketch1.png|thumb|right|ETAOIN SHRDLU CMFWYP VBGKQJ XZ]] {{FixBunching|mid}} [[Image:Wikipedesketch1.png|thumb|right|ETAOIN SHRDLU CMFWYP VBGKQJ XZ]] {{FixBunching|end}} [edit] Section 1Lorem ipsum dolor sit amet, consectetur adipisicing 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. [edit] Section 2Lorem ipsum dolor sit amet, consectetur adipisicing 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. [edit] Section 3Lorem ipsum dolor sit amet, consectetur adipisicing 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. [edit] Example 3Demonstrates placing the recommended div style block around the images will allow the bunched [edit] [edit] [edit] to float to the proper places on their respective section headings. <div style="float: right; clear: right; margin-left: 1.4em"> [[Image:Wikipedesketch1.png|thumb|none|ETAOIN SHRDLU CMFWYP VBGKQJ XZ]] [[Image:Wikipedesketch1.png|thumb|none|ETAOIN SHRDLU CMFWYP VBGKQJ XZ]] [[Image:Wikipedesketch1.png|thumb|none|ETAOIN SHRDLU CMFWYP VBGKQJ XZ]] </div> [edit] Section 1Lorem ipsum dolor sit amet, consectetur adipisicing 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. [edit] Section 2Lorem ipsum dolor sit amet, consectetur adipisicing 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. [edit] Section 3Lorem ipsum dolor sit amet, consectetur adipisicing 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. [edit] Example 4Example uses a wikitable format, where the width parameter can be left to default to auto, or specified in the style line (not shown).
{| style="float: right; clear: right; background-color: transparent; margin-left: 1.4em" | [[Image:Wikipedesketch1.png|thumb|none|ETAOIN SHRDLU CMFWYP VBGKQJ XZ]] |- | [[Image:Wikipedesketch1.png|thumb|none|ETAOIN SHRDLU CMFWYP VBGKQJ XZ]] |- | [[Image:Wikipedesketch1.png|thumb|none|ETAOIN SHRDLU CMFWYP VBGKQJ XZ]] |} [edit] Section 1Lorem ipsum dolor sit amet, consectetur adipisicing 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. [edit] Section 2Lorem ipsum dolor sit amet, consectetur adipisicing 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. [edit] Section 3Lorem ipsum dolor sit amet, consectetur adipisicing 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. [edit] Removal of edit linksTo remove all edit links from a page, put the "magic word" __NOEDITSECTION__ anywhere in the page. Note that this shouldn't be done on articles. [edit] See also
|
| ↑ top of page ↑ | about thumbshots |