ਫਰਮਾ:FloatDescriptionThis template is used to position text or elements to the rightmost/leftmost of a page/area, without changing the alignment or formatting of other text and elements nearby. Whatever you float with this template will cover up anything underneath it. Text will wrap underneath this template, not around it. For aligning text in general, see {{align}}. For floating images, boxes, and other elements in a way that text wraps around instead of beneath, see {{stack}}. UsageThese are the standard usage:
More configuration:
All parameters are optional. The parameters The optional parameters Any established HTML/CSS units may be used, for example, BewareBeware when using this template in navboxes. Please ensure whatever it floats (e.g. an image) does not float over other elements or text, even after the navbox is resized. To align centered lists in a navbox with an image, see the alternatives for navigational boxes section below. ExamplesNote how the links in the second two examples are centered relative to the whole template, unlike those in the first example. Example 1 (without float)This is a navbox using its image parameter: The code used in the above example {{Navbox | name = Float/doc | state = uncollapsed | title = [[Imperial Japanese Navy]] | listclass = hlist | image = [[File:Naval Ensign of Japan.svg|24px|border|Naval Ensign of Japan]] | list1 = * [[Imperial Japanese Navy admirals|Admirals]] * [[Battles of the Imperial Japanese Navy|Battles]] * [[List of ships of the Japanese Navy|Ships]] * [[List of aircraft of the Japanese Navy|Aircraft]] * [[List of weapons of the Japanese Navy|Weapons]] }} Example 2 (with float)We use {{float}} instead of the navbox's image parameter: The code used in the above example {{Navbox | name = Float/doc | state = uncollapsed | title = [[Imperial Japanese Navy]] | listclass = hlist | list1 = {{float|[[File:Naval Ensign of Japan.svg|24px|border|Naval Ensign of Japan]]}} * [[Imperial Japanese Navy admirals|Admirals]] * [[Battles of the Imperial Japanese Navy|Battles]] * [[List of ships of the Japanese Navy|Ships]] * [[List of aircraft of the Japanese Navy|Aircraft]] * [[List of weapons of the Japanese Navy|Weapons]] }} Example 3 (with float and custom values)We use {{float}} with a custom value of The code used in the above example {{Navbox | name = Float/doc | state = uncollapsed | title = [[Imperial Japanese Navy]] | listclass = hlist | list1 = {{float|top=0.5em|[[File:Naval Ensign of Japan.svg|24px|border|Naval Ensign of Japan]]}} * [[Imperial Japanese Navy admirals|Admirals]] * [[Battles of the Imperial Japanese Navy|Battles]] * [[List of ships of the Japanese Navy|Ships]] * [[List of aircraft of the Japanese Navy|Aircraft]] * [[List of weapons of the Japanese Navy|Weapons]] }} Alternatives for navigational boxesWe use its image parameter and liststyle with padding-left set to the image width: The code used in the above example {{Navbox | name = Float/doc | state = uncollapsed | title = [[Imperial Japanese Navy]] | listclass = hlist | image = [[File:Naval Ensign of Japan.svg|24px|border|Naval Ensign of Japan]] | liststyle = padding-left: 24px | list1 = * [[Imperial Japanese Navy admirals|Admirals]] * [[Battles of the Imperial Japanese Navy|Battles]] * [[List of ships of the Japanese Navy|Ships]] * [[List of aircraft of the Japanese Navy|Aircraft]] * [[List of weapons of the Japanese Navy|Weapons]] }} See also
|
Portal di Ensiklopedia Dunia