Changes

3,017 bytes added ,  17:20, 20 June 2018
Created page with "Infoboxes are tables that are made to look like Wikipedia's Infoboxes (seen below) <gallery> wikibox.png|Wikipedia's Infobox infobox.png|RGDWiki's Infobox </gallery> == Infob..."
Infoboxes are tables that are made to look like Wikipedia's Infoboxes (seen below)
<gallery>
wikibox.png|Wikipedia's Infobox
infobox.png|RGDWiki's Infobox
</gallery>

== Infobox Code ==
This is the infobox code, which, as you can see, is just a oddly formatted table.
<pre>
{| class="wikitable" style="float:right;
!Infobox

[[File:example.png|Example Image]]
|-
| '''Data 0:''' TEXT

'''Data 1:''' TEXT

'''Data 2:''' TEXT

'''Data 3:''' TEXT

'''Data 4:''' TEXT

'''Data 5:''' TEXT

[https://www.example.com Example Link]
|}
</pre>
== Infobox Example ==

{| class="wikitable" style="float:right;
!Wii Backup Disc

[[File:Backup disc.png|The alleged Wii Backup Disc.]]
|-
| '''Disc Internal Name:''' Unknown

'''Disc TID:''' 410(E01) for v1.31

'''Disc IOS:''' 16

'''Disc Release Date:''' Unknown

'''Disc Build Date:''' Unknown

'''Disc Apploader:''' Unknown

[https://gametdb.com/Wii/410E01 GameTDB Page]
|}
This is an actual Infobox used on the RGDWiki. [https://wiki.mariocube.xyz/index.php/Wii_Backup_Disc It is used here.]
<pre>
{| class="wikitable" style="float:right;
!Wii Backup Disc

[[File:Backup disc.png|The alleged Wii Backup Disc.]]
|-
| '''Disc Internal Name:''' Unknown

'''Disc TID:''' 410(E01) for v1.31

'''Disc IOS:''' 16

'''Disc Release Date:''' Unknown

'''Disc Build Date:''' Unknown

'''Disc Apploader:''' Unknown

[https://gametdb.com/Wii/410E01 GameTDB Page]
|}
</pre>
As you can see, it has now aligned to the right. All text will go around it, so do not worry about that.
== Problems ==
=== When the image is too big ===
The below code should output an infobox with an oversized image.
<pre>
{| class="wikitable" style="float:right;
!Title

[[File:example.png|Hovertext]]
|-
| '''Information Name:''' Information

'''Information Name:''' Information

'''Information Name:''' Information

[https://www.example.com Link]
|}
</pre>
{| class="wikitable" style="float:right;
!Infobox with Oversized Image

[[File:example.png|Hovertext]]
|-
| '''Information Name:''' Information

'''Information Name:''' Information

'''Information Name:''' Information

[https://www.example.com Link]
|}

On the right you can see what it loo- Uh oh! That's too big! to change the size of the image, add |200px|200px| or something similar to make images smaller. If the image is still too large or now too small, lower/higher the 200s to a lower/higher number respectively.
==== (Better) Code ====
<pre>
{| class="wikitable" style="float:right;
!Title

[[File:example.png|200px|200px|Hovertext]]
|-
| '''Information Name:''' Information

'''Information Name:''' Information

'''Information Name:''' Information

[https://www.example.com Link]
|}
</pre>
{| class="wikitable" style="float:right;
!Infobox with proper-sized Image

[[File:example.png|200px|200px|Hovertext]]
|-
| '''Information Name:''' Information

'''Information Name:''' Information

'''Information Name:''' Information

[https://www.example.com Link]
|}
==== Outcome ====
As you can see on the right, we now have a much better-sized image.
92

edits