Template:Float/doc

From translatewiki.net
This is the documentation subpage for the parent Template:Float page.
Usage:
Position a block of contents to make it floatting along the left or right margin.
Syntax:
  • {{Float|position|content}}
  • {{Float|position|content|
    style = styles }}
Parameters:
  • style= (optional) additional styles for the div container
  • 1= (required) one of: left, right, none, inline-start, inline-end, inherit, initial, unset (see CSS: Cascading Style Sheetsfloat on MDN Web Docs)
  • 2= (required) block content (if this is empty, no floatting block will be generated)
Example:
  • {{Float|right|Sample block.}}

generates:

Sample block.
See also: