Help:Wikicode: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
(→‎Not Encoding Things: I forgot something)
Line 176: Line 176:


==Not Encoding Things==
==Not Encoding Things==
This is helpfull 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 you don't want coded. After your finished typing your code, type </nowiki> immideatly followed by </code>. If you do it right, then <code><nowiki><code><nowiki>'''Example'''</nowiki></code></nowiki></code> will look like <code><nowiki>'''Example'''</nowiki></code> instead of '''Example'''.
This is helpfull 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 </code>. If you do it right, then <code><nowiki><code><nowiki>'''Example'''</nowiki></code></nowiki></code> will look like <code><nowiki>'''Example'''</nowiki></code> 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==
==Making Bulleted Lists==

Revision as of 21:24, 10 December 2008

050Diglett.png This article is incomplete.
Please feel free to edit this article to add missing information and complete it.

This article explains the basics of wikicode and gives examples of various techniques. Of course, the best way to learn how to do something is usually to find an example of a page which has it and copy the code, modifying as necessary. But remember to preview!

Text Formatting

Bolding

To make text bold, place ''' on both sides of the text to be bolded.

Example:

'''Noctowl'''

Will make:

Noctowl

An alternative is using <b>INSERT TEXT HERE</b>.

Italicizing

To italicize text, place '' on both sides of the text to be italicized.

Example:

''Bronzong''

Will make:

Bronzong

Blue box

To put a blue box around a line of text, put a space before the line to have the box.

Example:

 Manaphy

Will make:

Manaphy

Indenting

To indent a line of text, put a colon before the line to be indented.

Example:

:Goldenrod City

Will make:

Goldenrod City

More colons can be added to make the spacing large, but it is recommended to only use this in talk pages and to restart the line of colons after 6.

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: {{AP|Pikachu}}

Will result in:

Pikachu

Instead of:

Pikachu

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://wikipedia.org nifty pages]

Will make:

nifty pages


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

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 it is not recommended to do this 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 Category:Trainers 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 helpfull 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, when put on separate lines, Will make:

  • Bulbasaur
  • Squirtle
  • Charmander