×
Create a new article
Write your page title here:
We currently have 22 articles on The Grand Library of Hylia. Type your article name above or click on one of the titles below and start writing!



The Grand Library of Hylia
Revision as of 16:46, 9 December 2023 by ZoeySaurusRawr (talk | contribs) (Created page with "<onlyinclude>{{#switch: {{{1|}}} | left = <div style="float: left; margin-right: {{{pad|1em}}}; {{{style|}}}"> | right = <div style="float: right; margin-left: {{{pad|1em}}}; {{{style|}}}"> | center = <div style="text-align: center; margin: auto; {{{style|}}}"> | end = </div> }}{{#if: {{{2|}}}|{{{2}}}</div>|}}</onlyinclude> ==Purpose== This template slightly simplifies floating sections of wikitext to one side of the page. It also allows a more intuitive way of centerin...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Purpose

This template slightly simplifies floating sections of wikitext to one side of the page. It also allows a more intuitive way of centering.

Usage

{{Float| side | content }}

  • side — Which direction to float. Valid values are left, right, and center.
  • content — The content to be floated. (Optional.)

Sometimes it is inconvenient to pass the content as a parameter, such as when it includes pipe characters ( | ) or equal signs ( = ). In these cases, omit the "content" parameter and place the content directly after and outside of the {{Float| side }} template, followed by {{Float| end }}.

To push text below the floated block, see {{Clear}}.

Some additional styling options are available:

{{Float| side | pad= | style= | content }}

  • pad — How much space between the floated block and the surrounding content. Must include a unit such as 'em' or 'px'. (Optional. Default: 1em)
  • style — Hook for additional style control. (Optional.)