قالب:FixBunching

Template documentation[view] [edit] [history] [purge]
Note: The original name of this template was {{FixHTML}} which was moved and so that name is now a redirect template still doing the same task. The two names are interchangable and entirely equivalent.

Purpose: This template is used to make right floating elements behave with others on the right margin.

  • The two most common wikimarkup symptoms that occur indicating this should be used ASAP, are:
    1. bunched up and dislocated section edit links (normally some of these will be displaced down the page—frequently well down the page— and several will occur on the same line.)
    2. Box structures such as combinations of infoboxes with another or an image, where corners are offset so the right top margin of one HTML element is dislocated left of the left bottom corner of the preceding (in page text order) HTML box element. (i.e. These occurrences are not obvious in edit changes in any one given browser, but even new browsers such as IE7 can display one thing, and other modern browsers display some other look... as a problem to and for other readers.)
  • See Wikipedia:How to fix bunched-up edit links, which advice and techniques the template systematizes using the table elements method. (The div method fails in many cases on Microsoft browsers, in particular).

Parameters

The template has been written to "be obvious" so it won't be deleted by accident by an editor ignorant of the benefits. It takes three simple arguments (variable names controlling output modes) beg(in), mid(dle), and end. If placed between right floating image elements, the mid call may be omitted safely.

  • It will take an optional parameter 'left', which if defined (e.g. "|left=1|beg") will float the enclosed elements left instead of the normal right.
  • Procedure is easy as 1, 2, 3...
    1. Place {{FixBunching|beg}} above the top image, infobox or other right floating HTML element.
    2. Place {{FixBunching|mid}} above the next image, infobox or other right floating HTML element. And the next ... And the next ... And the next ... And the next, as needed.
    3. Place {{FixBunching|end}} BELOW the last (Bottom) image, infobox or other right floating HTML element.
    • When used as a left margin encapsulation, only the first line needs the left switch parameter ({{FixBunching|beg}})



  • It overcomes many inconvenient HTML parsing issues (usually a side effect of parsing HTML box elements in different order of display) from different internet browsers—since wikipedia articles of any complexity, tend to over populate the right margin with such HTML elements (Pictures, infoboxes, history (reign/dynasty) boxes, etc.)
    • Consequently, ... this template can be used as a prophalactic measure to ensure a crowed page does not misbehave, for it was assidiously tested against known problem types on a half-dozen complicated article pages and each "fix" verified versus seven different browsers, including ones on the MacIntosh and Unix systems.
  • When used, the template uses very little extra memory, and only a few tens of bytes of "Prexpansion template memory space", making it superior to Wikimarkup table elements it puts in place. It's very name and size (Comparative to "|-", "{|", or "|}" etc. prevents it being overlooked and misused in practice.
Example using Miltary Info boxes
{{FixBunching|begin}}
{{Military conflict infobox
| ... (contents)
}}
{{FixBunching|mid}}
{{Military campaign infobox
| ... (contents)
}}
{{FixBunching|mid}}
[[Image:Boy give finger to Kaiser.png|...]]
{{FixBunching|mid}}
[[Image:Kaiser Moons boy.png|...]
{{FixBunching|end}}


Other Sister Projects sharing this template or one like it

Metawiki has this template:
Metawiki
                 

</noinclude>


Wikipedia
Wikipedia has this template: FixHTML


Commons
The sister project Wikimedia Commons has this template: FixHTML


Wikibooks logo
The sister project Wikibooks has this template: FixHTML


Wikiquote
The sister project Wikiquote has this template: FixHTML


Wikisource
The sister project Wikisource has this template: FixHTML


قالب:Wiktionarytmp
Wikinews
The sister project Wikinews has this template: FixHTML


Wikispecies
The sister project Wikispecies has this template: FixHTML


Wikiversity
The sister project FixHTML has this template:
FixHTML