Jump to content

Template:Float

From translatewiki.net
The documentation of this template is included from its /doc subpage.
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: