Help:Wikicode

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search

This article will explain the basics of wikicode, giving examples of the various techniques used to make the many pages on Bulbapedia. While this may be helpful, however, the best way to learn is to look at the coding on a page to see how it is done, and modify it to see how it changes-- just make sure to make any modifications in a sandbox and use the preview button!

Frequently used text formatting

Edit box code Page appearance
Apostrophes can alter the appearance of text:
*''This is italic text''
*'''This is bold text'''
*'''''This is bold italic text'''''
But watch out that you put the right amount!
*''''This is bold text with badly-formatted apostrophes of fail''''
Apostrophes can alter the appearance of text:
  • This is italic text
  • This is bold text
  • This is bold italic text

But watch out that you put the right amount!

  • 'This is bold text with badly-formatted apostrophes of fail'
You can also indent things!
:Make this line indent once...
::or twice...
::::::::::::or twelve times!
 Just don't do this to indent or you fail at wiki.
You can also indent things!
Make this line indent once...
or twice...
or twelve times!
Just don't do this to indent or you fail at wiki.

Links

Basic link

To link to an article with the same name as the text, put [[ before the text to be linked and ]] after the text.

Example:

[[Vermilion City]]

Will make:

Vermilion City

Piped link

To link to an article with a different name as the text, put [[ before the text to be linked and ]] after it, but, right after the [[, put the title of the article followed by a |.

Example:

[[Ash's Pikachu|his Pikachu]]

Will make:

his Pikachu

Shortlinks

Main article: Bulbapedia:List of link templates

These must be used in articles when necessary.

Example: {{p|Pikachu}}

Will result in:

Pikachu

Instead of:

Pikachu

Interwiki links

Interwiki links can be used to link to other wikis affiliated with Bulbapedia, such as Bulbagarden Archives, Bulbanews, Wikipedia, other members of Encyclopædiæ Pokémonis, and other members of NIWA. To link to another wiki, simply use square brackets like a normal link, but place the prefix at the start of the link.

When linking to an Encyclopædiæ Pokémonis member via this method, there must be a colon : before the prefix, or it will not link correctly.

Example:

[[wp:Pokémon|Pokémon]]

Will make:

Pokémon

Note: most interwiki prefixes have identically named templates, so to link to Wikipedia's article on Pokémon, it can be achieved by typing [[wp:Pokémon|Pokémon]] or {{wp|Pokémon}}.

Incomplete list of interwiki prefixes

Bulbagarden Archives a
Animal Crossing Wiki acw
Bulbapedia (for Bulbanews/Bulbagarden Archives) a
PokéWiki :de
Donkey Kong Wiki dk
Pokéteca :es
Poképédia :fr
Pokémon Central Wiki :it
Pokémon Wiki :ja
Lylat Wiki lw
Metroid Wiki met
MediaWiki mw
Bulbanews n
Pikipedia pk
Wikinezka :pl
LANDpedia :pt
SmashWiki sbw
Super Mario Wiki smw
StrategyWiki strategy
WikiBound wb
Wiktionary wiktionary
WiKirby wk
Wikipedia wp
Wars Wiki ww
Zelda Wiki zw

Incomplete link

When using interwiki links or linking to pages not in the main namespace, typing [[prefix:Link name|]] causes it to be substituted by [[prefix:Link name|Link name]] after saving the page.

Example:

[[Template:Welcome|]]

Will be substituted to:

[[Template:Welcome|Welcome]]

Will make:

Welcome

External link

To link to a page outside Bulbapedia and give it a name, write the URL, a space, the name, then finally put brackets around everything, like so: put [ before the url and name and ] after it.

Example:

[http://www.pokemon.com/us/ Official Pokémon website]

Will make:

Official Pokémon website

To link to an external page without giving it a specific name, simply write the URL without any brackets or spaces, like so: http://www.pokemon.com/us/

However, an external picture not in the archives may also be placed with exactly the same technique:

Example: http://archives.bulbagarden.net/w/upload/0/0a/025.png

Result:025.png

Note that this is not to be done in mainspace articles.

Table

To make a table, first type {| at the beginning of a new line. Then, on each line after that, put a | before the text, to make it be part of the table, on the same row. To make a new row, type |- on a new line and continue like normal. To end the table, type, on a new line, |}

Example:

{|
|Bulbasaur
|Grass
|-
|Charmander
|Fire
|-
|Squirtle
|Water
|}

Will make:

Bulbasaur Grass
Charmander Fire
Squirtle Water

Categories

To add a page to a category, put [[Category:(category name)]] anywhere on the page, though in almost all cases it is better to put them near the bottom of the page for the convenience of other editors. This will add the category of the page to the bottom, as well as put a link to that page on the category's page.

Example: [[Category:Trainers]] would add this page to the category of Trainers.

To link to a category without , put a colon before "Category" in the link. For example, to link to the category "Trainers", [[:Category:Trainers]] would give the category without adding this page to the Trainers category.

Personal CSS

It is possible for each user to customize their CSS to change the appearance of Bulbapedia. The changes only take effect for a user when he/she is logged in. To edit the CSS, a user should type in "User:username/monobook.css". IMPORTANT:The word "monobook" MUST be lowercase!

The user can then create an addition to the Bulbapedia CSS. An example of some personal CSS is:

.googleContent {display: none}
.firstHeading {position: absolute; top: 63px; width: 900px}
#bodyContent {position: absolute; top: 101px; width: 900px}
.pBody {background: transparent; border: none}
#p-personal {position: fixed; top: 0px; z-index: 100}
#p-navigation {position: fixed; top: 159px; z-index: 100}
#p-search {position: fixed; top: 297px; z-index: 100}
#p-tb {position: fixed; top: 365px; z-index: 100}
#p-lang {position: fixed; top: 507px; z-index: 100}
#footer {display: none}

This CSS will hide the ads while keeping the header at the top of the page the same distance from the top. It also hides the footer and causes the userbar at the top (User, my talk, my preferences, my watchlist, my contributions, log out) and the navigation, search, and toolbox menus on the left to stay in the same position even when the user scrolls down, eliminating the need to scroll back to the top of the page to go to a new page or go to his/her userpage.

Undoing an edit

This action should be taken in the case of a vandal or a mistake. To do this, click on the history tab at the top of the page (one can also press the 'Alt' button and 'h' at the same time and then press 'enter'). Then, from the list, select the edit that needs to be undone. Click 'Save Page' and the action is complete. As complicated as this might be, this should be done as quickly as possible in the case of a vandal.

Headings

In order to make a heading, type two = before and after your heading on a new line. For instance ==Example Heading== will look like

Example Heading

THIS IS AN EXAMPLE

Sub-headings

In order to make a sub-heading, type three = before and after your heading on a new line. For instance, ===Example Sub-heading=== will look like

Example Sub-heading

THIS IS AN EXAMPLE

Not Encoding Things

This is helpful on pages that teach users how to encode text. To un-encode text, type "code <> and immediatly after doing that type "nowiki" between <> then type the code that shouldn't be coded. After typing the code, type </nowiki> immideatly followed by . If you do it right, then <code><nowiki>'''Example'''</nowiki> will look like '''Example''' instead of Example. If this seems to complicated, simply click the button on the editing bar that looks like a W with a red line through it and type the text.

Making Bulleted Lists

To make a bulleted list, type a * before a new line. For example,
* Bulbasaur
* Squirtle
* Charmander
This should come out as:

  • Bulbasaur
  • Squirtle
  • Charmander

To make indents with bullets, put more *s, depending on how much you want to indent it.
**Bulbasaur
***Charmander
****Squirtle
This comes out as:

    • Bulbasaur
      • Charmander
        • Squirtle

See Also

Wikimedia's editing help page.