Anonymous user
Template:Float/doc: Difference between revisions
m
wikify and add an example
No edit summary |
m (wikify and add an example) |
||
Line 12:
'''One-line [[Template:Navbox|navbox]] using its image parameter:'''
{{Navbox
| name = Float/doc
| state =
| title = [[Imperial Japanese Navy]]
| listclass = hlist
| image = [[
| list1 =
[[Imperial Japanese Navy admirals|Admirals]]{{·}}▼
* [[
* [[
* [[List of
* [[List of
* [[List of weapons of the Japanese Navy|Weapons]]
}}
'''Same navbox using <code><nowiki>{{float}}</nowiki></code>:'''
{{Navbox
| name = Float/doc
| state =
| title = [[Imperial Japanese Navy]]
|
| list1 = {{float|top=-0.1em|[[
* [[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]]
}}
'''One-line [[Template:Navbox|navbox]] using its image parameter and liststyle with padding-left set to the image width:'''
Note how the links in the latter are centered relative to the whole template, unlike the former.▼
{{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 =
* [[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]]
}}
▲Note how the links in the
<includeonly>
[[Category:Wikipedia formatting and function templates
[[pt:Predefinição:Float]]
[[tr:Şablon:Float]]
|