Jump to content

Template:FixBunching: Difference between revisions

From IdeaWazaWiki
wikademia>GetLinkPrimitiveParams
end a/k/a bottom
wikademia>Huntster
Simplifying code (made input lowercase and resolve from there), and clean up local doc.
Line 1: Line 1:
<includeonly>{{#switch:{{{1|}}}
<includeonly>{{#switch:{{lc:{{{1|}}}}}
|beg|Beg|BEG|begin|Begin|BEGIN|top|Top|TOP=<!--
|beg|begin|top=<!--
  -->{{{!}}style="background:transparent; float:{{{float|{{#if:{{{left|}}}|left|right}}}}}; <!--
  -->{{{!}}style="background:transparent; float:{{{float|{{#if:{{{left|}}}|left|right}}}}}; <!--
  -->margin:{{#if:{{{left|}}}<!--
  -->margin:{{#if:{{{left|}}}<!--
Line 12: Line 12:
{{!}}<!--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 -->


|mid|Mid|MID|Middle|MIDDLE=<!--
|mid|middle=<!--
  -->{{!}}-  
  -->{{!}}-


{{!}}<!-- this trailing newline needed.  
{{!}}<!-- this trailing newline needed.
  ---      This line separates elements into the next table cell down
  ---      This line separates elements into the next table cell down
  -->
  -->
|end|End|END|bot|Bot|BOT|bottom|Bottom|BOTTOM=<!--
|end|bot|bottom=<!--
  -->{{!}}}
  -->{{!}}}
 
<!-- above newline needed
<!-- above newline needed


Line 26: Line 26:
  -->
  -->
|#default=<big style="color:red;">Parameter not given Error...</big><br />''Template {{tl2|FixBunching}} needs its first parameter as beg[in], mid[dle], or end.
|#default=<big style="color:red;">Parameter not given Error...</big><br />''Template {{tl2|FixBunching}} needs its first parameter as beg[in], mid[dle], or end.
}}</includeonly><noinclude>{{usage div}}
}}</includeonly><noinclude>
;FixHTML (FixBunching) can be used for left float HTML elements: by defining <tt>either of two parameters: {{I
'''FixBunching (FixHTML)''' can be used for left float HTML elements by defining either of two parameters:
}}"left" (to anything, e.g. "'''|left=1'''") {{I
{{I}}{{para|left}} (to anything, e.g. "{{para|left|1}}")
}}or by specifying "'''float=left'''" (or float=center).</tt>
{{I}}or {{para|float|left}} (or {{para|float|center}})
{{Documentation}}
{{documentation}}
</div></noinclude>
</noinclude>

Revision as of 23:47, 2 December 2008

FixBunching (FixHTML) can be used for left float HTML elements by defining either of two parameters: Template:ITemplate:Para (to anything, e.g. "Template:Para") Template:Ior Template:Para (or Template:Para)

[create] Template documentation