Anonymous user
Template:Float/doc: Difference between revisions
update (primarily to introduce {{float|left|...}})
m (Detele interwiki -> wikidata) |
(update (primarily to introduce {{float|left|...}})) |
||
Line 1:
{{
<!---PLEASE ADD METADATA TO THE <includeonly> SECTION AT THE BOTTOM OF THIS PAGE--->
{{
Use
* <code><nowiki>{{float |top= |right= |bottom= |left= |width= |</nowiki>{{bigger|{{smallcaps|item}}}}}}</code>
===Examples===
Note how the links in the second two examples are centered relative to the whole template, unlike those in the first example.
; Example 1
One-line [[Template:Navbox|navbox]] using its image parameter:
{{Navbox
| name
| state = uncollapsed
| title = [[Imperial Japanese Navy]]
Line 28 ⟶ 29:
* [[List of weapons of the Japanese Navy|Weapons]]
}}
{{
<pre>
{{Navbox
| name
| state = uncollapsed
| title = [[Imperial Japanese Navy]]
Line 44 ⟶ 45:
}}
</pre>
{{
; Example 2
Same navbox using
{{Navbox
| name
| state = uncollapsed
| title = [[Imperial Japanese Navy]]
Line 60 ⟶ 61:
* [[List of weapons of the Japanese Navy|Weapons]]
}}
{{
<pre>
{{Navbox
| name
| state = uncollapsed
| title = [[Imperial Japanese Navy]]
Line 75 ⟶ 76:
}}
</pre>
{{
== Alternatives for navigational boxes ==
Line 93 ⟶ 94:
* [[List of weapons of the Japanese Navy|Weapons]]
}}
{{
<pre>
{{Navbox
Line 110 ⟶ 111:
}}
</pre>
{{
<includeonly>
|