Help:Table: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
m (Text replacement - "\[\[[Cc]ategory:([^\]\n]+)\]\]↵{{[Ss]hortcut\|([^}\n]+)}}" to "{{Shortcut|$2}} Category:$1") |
mNo edit summary |
||
Line 1: | Line 1: | ||
The following shows you how to create a table. | The following shows you how to create a table. | ||
==Code== | == Code == | ||
To create a table, you will first need to understand what the symbols mean: | To create a table, you will first need to understand what the symbols mean: | ||
* | *<code><nowiki>{|</nowiki></code> - Signifies the start of a table. | ||
* | *<code><nowiki>|}</nowiki></code> - Signifies the end of a table. | ||
* | *<code><nowiki>|+</nowiki></code> - Signifies the caption of a table; what text will appear above it, labeling it. | ||
* | *<code><nowiki>|-</nowiki></code> - Signifies the start of a table row. | ||
* | *<code><nowiki>|</nowiki></code> - Signifies the start of a regular table cell. | ||
* | *<code><nowiki>!</nowiki></code> - Signifies the start of a header table cell. The text within a header cell is boldfaced. | ||
* | *<code><nowiki>||</nowiki></code> - Signifies the switch to a new cell within a row. | ||
* | *<code><nowiki>!!</nowiki></code> - Signifies the switch to a new header cell within a row. | ||
==Usage== | === Usage === | ||
Here is how you would use these symbols appropriately: | Here is how you would use these symbols appropriately: | ||
<pre> | <pre> | ||
{| | {| | ||
|+ This is the caption for my table. | |+ This is the caption for my table. | ||
|- | |- | ||
! These !! are !! my !! table !! headers | ! These !! are !! my !! table !! headers | ||
|- | |- | ||
| These || are || my || regular || cells | | These || are || my || regular || cells | ||
|} | |} | ||
</pre> | </pre> | ||
== Example table == | == Example table == | ||
{| | {| class="wikitable" | ||
!# | ! # | ||
!Preview | ! Preview | ||
!Event | ! Event | ||
!Player's | ! Player's characters | ||
! | ! In-game description | ||
!Stage | ! Stage | ||
|- | |- | ||
| 1 | |||
| [[File:Events01.png|85px]] | |||
| Two Trouble Kings | |||
|[[Mario]] and [[Kirby]] | | [[Mario]] and [[Kirby]] | ||
|''Now there are TWO greedy kings? Having a buddy doesn't change their natures.'' (KO Bowser and King Dedede) | | ''Now there are TWO greedy kings? Having a buddy doesn't change their natures.'' (KO Bowser and King Dedede) | ||
|[[Delfino Plaza]] | | [[Delfino Plaza]] | ||
|- | |- | ||
| 2 | |||
| [[File:C-02.png|85px]] | |||
| Master the Pokémon Tag Battle | |||
|[[Pokémon Trainer]] and [[Pikachu]] | | [[Pokémon Trainer]] and [[Pikachu]] | ||
|''The Pokemon tournament's final challenge. Your rivals have the same Pokemon!'' (KO rival Pokemon Trainer, and Pikachu) | | ''The Pokemon tournament's final challenge. Your rivals have the same Pokemon!'' (KO rival Pokemon Trainer, and Pikachu) | ||
|[[Pokémon Stadium 2]] | | [[Pokémon Stadium 2]] | ||
|- | |- | ||
| 3 | |||
| [[File:C-03.png|85px]] | |||
| Fastest, Shortest, Sudden Death | |||
|[[Yoshi]] and [[King Dedede]] | | [[Yoshi]] and [[King Dedede]] | ||
|''Only ten seconds left?! Beat as many foes as you can in Super Sudden Death and live!'' (survive 10 seconds at 300% damage) | | ''Only ten seconds left?! Beat as many foes as you can in Super Sudden Death and live!'' (survive 10 seconds at 300% damage) | ||
|[[WarioWare, Inc. (stage)|WarioWare, Inc.]] | | [[WarioWare, Inc. (stage)|WarioWare, Inc.]] | ||
|- | |- | ||
| 4 | |||
| [[File:C-04.png|85px]] | |||
| The DK Tag Calamity | |||
|[[Donkey Kong]] and [[Diddy Kong]] | | [[Donkey Kong]] and [[Diddy Kong]] | ||
|''DK and Diddy got tiny! Use lightning to help deal the final blow!'' (defeat all enemies while many Lightning Bolt items appear) | | ''DK and Diddy got tiny! Use lightning to help deal the final blow!'' (defeat all enemies while many Lightning Bolt items appear) | ||
|[[Mario Circuit]] | | [[Mario Circuit]] | ||
|} | |} | ||
===Source code=== | === Source code === | ||
Here is the source code of the above table: | Here is the source code of the above table: | ||
<pre> | <pre> | ||
{| | {| class="wikitable" | ||
!# | ! # | ||
!Preview | ! Preview | ||
!Event | ! Event | ||
!Player's | ! Player's characters | ||
! | ! In-game description | ||
!Stage | ! Stage | ||
|- | |- | ||
| 1 | |||
| [[File:Events01.png|85px]] | |||
| Two Trouble Kings | |||
|[[Mario]] and [[Kirby]] | | [[Mario]] and [[Kirby]] | ||
|''Now there are TWO greedy kings? Having a buddy doesn't change their natures.'' (KO Bowser and King Dedede) | | ''Now there are TWO greedy kings? Having a buddy doesn't change their natures.'' (KO Bowser and King Dedede) | ||
|[[Delfino Plaza]] | | [[Delfino Plaza]] | ||
|- | |- | ||
| 2 | |||
| [[File:C-02.png|85px]] | |||
| Master the Pokémon Tag Battle | |||
|[[Pokémon Trainer]] and [[Pikachu]] | | [[Pokémon Trainer]] and [[Pikachu]] | ||
|''The Pokemon tournament's final challenge. Your rivals have the same Pokemon!'' (KO rival Pokemon Trainer, and Pikachu) | | ''The Pokemon tournament's final challenge. Your rivals have the same Pokemon!'' (KO rival Pokemon Trainer, and Pikachu) | ||
|[[Pokémon Stadium 2]] | | [[Pokémon Stadium 2]] | ||
|- | |- | ||
| 3 | |||
| [[File:C-03.png|85px]] | |||
| Fastest, Shortest, Sudden Death | |||
|[[Yoshi]] and [[King Dedede]] | | [[Yoshi]] and [[King Dedede]] | ||
|''Only ten seconds left?! Beat as many foes as you can in Super Sudden Death and live!'' (survive 10 seconds at 300% damage) | | ''Only ten seconds left?! Beat as many foes as you can in Super Sudden Death and live!'' (survive 10 seconds at 300% damage) | ||
|[[WarioWare, Inc. (stage)|WarioWare, Inc.]] | | [[WarioWare, Inc. (stage)|WarioWare, Inc.]] | ||
|- | |- | ||
| 4 | |||
| [[File:C-04.png|85px]] | |||
| The DK Tag Calamity | |||
|[[Donkey Kong]] and [[Diddy Kong]] | | [[Donkey Kong]] and [[Diddy Kong]] | ||
|''DK and Diddy got tiny! Use lightning to help deal the final blow!'' (defeat all enemies while many Lightning Bolt items appear) | | ''DK and Diddy got tiny! Use lightning to help deal the final blow!'' (defeat all enemies while many Lightning Bolt items appear) | ||
|[[Mario Circuit]] | | [[Mario Circuit]] | ||
|} | |} | ||
</pre> | </pre> |
Revision as of 15:03, January 25, 2024
The following shows you how to create a table.
Code
To create a table, you will first need to understand what the symbols mean:
{|
- Signifies the start of a table.|}
- Signifies the end of a table.|+
- Signifies the caption of a table; what text will appear above it, labeling it.|-
- Signifies the start of a table row.|
- Signifies the start of a regular table cell.!
- Signifies the start of a header table cell. The text within a header cell is boldfaced.||
- Signifies the switch to a new cell within a row.!!
- Signifies the switch to a new header cell within a row.
Usage
Here is how you would use these symbols appropriately:
{| |+ This is the caption for my table. |- ! These !! are !! my !! table !! headers |- | These || are || my || regular || cells |}
Example table
# | Preview | Event | Player's characters | In-game description | Stage |
---|---|---|---|---|---|
1 | Two Trouble Kings | Mario and Kirby | Now there are TWO greedy kings? Having a buddy doesn't change their natures. (KO Bowser and King Dedede) | Delfino Plaza | |
2 | Master the Pokémon Tag Battle | Pokémon Trainer and Pikachu | The Pokemon tournament's final challenge. Your rivals have the same Pokemon! (KO rival Pokemon Trainer, and Pikachu) | Pokémon Stadium 2 | |
3 | Fastest, Shortest, Sudden Death | Yoshi and King Dedede | Only ten seconds left?! Beat as many foes as you can in Super Sudden Death and live! (survive 10 seconds at 300% damage) | WarioWare, Inc. | |
4 | The DK Tag Calamity | Donkey Kong and Diddy Kong | DK and Diddy got tiny! Use lightning to help deal the final blow! (defeat all enemies while many Lightning Bolt items appear) | Mario Circuit |
Source code
Here is the source code of the above table:
{| class="wikitable" ! # ! Preview ! Event ! Player's characters ! In-game description ! Stage |- | 1 | [[File:Events01.png|85px]] | Two Trouble Kings | [[Mario]] and [[Kirby]] | ''Now there are TWO greedy kings? Having a buddy doesn't change their natures.'' (KO Bowser and King Dedede) | [[Delfino Plaza]] |- | 2 | [[File:C-02.png|85px]] | Master the Pokémon Tag Battle | [[Pokémon Trainer]] and [[Pikachu]] | ''The Pokemon tournament's final challenge. Your rivals have the same Pokemon!'' (KO rival Pokemon Trainer, and Pikachu) | [[Pokémon Stadium 2]] |- | 3 | [[File:C-03.png|85px]] | Fastest, Shortest, Sudden Death | [[Yoshi]] and [[King Dedede]] | ''Only ten seconds left?! Beat as many foes as you can in Super Sudden Death and live!'' (survive 10 seconds at 300% damage) | [[WarioWare, Inc. (stage)|WarioWare, Inc.]] |- | 4 | [[File:C-04.png|85px]] | The DK Tag Calamity | [[Donkey Kong]] and [[Diddy Kong]] | ''DK and Diddy got tiny! Use lightning to help deal the final blow!'' (defeat all enemies while many Lightning Bolt items appear) | [[Mario Circuit]] |}
To use this coding successfully, just copy it, paste it on the article you need it for, and fill in the individual information.