Jump to content

Template:FixBunching: Difference between revisions

From IdeaWazaWiki
wikademia>Fabartus
Add left capability
wikademia>Fabartus
Add 2X padding options, PL for Padding right set TOC's
Line 2: Line 2:
|beg|Beg|BEG|begin|Begin|BEGIN=<!--
|beg|Beg|BEG|begin|Begin|BEGIN=<!--
  --><includeonly>{{{!}}style="float:{{#if:{{{left|}}}|left|right}}; <!--
  --><includeonly>{{{!}}style="float:{{#if:{{{left|}}}|left|right}}; <!--
  -->margin:{{#if:{{{left|}}}|{{{margin| .25 .25 .25 0}}}|{{{margin| 0 0 .25 .25}}}}}; "
  -->margin:{{#if:{{{left|}}}|{{{margin| .25 .25 .25 0}}}|{{{margin| 0 0 .25 .25}}}}}; <!--
-->{{#if:{{{padding|}}}|{{{padding}}}|{{#if:{{{PL|}}}|padding:.25 0 .25 .75em}}; "
{{!}}<!--This line confines right floating elements in a table, the newline here is necessary after this comment -->
{{!}}<!--This line confines right floating elements in a table, the newline here is necessary after this comment -->



Revision as of 12:15, 11 May 2007

Parameter not given Error...
Template Template:Tl2 (generator) needs {{{1}}} defined as one of: {The sets: |beg|Beg|BEG or |mid|Mid|MID or |end|End|END }.


The above error message is generated because this template page has no {{{1}}} defined , and it uses a parser function switch to combine all formatting needs into this one template.
per Wikipedia:How to fix bunched-up edit links a related problem...
This template is used to make right floating elements behave with others on the right margin.
  • As it has an auto width, the largest width enclosed element will set a boundary for the others.
  • Procedure is easy as 1, 2, 3...
    1. Place {{FixHTML|begin}} above the top image, infobox or other right floating HTML element.
    2. Place {{FixHTML|middle}} 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 {{FixHTML|end}} BELOW the last (Bottom) image, infobox or other right floating HTML element.

Example using Miltary Info boxes
{{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}}

'Social communications in War spans a vast array of methods ... <g>