Jump to content

Template:FixBunching: Difference between revisions

From IdeaWazaWiki
wikademia>Remember the dot
m moved Template:FixHTML to Template:FixBunching: "FixHTML" was extremely vague
wikademia>Fabartus
spit out documentation to /doc page
Line 1: Line 1:
<noinclude>
<noinclude>
{{esoteric}}[[Category:Templates using ParserFunctions]]
[[Category:Templates using ParserFunctions]]
</noinclude><includeonly>{{#switch:{{{1|}}}
</noinclude><includeonly>{{#switch:{{{1|}}}
|beg|Beg|BEG|begin|Begin|BEGIN=<!--
|beg|Beg|BEG|begin|Begin|BEGIN=<!--
Line 29: Line 29:
|#default=<big style="color:red;">Parameter not given Error...</big><br />''Template {{tl2|fixHTML}} needs its first parameter as beg[in], mid[dle], or end.
|#default=<big style="color:red;">Parameter not given Error...</big><br />''Template {{tl2|fixHTML}} needs its first parameter as beg[in], mid[dle], or end.
}}</includeonly><noinclude>
}}</includeonly><noinclude>
;See {{wpd|Wikipedia:How to fix bunched-up edit links}}
{{Documentation}}
 
:This template is used to make right floating elements behave with others on the right margin.
* 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...
*# Place {{Tlx|FixHTML|beg}} above the top image, infobox or other right floating HTML element.
*# Place {{Tlx|FixHTML|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.
*# Place {{Tlx|FixHTML|end}} '''BELOW''' the last (Bottom) image, infobox or other right floating HTML element.
 
;Example using Miltary Info boxes
<pre>
{{FixHTML|begin}}
{{Military conflict infobox
| ... (contents)
}}
{{FixHTML|mid}}
{{Military campaign infobox
| ... (contents)
}}
{{FixHTML|mid}}
[[Image:Boy give finger to Kaiser.png|...]]
{{FixHTML|mid}}
[[Image:Kaiser Moons boy.png|...]
{{FixHTML|end}}
 
</pre>
 
{{Interwikitmp-grp|V=3|cat=Formatting templates|mdw=|wqt=|wdy=|wsr=|wnw={{PAGENAME}}}}
[[Category:Formatting templates|{{PAGENAME}}]]
[[Category:MSIE font fix templates|{{PAGENAME}}]]
[[Category:typing-aid templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 16:44, 29 November 2007


[create] Template documentation