Help:Wikicode: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
m (I think there should be a space between)
mNo edit summary
(38 intermediate revisions by 18 users not shown)
Line 1: Line 1:
{{incomplete}}
{{shortcut|1|H:CODE}}
This article will explain the basics of '''wikicode''' (also known as '''wikitext''' or '''wiki markup'''), 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 use the preview button!


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!
==Layout==
===Sections===
Sections break an article down into more manageable chunks and are created using <code>=</code> to <code>======</code>.


==Text Formatting==
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
===Bolding===
|-
To make text bold, place <nowiki>'''</nowiki> on both sides of the text to be bolded.
! Markup
! style="width: 300px;" | Result
|- style="background: #FFF;"
| style="{{roundybl|6px}};" | <pre>==Level 2==
===Level 3===
====Level 4====
=====Level 5=====
======Level 6======</pre>
| style="padding: 5px; {{roundybr|6px}};" | <div style="font-size: 150%; font-family: sans-serif; margin-top: 1em; margin-bottom: 0.25em; line-height: 1.3; padding: 0; border-bottom: 1px solid #AAAAAA;">Level 2</div>
<div style="font-size: 128%; font-weight: bold; margin-top: 0.3em; margin-bottom: 0; line-height: 1.5; padding-top: 0.5em; padding-bottom: 0;">Level 3</div>
<div style="font-size: 116%; font-weight: bold; margin-top: 0.3em; margin-bottom: 0; line-height: 1.6; padding-top: 0.5em; padding-bottom: 0;">Level 4</div>
<div style="font-size: 108%; font-weight: bold; margin-top: 0.3em; margin-bottom: 0; line-height: 1.6; padding-top: 0.5em; padding-bottom: 0;">Level 5</div>
<div style="font-size: 100%; font-weight: bold; margin-top: 0.3em; margin-bottom: 0; line-height: 1.6; padding-top: 0.5em; padding-bottom: 0;">Level 6</div>
|}


Example:
* A single <code>=</code> is styled as the article title and should not be used within an article.
* Headings are styled through CSS and add an <code>[edit]</code> link.
* Four or more headings cause a [[#Table of contents|table of contents]] to be generated automatically.
* Do not use <em>any</em> markup after the final <code>=</code> – this will either break the heading, or will cause the heading to not be included in an edit summary.


<code><nowiki>'''Noctowl'''</nowiki></code>
'''HTML'''


Will make:
Headings can also be created by using HTML elements.
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|-
! Markup
! style="width: 300px;" | Result
|- style="background: #FFF;"
| style="{{roundybl|6px}};" | <pre><h2>Level 2</h2>
<h3>Level 3</h3>
<h4>Level 4</h4>
<h5>Level 5</h5>
<h6>Level 6</h6></pre>
| style="padding: 5px; {{roundybr|6px}};" | <div style="font-size: 150%; font-family: sans-serif; margin-top: 1em; margin-bottom: 0.25em; line-height: 1.3; padding: 0; border-bottom: 1px solid #AAAAAA;">Level 2</div>
<div style="font-size: 128%; font-weight: bold; margin-top: 0.3em; margin-bottom: 0; line-height: 1.5; padding-top: 0.5em; padding-bottom: 0;">Level 3</div>
<div style="font-size: 116%; font-weight: bold; margin-top: 0.3em; margin-bottom: 0; line-height: 1.6; padding-top: 0.5em; padding-bottom: 0;">Level 4</div>
<div style="font-size: 108%; font-weight: bold; margin-top: 0.3em; margin-bottom: 0; line-height: 1.6; padding-top: 0.5em; padding-bottom: 0;">Level 5</div>
<div style="font-size: 100%; font-weight: bold; margin-top: 0.3em; margin-bottom: 0; line-height: 1.6; padding-top: 0.5em; padding-bottom: 0;">Level 6</div>
|}


'''Noctowl'''
These should not normally be used on articles, and are instead used within [[Help:Templates|templates]], as they do not include <code>[edit]</code> links.


An alternative is using <code><nowiki><b></nowiki>INSERT TEXT HERE<nowiki></b></nowiki></code>.
===Horizontal rule===
The horizontal rule represents a paragraph-level thematic break. Do not use in article content, as rules are used only after main sections, and this is automatic.
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|-
! Markup
! style="width: 300px;" | Result
|- style="background: #FFF;"
| style="text-align: center;" | <pre>----</pre>  
|
----
|- style="background: #FFF;"
| style="{{roundybl|6px}};" | <pre><hr /></pre>
| style="{{roundybr|6px}};" | <hr />
|}


===Italicizing===
Horizontal rules are achieved with wikicode or HTML. However, <code>----</code> must always be at the start of a line, whereas <code><nowiki><hr /></nowiki></code> can be used anywhere.
To italicize text, place <nowiki>''</nowiki> on both sides of the text to be italicized.


Example:
===Table of contents===
{{shortcut|1|H:TOC}}
When a page has at least four headings, a table of contents (TOC) will automatically appear after the lead and before the first heading. The TOC can be controlled by magic words:
* <code><nowiki>__FORCETOC__</nowiki></code> forces the TOC to appear at the normal location regardless of the number of headings.
* <code><nowiki>__TOC__</nowiki></code> forces the TOC to appear at the point where the magic word is inserted instead of the normal location.
* <code><nowiki>__NOTOC__</nowiki></code> disables the TOC entirely.


<code><nowiki>''Bronzong''</nowiki></code>
===Line breaks===
Line breaks or newlines are used to add whitespace between lines, such as separating paragraphs.
* A line break that is visible in the content is inserted by pressing Enter twice.
* Pressing Enter once will place a line break in the markup, but it will not show in the rendered content, except when using list markup.
* Markup such as bold or italics will be terminated at a line break.


Will make:
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|-
! Markup
! Result
|- style="background: #FFF;"
| style="{{roundybl|6px}};" | <pre>A single newline here
has no effect on the layout.


''Bronzong''
But an empty line starts a new paragraph,
or ends a list or an indented part.</pre>
| style="padding: 5px; {{roundybr|6px}};" |
A single newline here
has no effect on the layout.


===Blue box===
But an empty line starts a new paragraph,  
To put a blue box around a line of text, put a space before the line to have the box.
or ends a list or an indented part.
|}


Example:
Line breaks can also be created with <code><nowiki><br /></nowiki></code> and {{template|-}}.
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|-
! Markup
! Result
|- style="background: #FFF;"
| <pre>Here is some text about Pokémon.<br /> Here is some more text about Pokémon.</pre>
| style="padding: 5px;" | Here is some text about Pokémon.<br /> Here is some more text about Pokémon.
|- style="background: #FFF;"
| style="{{roundybl|6px}};" | <pre>Here is some text about Pokémon.{{-}} Here is some more text about Pokémon.</pre>
| style="padding: 5px; {{roundybr|6px}};" | Here is some text about Pokémon.{{-}} Here is some more text about Pokémon.
|}
{{template|-}} adds a break with styling, to clear floating elements. This is often used to prevent text from flowing next to unrelated tables, images or templates.


<code>&nbsp;Manaphy</code>
===Indented text===
Indented text is most commonly used on talk pages to help keep track of replies.
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|-
! Markup
! Result
|- style="background: #FFF;"
| style="{{roundybl|6px}};" | <pre>Indentation as used on talk pages:
:Each colon at the start of a line
::causes the line to be indented by three more character positions.
:::(The indentation persists
so long as no carriage return or line break is used.)
:::Repeat the indentation at any line break.
::::Use an extra colon for each response.
:::::And so forth...
::::::And so on...</pre>  
| style="{{roundybr|6px}}; padding: 5px;" | Indentation as used on talk pages:
:Each colon at the start of a line
::causes the line to be indented by three more character positions.
:::(The indentation persists
so long as no carriage return or line break is used.)
:::Repeat the indentation at any line break.
::::Use an extra colon for each response.
:::::And so forth...
::::::And so on...
|}


Will make:
===Blockquote===
Blockquotes are useful when there is a need to separate a block of text, such as (as the name suggests) inserting a large quote into an article.
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|-
! Markup
! Result
|- style="background: #FFF;"
| style="{{roundybl|6px}};" | <pre>Text before
<blockquote>
<p>Quoted paragraph</p>
<p>Name, Source, Reference</p>
</blockquote>
Text after</pre>
| style="{{roundybr|6px}}; padding: 5px;" | Text before
<blockquote>
<p>Quoted paragraph</p>
<p>Name, Source, Reference</p>
</blockquote>
Text after
|}
 
===Lists===
{{shortcut|1|H:LIST}}
Do not leave blank lines between items in a list unless there is a reason to do so, since this causes the MediaWiki software to interpret each item as beginning a new list.
====Unordered lists====
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|-
! Markup
! Result
|- style="background: #FFF;"
| style="{{roundybl|6px}};" | <pre>* Item 1
* Item 2
* Item 3
* Item 4
** Sub-item 1
*** Sub-sub-item
**** Sub-sub-sub-item
** Sub-item 2
* Item 5</pre>
| style="{{roundybr|6px}}; padding: 5px;" |
* Item 1
* Item 2
* Item 3
* Item 4
** Sub-item 1
*** Sub-sub-item
**** Sub-sub-sub-item
** Sub-item 2
* Item 5
|}
 
====Ordered lists====
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|-
! Markup
! Result
|- style="background: #FFF;"
| style="{{roundybl|6px}};" | <pre># Item 1
# Item 2
# Item 3
# Item 4
## Sub-item 1
### Sub-sub-item
#### Sub-sub-sub-item
## Sub-item 2
# Item 5</pre>
| style="{{roundybr|6px}}; padding-right: 5px;" |
# Item 1
# Item 2
# Item 3
# Item 4
## Sub-item 1
### Sub-sub-item
#### Sub-sub-sub-item
## Sub-item 2
# Item 5
|}
 
It is also possible to set a starting value of an ordered list:
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|-
! Markup
! Result
|- style="background: #FFF;"
| style="{{roundybl|6px}};" | <pre># <li value="7">Item 1</li>
# Item 2
# Item 3
# Item 4</pre>
| style="{{roundybr|6px}}; padding-right: 5px;" |
# <li value="7">Item 1</li>
# Item 2
# Item 3
# Item 4
|}


Manaphy
====Mixed lists====
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|-
! Markup
! Result
|- style="background: #FFF;"
| style="{{roundybl|6px}};" | <pre># Item 1
# Item 2
#* Sub-item 1
#* Sub-item 2
#*# Sub-sub-item 1
#*# Sub-sub-item 2
#* Sub-item 3
#** Sub-sub-item
# Item 3</pre>
| style="{{roundybr|6px}}; padding-right: 5px;" |
# Item 1
# Item 2
#* Sub-item 1
#* Sub-item 2
#*# Sub-sub-item 1
#*# Sub-sub-item 2
#* Sub-item 3
#** Sub-sub-item
# Item 3
|}


===Indenting===
====Description lists====
To indent a line of text, put a colon before the line to be indented.
To list terms and definitions, start a new line with a semicolon <code>;</code> followed by the term. Then, type a colon <code>:</code> followed by a definition. The format can also be used for other purposes, such as make and models of vehicles, etc.


Example:
Description lists consist of group names corresponding to values. Group names (terms) are in bold. Values (definitions) are indented. Each group '''must''' include one or more definitions. For a single or first value, the <code>:</code> can be placed on the same line after <code>;</code>, but subsequent values must be placed on separate lines.
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|-
! Markup
! style="width: 300px;" | Result
|- style="background: #FFF;"
| <pre>; Term : Definition 1</pre>
| style="padding: 5px;" |
; Term : Definition 1
|- style="background: #FFF;"
| style="{{roundybl|6px}};" | <pre>; Term
: Definition 1
: Definition 2
: Definition 3
: Definition 4</pre>
| style="{{roundybr|6px}}; padding: 5px;" |
; Term
: Definition 1
: Definition 2
: Definition 3
: Definition 4
|}


<code><nowiki>:Goldenrod City</nowiki></code>
===Retaining newlines===
The MediaWiki software suppresses single newlines and converts lines starting with a space to preformatted text in a dashed box. It is often desirable to retain these elements for poems and lyrics. <code><nowiki><ab>...</ab></nowiki></code> tags maintain newlines.
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|-
! Markup
! Result
|- style="background: #FFF;"
| style="{{roundybl|6px}};" |
<pre><ab>''I wanna be the very best
Like no one  ever was
To catch them is my real test
To train them is my cause


Will make:
I will travel across the land
Searching far and wide
Teach Pokémon to understand
The power that's inside''</ab></pre>
| style="{{roundybr|6px}}; padding: 5px;" |
<ab>''I wanna be the very best
Like no one ever was
To catch them is my real test
To train them is my cause


:Goldenrod City
I will travel across the land
Searching far and wide
Teach Pokémon to understand
The power that's inside''</ab>
|}


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.
==Text formatting==
{{shortcut|1|H:TEXT}}
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|-
! Description
! Markup
! Result
|- style="background: #FFF;"
| style= "padding: 5px;" | Italics, bold, and both
| <pre>''italics'', '''bold''', and '''''both'''''</pre>
| style= "padding: 5px;" | ''italics'', '''bold''', and '''''both'''''
|- style="background: #FFF;"
| style= "padding: 5px;" | Strikethrough text
| <pre>Use <s>on articles</s> only on talk pages</pre>
| style= "padding: 5px;" | Use <s>on articles</s> only on talk pages
|- style="background: #FFF;"
| style= "padding: 5px;" | Subscript and superscript
| <pre>Make text <sub>subscript</sub> or <sup>superscript</sup> easily</pre>
| style= "padding: 5px;" | Make text <sub>subscript</sub> or <sup>superscript</sup> easily
|- style="background: #FFF;"
| style= "padding: 5px;" | Small text
| <pre>Use <small>small text</small> only when necessary</pre>
| style= "padding: 5px;" | Use <small>small text</small> only when necessary
|- style="background: #FFF;"
| style= "padding: 5px;" | Big text
| <pre>Avoid using <big>big text</big> where possible</pre>
| style= "padding: 5px;" | Avoid using <big>big text</big> where possible
|- style="background: #FFF;"
| style= "padding: 5px;" | Small caps
| <pre>Render text in <sc>Small caps</sc> with ease</pre>
| style= "padding: 5px;" | Render text in <sc>Small caps</sc> with ease
|- style="background: #FFF;"
| style= "padding: 5px;" | {{wp|Ruby character|Ruby characters}}
| <pre>{{ruby|株式会社|かぶしきがいしゃ}}ジュピター</pre>
| style= "padding: 5px;" | {{ruby|株式会社|かぶしきがいしゃ}}ジュピター
|- style="background: #FFF;"
| style= "padding: 5px;" | Color text
| <pre><span style="color:#FF00FF">Magenta text</span></pre>
| style= "padding: 5px;" | <span style="color:#FF00FF">Magenta text</span>
|- style="background: #FFF;"
| style= "padding: 5px;" | Highlight text
| <pre><mark>Highlighted text</mark>
<mark style="background:lightblue;">Highlighted text</mark></pre>
| style= "padding: 5px;" | <mark>Highlighted text</mark><br />
<mark style="background:lightblue;">Highlighted text</mark>
|- style="background: #FFF;"
| style="padding: 5px; {{roundybl|6px}};" | Show code in text
| <pre>Use a <code>:</code> to indent text
Use a <code><nowiki><nowiki></nowiki><br /><nowiki></nowiki></nowiki></code> to create a new line</pre>
| style="{{roundybr|6px}}; padding: 5px;" | Use a <code>:</code> to indent text <br />
Use a <code><nowiki><br /></nowiki></code> to create a new line
|}


==Links==
==Links==
===Basic link===
{{shortcut|1|H:LINK}}
To link to an article with the same name as the text, put <nowiki>[[</nowiki> before the text to be linked and <nowiki>]]</nowiki> after the text.
===Wikilinks===
Wikilinks are used in wikicode markup to produce internal links between pages. You create wikilinks by putting double square brackets <code><nowiki>[[ ]]</nowiki></code> around text designating the title of the page you want to link to.
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|-
! Markup
! Result
|- style="background: #FFF;"
| style="{{roundybl|6px}};" | <pre>[[Pokémon Trainer]]</pre>
| style="{{roundybr|6px}}; padding: 5px;" | [[Pokémon Trainer]]
|}


Example:
<span style="color:#CC2200">A red link</span> is a page that doesn't exist yet; it can be created by clicking on the link.
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|-
! Markup
! Result
|- style="background: #FFF;"
| style="{{roundybl|6px}};" | <pre>[[Ash's Mudkip]]</pre>
| style="{{roundybr|6px}}; padding: 5px;" | {{red link|Ash's Mudkip}}
|}


<code><nowiki>[[Vermilion City]]</nowiki></code>
A self link (a link to the page on which the link appears) will appear only as bold text.
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|-
! Markup
! Result
|- style="background: #FFF;"
| style="{{roundybl|6px}};" | <pre>[[Help:Editing]]</pre>
| style="{{roundybr|6px}}; padding: 5px;" | [[Help:Editing]]
|}


Will make:
====Renamed links====
Links can be renamed by adding a <code>|</code> after the target page's name and before the final <code>]]</code>. A replacement name can then be typed between them.
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|-
! Markup
! Result
|- style="background: #FFF;"
| style="{{roundybl|6px}};" | <pre>[[Pokémon Trainer|Trainer]]</pre>
| style="{{roundybr|6px}}; padding: 5px;" | [[Pokémon Trainer|Trainer]]
|}


[[Vermilion City]]
=====Automatically renamed links=====
In certain circumstances, it is possible to have a link be automatically renamed by typing the <code>|</code> character before the final <code>]]</code> and saving the page. The links will be automatically extended according to the following rules:
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|-
! Description
! Markup
! Result
|- style="background: #FFF;"
| style= "padding: 5px;" | Automatically hide text in parentheses
| <pre>[[Bulbasaur (Pokémon)|]]</pre>
| style= "padding: 5px;" | [[Bulbasaur (Pokémon)|Bulbasaur]]
|- style="background: #FFF;"
| style= "padding: 5px;" | Automatically hide namespace
| <pre>[[Bulbapedia:Editor's Hub|]]</pre>
| style= "padding: 5px;" | [[Bulbapedia:Editor's Hub|Editor's Hub]]
|- style="background: #FFF;"
| style= "padding: 5px;" | Or both
| <pre>[[Talk:Pikachu (Pokémon)|]]</pre>
| style= "padding: 5px;" | [[Talk:Pikachu (Pokémon)|Pikachu]]
|- style="background: #FFF;"
| style= "padding: 5px;" | Text after commas are hidden too
| <pre>[[Get Fired Up, Spiky-eared Pichu!|]]</pre>
| style= "padding: 5px;" | [[Get Fired Up, Spiky-eared Pichu!|Get Fired Up]]
|- style="background: #FFF;"
| style="padding: 5px; {{roundybl|6px}};" | But this doesn't work for section links
| <pre>[[Bulbapedia:Manual of Style#Links|]]</pre>
| style="{{roundybr|6px}}; padding: 5px;" | [[Bulbapedia:Manual of Style#Links|]]
|}
When previewing your edits, you will not see the expanded form until you press '''Save''' and '''Edit''' again. For this reason, and because of the limitations outlined above, it is almost ''always'' preferable to use a [[#Other link templates|link template]] instead.


===Piped link===
====Blended links====
To link to an article with a different name as the text, put <nowiki>[[</nowiki> before the text to be linked and <nowiki>]]</nowiki> after it, but, right after the <nowiki>[[</nowiki>, put the title of the article followed by a <nowiki>|</nowiki>.
Endings are automatically blended into the link, which can be useful when discussing plurals, rather than having to rename the link itself.
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|-
! Markup
! Result
|- style="background: #FFF;"
| <pre>[[Pokémon Trainer]]s</pre>
| style="padding: 5px;" | [[Pokémon Trainer]]s
|- style="background: #FFF;"
| style="{{roundybl|6px}};" | <pre>[[Move]]ment</pre>
| style="{{roundybr|6px}}; padding: 5px;" | [[Move]]ment
|}
This behaviour can be suppressed by adding <code>&lt;nowiki /></code> directly after the link.


Example:
====Linking to page sections====
It is also possible to link directly to page [[#Sections|sections]] by including their title the link, separated by a <code>#</code>. These links can also be renamed.
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|-
! Markup
! Result
|- style="background: #FFF;"
| <pre>[[Pokémon Trading Card Game#Japanese sets]]</pre>
| style="padding: 5px;" | [[Pokémon Trading Card Game#Japanese sets]]
|- style="background: #FFF;"
| style="{{roundybl|6px}};" | <pre>[[Pokémon Trading Card Game#Japanese sets|Japanese sets]]</pre>
| style="{{roundybr|6px}}; padding: 5px;" | [[Pokémon Trading Card Game#Japanese sets|Japanese sets]]
|}


<code><nowiki>[[Ash's Pikachu|his Pikachu]]</nowiki></code>
It is also possible to link directly to other points on a page, by including the {{template|anchor}} template at the point you want to link to.


Will make:
====Interlanguage links====
{{shortcut|1|H:INTERLANG}}
Bulbagarden is a member of [[Encyclopædiæ Pokémonis]], a group of seven Pokémon wikis in different languages.
{| class="roundy" style="background: #000; padding: 2px;" cell-padding="5px"
|- style="color: #FFF;"
! Wiki
! Language
! Code
! Template
|- style="background: #FFF;"
| style= "padding: 5px;" | [[PokéWiki]]
| style= "padding: 5px;" | German
| style= "padding: 5px;" | de
| style= "padding: 5px;" | {{template|de}}
|- style="background: #FFF;"
| style= "padding: 5px;" | [[WikiDex]]
| style= "padding: 5px;" | Spanish
| style= "padding: 5px;" | es
| style= "padding: 5px;" | {{template|es}}
|- style="background: #FFF;"
| style= "padding: 5px;" | [[Poképédia]]
| style= "padding: 5px;" | French
| style= "padding: 5px;" | fr
| style= "padding: 5px;" | {{template|fr}}
|- style="background: #FFF;"
| style= "padding: 5px;" | [[Pokémon Central Wiki]]
| style= "padding: 5px;" | Italian
| style= "padding: 5px;" | it
| style= "padding: 5px;" | {{template|it}}
|- style="background: #FFF;"
| style= "padding: 5px;" | [[Pokémon Wiki]]
| style= "padding: 5px;" | Japanese
| style= "padding: 5px;" | ja
| style= "padding: 5px;" | {{template|ja}}
|- style="background: #FFF;"
| style= "{{roundybl|6px}}; padding: 5px;" | [[52Poké Wiki]]
| style= "padding: 5px;" | Chinese
| style= "padding: 5px;" | zh
| style= "{{roundybr|6px}}; padding: 5px;" | {{template|zh}}
|}


[[Ash's Pikachu|his Pikachu]]
[[Pokéteca]], [[LANDpedia]] and [[Wikinezka]] are former members of Encyclopædiæ Pokémonis, and their interlanguage links have been removed.
===Shortlinks===
{{main|Bulbapedia:List of link templates}}
These '''must''' be used in articles when necessary.


Example: <code><nowiki>{{AP|Pikachu}}</nowiki></code>
=====Links in the sidebar=====
Links to the same article at another Encyclopædiæ Pokémonis wiki can be added to the sidebar, by including an interlanguage link at the bottom of an article, below [[#Categories|categories]]. It is also possible to link to a section of an article where more appropriate.
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|-
! Markup
! Result
|- style="background: #FFF;"
| style="{{roundybl|6px}};" | <pre>
[[de:Hilfe:Bearbeitungshilfe]]
[[es:Ayuda:Guía de edición]]
[[it:Aiuto:Manuale di stile#Principi base del codice wiki (wikicode)]]
[[ja:ポケモンWiki:編集例]]
[[zh:Help:编辑页面]]
</pre>
| style="{{roundybr|6px}}; padding: 5px;" | ''Links will appear in the sidebar.''
|}


Will result in:
=====Inline links=====
It is also possible to add links to these wikis within the text of an article. To do this, begin the link with a <code>:</code>. However, while this is allowed, it is preferred that a [[#Other link templates|link template]] is used wherever possible.
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|-
! Markup
! Result
|- style="background: #FFF;"
| <pre>[[:ja:ピカチュウ]]</pre>
| style="padding: 5px;" | [[:ja:ピカチュウ]]
|- style="background: #FFF;"
| <pre>{{ja|ピカチュウ}}</pre>
| style="padding: 5px;" | {{ja|ピカチュウ}}
|- style="background: #FFF;"
| style="{{roundybl|6px}};" | <pre>{{ja|ピカチュウ|Pikachu on Pokémon Wiki}}</pre>
| style="{{roundybr|6px}}; padding: 5px;" | {{ja|ピカチュウ|Pikachu on Pokémon Wiki}}
|}


{{AP|Pikachu}}
Be aware that invalid interlanguage links will not appear as redlinks. Therefore, it is important to preview your edits before saving.


Instead of:
====Interwiki links====
{{shortcut|1|H:INTERWIKI}}
Interwiki links are used to link to a page on a different wiki. Invalid interwiki links will not appear as redlinks and so it is important to preview your edits before saving. For a full list of interwiki codes, see [[Special:Interwiki]].


[[Pikachu]]
=====Bulbagarden=====
It is possible to link to pages or files on [[Bulbagarden Archives]] and articles on the retired [[Bulbanews]] wiki using interwiki links or associated link templates.
{| class="roundy" style="background: #000; padding: 2px;" cell-padding="5px"
|- style="color: #FFF;"
! Wiki
! Code
! Template
|- style="background: #FFF;"
| style= "padding: 5px;" | [[Bulbagarden Archives]]
| style= "padding: 5px;" | a
| style= "padding: 5px;" | {{template|file}}


===External link===
|- style="background: #FFF;"
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 <nowiki>[</nowiki> before the url and name and <nowiki>]</nowiki> after it
| style= "{{roundybl|6px}}; padding: 5px;" | [[Bulbanews]]
| style= "padding: 5px;" | n
| style= "{{roundybr|6px}}; padding: 5px;" | {{template|n}}
|}


Example:
Unlike [[#Inline links|inline interlanguage links]], there is no need to proceed the link with a <code>:</code>. Where possible, use a link template, rather than a plain link.
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|-
! Markup
! Result
|- style="background: #FFF;"
| <pre>{{file|Bulbapedia logo.png}}</pre>
| style="padding: 5px;" | {{file|Bulbapedia logo.png}}
|- style="background: #FFF;"
| <pre>[[a:Category:Pikachu|Images of Pikachu]]</pre>
| style="padding: 5px;" | [[a:Category:Pikachu|Images of Pikachu]]
|- style="background: #FFF;"
| style="{{roundybl|6px}};" | <pre>{{n|Farfetch'd evolution Sirfetch'd revealed}}</pre>
| style="{{roundybr|6px}}; padding: 5px;" | {{n|Farfetch'd evolution Sirfetch'd revealed}}
|}


<code><nowiki>[http://wikipedia.org nifty pages]</nowiki></code>
=====NIWA=====
Bulbapedia is a member of the [[Nintendo Independent Wiki Alliance]], a group of 25 wikis each dedicated to a different [[Nintendo]] franchise or game.
{| class="mw-collapsible mw-collapsed roundy" style="background: #000; padding: 2px; width: 400px;" cell-padding="5px"
|+ NIWA wikis
|- style="color: #FFF;"
! Wiki
! Code
! Template
|- style="background: #FFF;"
| style= "padding: 5px;" | [[Zelda Wiki]]
| style= "padding: 5px;" | zw
| style= "padding: 5px;" | {{template|zw}}
|- style="background: #FFF;"
| style= "padding: 5px;" | [[Super Mario Wiki]]
| style= "padding: 5px;" | smw
| style= "padding: 5px;" | {{template|smw}}
|- style="background: #FFF;"
| style= "padding: 5px;" | [[Ukikipedia]]
| style= "padding: 5px;" | uki
| style= "padding: 5px;" | {{template|uki}}
|- style="background: #FFF;"
| style= "padding: 5px;" | [[Metroid Wiki]]
| style= "padding: 5px;" | met
| style= "padding: 5px;" | {{template|met}}
|- style="background: #FFF;"
| style= "padding: 5px;" | [[WiKirby]]
| style= "padding: 5px;" | wk
| style= "padding: 5px;" | {{template|wk}}
|- style="background: #FFF;"
| style= "padding: 5px;" | [[Wars Wiki]]
| style= "padding: 5px;" | ww
| style= "padding: 5px;" | {{template|ww}}
|- style="background: #FFF;"
| style= "padding: 5px;" | [[Lylat Wiki]]
| style= "padding: 5px;" | lw
| style= "padding: 5px;" | {{template|lw}}
|- style="background: #FFF;"
| style= "padding: 5px;" | [[Pikipedia]]
| style= "padding: 5px;" | pk
| style= "padding: 5px;" | {{template|pk}}
|- style="background: #FFF;"
| style= "padding: 5px;" | [[Pikmin Fanon]]
| style= "padding: 5px;" | pkf
| style= "padding: 5px;" | {{template|pkf}}
|- style="background: #FFF;"
| style= "padding: 5px;" | [[StrategyWiki]]
| style= "padding: 5px;" | strategy
| style= "padding: 5px;" | {{template|sw}}
|- style="background: #FFF;"
| style= "padding: 5px;" | [[SmashWiki]]
| style= "padding: 5px;" | sbw
| style= "padding: 5px;" | {{template|sbw}}
|- style="background: #FFF;"
| style= "padding: 5px;" | [[WikiBound]]
| style= "padding: 5px;" | wb
| style= "padding: 5px;" | {{template|wb}}
|- style="background: #FFF;"
| style= "padding: 5px;" | [[Nookipedia]]
| style= "padding: 5px;" | np
| style= "padding: 5px;" | {{template|np}}
|- style="background: #FFF;"
| style= "padding: 5px;" | [[Golden Sun Universe]]
| style= "padding: 5px;" | gsu
| style= "padding: 5px;" | {{template|gsu}}
|- style="background: #FFF;"
| style= "padding: 5px;" | [[NintendoWiki]]
| style= "padding: 5px;" | nw
| style= "padding: 5px;" | {{template|nw}}
|- style="background: #FFF;"
| style= "padding: 5px;" | [[Fire Emblem Wiki]]
| style= "padding: 5px;" | few
| style= "padding: 5px;" | {{template|few}}
|- style="background: #FFF;"
| style= "padding: 5px;" | [[Starfy Wiki]]
| style= "padding: 5px;" | lsw
| style= "padding: 5px;" | {{template|lsw}}
|- style="background: #FFF;"
| style= "padding: 5px;" | [[F-Zero Wiki]]
| style= "padding: 5px;" | fzw
| style= "padding: 5px;" | {{template|fzw}}
|- style="background: #FFF;"
| style= "padding: 5px;" | [[Icaruspedia]]
| style= "padding: 5px;" | ip
| style= "padding: 5px;" | {{template|ip}}
|- style="background: #FFF;"
| style= "padding: 5px;" | [[Dragon Quest Wiki]]
| style= "padding: 5px;" | dqw
| style= "padding: 5px;" | {{template|dqw}}
|- style="background: #FFF;"
| style= "padding: 5px;" | [[Hard Drop Tetris Wiki]]
| style= "padding: 5px;" | hdt
| style= "padding: 5px;" | {{template|hdt}}
|- style="background: #FFF;"
| style= "padding: 5px;" | [[Inkipedia]]
| style= "padding: 5px;" | ink
| style= "padding: 5px;" | {{template|ink}}
|- style="background: #FFF;"
| style= "padding: 5px;" | [[ARMS Institute]]
| style= "padding: 5px;" | ai
| style= "padding: 5px;" | {{template|ai}}
|- style="background: #FFF;"
| style= "padding: 5px;" | [[Xeno Series Wiki]]
| style= "padding: 5px;" | xsw
| style= "padding: 5px;" | {{template|xsw}}
|- style="background: #FFF;"
| style= "{{roundybl|6px}}; padding: 5px;" | [[Dragalia Lost Wiki]]
| style= "padding: 5px;" | dlw
| style= "{{roundybr|6px}}; padding: 5px;" | {{template|dlw}}
|}
It is possible to link to these wikis using interwiki links or their associated link template.


Will make:
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|-
! Markup
! Result
|- style="background: #FFF;"
| <pre>[[strategy:Super Smash Bros. Ultimate]]</pre>
| style="padding: 5px;" | [[strategy:Super Smash Bros. Ultimate]]
|- style="background: #FFF;"
| style="{{roundybl|6px}};" | <pre>{{sw|Super Smash Bros. Ultimate}}</pre>
| style="{{roundybr|6px}}; padding: 5px;" | {{sw|Super Smash Bros. Ultimate}}
|}


[http://wikipedia.org nifty pages]
=====Wikimedia=====
The {{wp|Wikimedia Foundation}} offers a series of free wikis, the most famous being {{wp|Wikipedia}}.
{| class="mw-collapsible mw-collapsed roundy" style="background: #000; padding: 2px; width: 400px;" cell-padding="5px"
|+ Wikimedia wikis
|- style="color: #FFF;"
! Wiki
! Code
! Template
|- style="background: #FFF;"
| style= "padding: 5px;" | {{wp|Main Page|Wikipedia}} (English)
| style= "padding: 5px;" | wp
| style= "padding: 5px;" | {{template|wp}}
|- style="background: #FFF;"
| style= "padding: 5px;" | {{dewp|Main Page|Wikipedia}} (German)
| style= "padding: 5px;" | dewp
| style= "padding: 5px;" | {{template|dewp}}
|- style="background: #FFF;"
| style= "padding: 5px;" | {{jwp|Main Page|Wikipedia}} (Japanese)
| style= "padding: 5px;" | jwp
| style= "padding: 5px;" | {{template|jwp}}
|- style="background: #FFF;"
| style= "padding: 5px;" | [[Wiktionary:Main Page|Wiktionary]]
| style= "padding: 5px;" | Wiktionary
| style= "padding: 5px;" | -
|- style="background: #FFF;"
| style= "padding: 5px;" | [[WikiBooks:Main Page|Wikibooks]]
| style= "padding: 5px;" | WikiBooks
| style= "padding: 5px;" | -
|- style="background: #FFF;"
| style= "{{roundybl|6px}}; padding: 5px;" | [[mw:Main Page|MediaWiki]]
| style= "padding: 5px;" | mw
| style= "{{roundybr|6px}}; padding: 5px;" | -
|}


It is possible to link to these wikis using interwiki links or (where available) their associated link template.


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
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|-
! Markup
! Result
|- style="background: #FFF;"
| <pre>[[wp:Pokémon]]</pre>
| style="padding: 5px;" | [[wp:Pokémon]]
|- style="background: #FFF;"
| style="{{roundybl|6px}};" | <pre>{{wp|Pokémon}}</pre>
| style="{{roundybr|6px}}; padding: 5px;" | {{wp|Pokémon}}
|}


However, an external picture not in the archives may also be placed with exactly the same technique:
===Other link templates===
{{main|Bulbapedia:List of link templates}}
A link template is a type of [[Help:Templates|template]] that produces a standardised format of link. Because the wiki has thousands of pages, these standardised links are helpful because they create consistency across the wiki and mean that changes need only be made to one page, rather than hundreds. Because of this, it is an [[Bulbapedia:Link templates|official guideline]] that link templates should be used whenever possible.


Example: <code><nowiki>http://archives.bulbagarden.net/w/upload/0/0a/025.png</nowiki></code>
===Redirects===
{{shortcut|1|H:REDIRECT}}
A redirect is a page created so that navigating to a given title takes the reader directly to a different page. It is also possible to redirect to a particular section on a page. Redirects are usually created because readers may search for an article under different names, but it is not necessary to create redirects from every title an editor may conceivably wish to link to a given page.
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|-
! Markup
! Result
|- style="background: #FFF;"
| <pre>#REDIRECT [[Bulbasaur (Pokémon)]]</pre>
| style="padding: 5px;" | [[File:Redirect.png|30px|link=]] [[Bulbasaur (Pokémon)]]
|- style="background: #FFF;"
| style="{{roundybl|6px}};" | <pre>#REDIRECT [[Bulbasaur (Pokémon)#Game data]]</pre>
| style="{{roundybr|6px}}; padding: 5px;" | [[File:Redirect.png|30px|link=]] [[Bulbasaur (Pokémon)#Game data]]
|}
Redirects will only work if the very first thing on the page is <code>#REDIRECT</code>, followed by a valid wikilink.


Result:http://archives.bulbagarden.net/w/upload/0/0a/025.png
===Categories===
{{shortcut|1|H:CAT}}
Categories, a software feature of MediaWiki, provide automatic indexes that are useful as tables of contents. You can categorize pages and files by adding one or more Category tags to the wikicode. These tags create links at the bottom of the page that take you to the list of all pages in that category, which makes it easy to browse related articles.


Note that it is not recommended to do this in mainspace articles.
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|-
! Markup
! Result
|- style="background: #FFF;"
| style="{{roundybl|6px}};" | <pre>[[Category:Help]]</pre>
| style="{{roundybr|6px}}; padding: 5px;" | ''Links will appear in a bar at the bottom of the page.''
|}
Categories are usually added at the bottom of the wikicode. However, some templates will add pages to categories when used.


==Table==
It is also possible to link to a category page within the text of an article. To do this, begin the link with a <code>:</code>.
To make a table, first type <nowiki>{|</nowiki> at the beginning of a new line. Then, on each line after that, put a <nowiki>|</nowiki> before the text, to make it be part of the table, on the same row. To make a new row, type <nowiki>|-</nowiki> on a new line and continue like normal. To end the table, type, on a new line, <nowiki>|}</nowiki>
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|-
! Markup
! Result
|- style="background: #FFF;"
| <pre>[[:Category:Help]]</pre>
| style="padding: 5px;" | [[:Category:Help]]
|- style="background: #FFF;"
| style="{{roundybl|6px}};" | <pre>[[:Category:Help|More help pages]]</pre>
| style="{{roundybr|6px}}; padding: 5px;" | [[:Category:Help|More help pages]]
|}


Example:
===External links===
{{shortcut|1|H:EXT}}
It is possible to link to external websites within wikicode. However, external links normally should not be placed in the body of an article, and instead should be placed within a dedicated section, within an infobox template, or as part of a [[#References|reference]]. Acceptable external links are websites containing further relevant information to the topic at hand, and no page should be linked to unless it meets this criterion. You must '''never''' link to illegally obtained material such as ROMs and hacks.


<code><ab><nowiki>{|</nowiki>
It is possible to link to external websites in three ways:
|Bulbasaur
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|Grass
|-
|-
|Charmander
! Markup
|Fire
! Result
|- style="background: #FFF;"
| <pre>https://www.pokemon.com/</pre>
| style="padding: 5px;" | https://www.pokemon.com/
|- style="background: #FFF;"
| <pre>[https://www.pokemon.com/]</pre>
| style="padding: 5px;" | [https://www.pokemon.com/]
|- style="background: #FFF;"
| style="{{roundybl|6px}};" | <pre>[https://www.pokemon.com/ Pokémon website]</pre>
| style="{{roundybr|6px}}; padding: 5px;" | [https://www.pokemon.com/ Pokémon website]
|}
The third option is usually the preferred choice, but the text used must be descriptive, and never misleading.
 
It is also possible to link to external images:
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|-
|-
|Squirtle
! Markup
|Water
! Result
|}</ab></code>
|- style="background: #FFF;"
| style="{{roundybl|6px}};" | <pre>http://www.bulbagarden.net/gateway/banner-pikachu.png</pre>
| style="{{roundybr|6px}}; padding: 5px;" | http://www.bulbagarden.net/gateway/banner-pikachu.png
|}
However, this is not normally allowed on content namespaces. Instead, images should be uploaded to [[Bulbagarden Archives]].
 
==Images==
{{main|Help:Images}}
 
==Tables==
{{main|Help:Tables}}


Will make:
==Referencing==
:''See also: [[Bulbapedia:Referencing]]''
Inline citations allow users of Bulbapedia see the sources used to create the articles they read on the wiki.


{|
References are added directly after a fact they support, or at the end of the sentence they support. The reference includes the web page the information comes from, and the date the information was found.
|Bulbasaur
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|Grass
|-
|-
|Charmander
! style="width: 500px;" | Markup
|Fire
! Result
|- style="background: #FFF;"
| style="{{roundybl|6px}};" | <pre>Hello World!<ref>[https://www.nintendo.com/whatsnew/ ''News'' - Nintendo.com] (retrieved October 15, 2022)</ref></pre>
| style="{{roundybr|6px}}; padding: 5px;" | Hello World!<ref>[https://www.nintendo.com/whatsnew/ ''News'' - Nintendo.com] (retrieved October 15, 2022)</ref>
|}
 
References can be named, so that they can be used again within the same article.
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|-
|-
|Squirtle
! style="width: 500px;" | Markup
|Water
! Result
|- style="background: #FFF;"
| style="{{roundybl|6px}};" | <pre>Hello World!<ref name="Poké">[https://www.pokemon.com/us/pokemon-news/ ''Pokémon News'' - Pokémon.com] (retrieved October 15, 2022)</ref>
 
Hello again!<ref name="Poké" /></pre>
| style="{{roundybr|6px}}; padding: 5px;" | Hello World!<ref name="Poké">[https://www.pokemon.com/us/pokemon-news/ ''Pokémon News'' - Pokémon.com] (retrieved October 15, 2022)</ref>
 
Hello again!<ref name="Poké" />
|}
 
References are displayed at the bottom of the article, in their own dedicated section.
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|-
! Markup
! Result
|- style="background: #FFF;"
| style="{{roundybl|6px}};" | <pre>==References==
{{reflist}}</pre>
| style="{{roundybr|6px}}; padding: 5px;" |
<div style="font-size: 150%; font-family: sans-serif; margin-top: 1em; margin-bottom: 0.25em; line-height: 1.3; padding: 0; border-bottom: 1px solid #AAAAAA;">References</div>
{{reflist}}
|}
 
==Templates==
{{main|Help:Templates}}
 
==Magic words==
{{shortcut|1|H:MAGIC}}
:''For a full list, see [[mw:Help:Magic words]]''
Magic words (including parser functions, variables and behavior switches) are features of wikicode that give instructions to Bulbapedia's underlying MediaWiki software and are especially useful for templates.
 
* Behavior switches (e.g. <code><nowiki>__NOTOC__</nowiki></code>) will change the behavior of a page, rather than return a value.
* Parser functions (e.g. <code><nowiki>{{#ifexpr:Y|Yes|No}}</nowiki></code>) will take a value and return a value.
* Variables (e.g. <code><nowiki>{{PAGENAME}}</nowiki></code>) will return a value in their place.
 
===Behaviour switches===
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|- style="color: #000;"
! Word
! Description
|- style="background: #FFF;"
| <pre>__NOTOC__</pre>
| style= "padding: 5px;" | Hides the [[#Table of contents|table of contents]].
|- style="background: #FFF;"
| <pre>__FORCETOC__</pre>
| style= "padding: 5px;" | Forces the TOC to appear at the normal location regardless of the number of headings.
|- style="background: #FFF;"
| <pre>__TOC__</pre>
| style= "padding: 5px;" | Forces the TOC to appear at the point where the magic word is inserted instead of the normal location.
|- style="background: #FFF;"
| <pre>__NOEDITSECTION__</pre>
| style= "padding: 5px;" | Hides the section edit links beside headings.
|- style="background: #FFF;"
| <pre>__NEWSECTIONLINK__</pre>
| style= "padding: 5px;" | Adds a link beside the "Edit" tab for adding a new section on a non-talk page.
|- style="background: #FFF;"
| <pre>__NONEWSECTIONLINK__</pre>
| style= "padding: 5px;" | Removes the link beside the "Edit" tab on pages in talk namespaces.
|- style="background: #FFF;"
| <pre>__HIDDENCAT__</pre>
| style= "padding: 5px;" | Used on a category page, hides the category from the lists of categories in its members and parent categories.
|- style="background: #FFF;"
| <pre>__EXPECTUNUSEDCATEGORY__</pre>
| style= "padding: 5px;" | Used on a category page, removes the category from [[Special:UnusedCategories]].
|- style="background: #FFF;"
| style= "{{roundybl|6px}}" | <pre>__DISAMBIG__</pre>
| style= "{{roundybr|6px}}; padding: 5px;" | Identifies a disambiguation page.
|}
|}


==Categories==
===Parser functions===
To add a page to a category, put <code><nowiki>[[Category:(category name)]]</nowiki></code> 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.
Parser functions can have an impact on system resources, and thus should be used sparingly, and only when strictly necessary. Typically, parser functions are only used in templates. See [[mw:Help:Extension:ParserFunctions]] for a list of available parser functions, and [[Help:Templates]] for how they can be used on Bulbapedia.


Example: <code><nowiki>[[Category:Trainers]]</nowiki></code> would add this page to the category of Trainers.
===Variables===
====Date & time====
The following variables return the current date and time in UTC. Due to MediaWiki and browser caching, these variables frequently show when the page was cached rather than the current time.
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|- style="color: #000;"
! Word
! Output
! Description
|- style="background: #FFF;"
| <pre>{{CURRENTYEAR}}</pre>
| style= "padding: 5px;" | {{CURRENTYEAR}}
| style= "padding: 5px;" | Year.
|- style="background: #FFF;"
| <pre>{{CURRENTMONTH}}</pre>
| style= "padding: 5px;" | {{CURRENTMONTH}}
| style= "padding: 5px;" | Month (zero-padded number).
|- style="background: #FFF;"
| <pre>{{CURRENTMONTH1}}</pre>
| style= "padding: 5px;" | {{CURRENTMONTH1}}
| style= "padding: 5px;" | Month (unpadded number).
|- style="background: #FFF;"
| <pre>{{CURRENTMONTHNAME}}</pre>
| style= "padding: 5px;" | {{CURRENTMONTHNAME}}
| style= "padding: 5px;" | Month (name).
|- style="background: #FFF;"
| <pre>{{CURRENTMONTHABBREV}}</pre>
| style= "padding: 5px;" | {{CURRENTMONTHABBREV}}
| style= "padding: 5px;" | Month (abbreviation).
|- style="background: #FFF;"
| <pre>{{CURRENTDAY}}</pre>
| style= "padding: 5px;" | {{CURRENTDAY}}
| style= "padding: 5px;" | Day of the month (unpadded number).
|- style="background: #FFF;"
| <pre>{{CURRENTDAY2}}</pre>
| style= "padding: 5px;" | {{CURRENTDAY2}}
| style= "padding: 5px;" | Day of the month (zero-padded number).
|- style="background: #FFF;"
| <pre>{{CURRENTDAYNAME}}</pre>
| style= "padding: 5px;" | {{CURRENTDAYNAME}}
| style= "padding: 5px;" | Day of the week (name).
|- style="background: #FFF;"
| style= "{{roundybl|6px}}" | <pre>{{CURRENTTIME}}</pre>
| style= "padding: 5px;" | {{CURRENTTIME}}
| style= "{{roundybr|6px}}; padding: 5px;" | Time (24-hour HH:mm format).
|}


To link to a category without , put a colon before "Category" in the link. For example, to link to the category "Trainers", <code><nowiki>[[:Category:Trainers]]</nowiki></code> would give [[:Category:Trainers]] without adding this page to the Trainers category.
====Technical metadata====
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|- style="color: #000;"
! Word
! Output
! Description
|- style="background: #FFF;"
| <pre>{{SITENAME}}</pre>
| style= "padding: 5px;" | {{SITENAME}}
| style= "padding: 5px;" | The wiki's site name.
|- style="background: #FFF;"
| <pre>{{SERVERNAME}}</pre>
| style= "padding: 5px;" | {{SERVERNAME}}
| style= "padding: 5px;" | Subdomain and domain name.
|- style="background: #FFF;"
| <pre>{{REVISIONDAY}}</pre>
| style= "padding: 5px;" | {{REVISIONDAY}}
| style= "padding: 5px;" | Day latest revision to current page was made (unpadded number).
|- style="background: #FFF;"
| <pre>{{REVISIONDAY2}}</pre>
| style= "padding: 5px;" | {{REVISIONDAY2}}
| style= "padding: 5px;" | Day latest revision to current page was made (zero-padded number).
|- style="background: #FFF;"
| <pre>{{REVISIONMONTH}}</pre>
| style= "padding: 5px;" | {{REVISIONMONTH}}
| style= "padding: 5px;" | Month latest revision to current page was made (zero-padded number).
|- style="background: #FFF;"
| <pre>{{REVISIONMONTH1}}</pre>
| style= "padding: 5px;" | {{REVISIONMONTH1}}
| style= "padding: 5px;" | Month latest revision to current page was made (unpadded number).
|- style="background: #FFF;"
| <pre>{{REVISIONYEAR}}</pre>
| style= "padding: 5px;" | {{REVISIONYEAR}}
| style= "padding: 5px;" | Year latest revision to current page was made.
|- style="background: #FFF;"
| style= "{{roundybl|6px}}" | <pre>{{REVISIONUSER}}</pre>
| style= "padding: 5px;" | {{REVISIONUSER}}
| style= "{{roundybr|6px}}; padding: 5px;" | The username of the user who made the most recent edit to the page (or the current user when previewing an edit).
|}


==Personal CSS==
====Statistics====
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". <big><big>IMPORTANT:</big></big>The word "monobook" <big>MUST</big> be lowercase!
Numbers returned by these variables normally contain commas but can return raw numbers with the ":R" flag (for example, <code><nowiki>{{NUMBEROFPAGES}}</nowiki></code> → {{NUMBEROFPAGES}} and <code><nowiki>{{NUMBEROFPAGES:R}}</nowiki></code> → {{NUMBEROFPAGES:R}}).
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|- style="color: #000;"
! Word
! Output
! Description
|- style="background: #FFF;"
| <pre>{{NUMBEROFPAGES}}</pre>
| style= "padding: 5px;" | {{NUMBEROFPAGES}}
| style= "padding: 5px;" | Number of wiki pages.
|- style="background: #FFF;"
| <pre>{{NUMBEROFARTICLES}}</pre>
| style= "padding: 5px;" | {{NUMBEROFARTICLES}}
| style= "padding: 5px;" | Number of pages in content namespaces that qualify as articles.
|- style="background: #FFF;"
| <pre>{{NUMBEROFEDITS}}</pre>
| style= "padding: 5px;" | {{NUMBEROFEDITS}}
| style= "padding: 5px;" | Number of wiki edits.
|- style="background: #FFF;"
| <pre>{{NUMBEROFFILES}}</pre>
| style= "padding: 5px;" | {{NUMBEROFFILES}}
| style= "padding: 5px;" | Number of uploaded files (only useful on [[Bulbagarden Archives]]).
|- style="background: #FFF;"
| <pre>{{NUMBEROFUSERS}}</pre>
| style= "padding: 5px;" | {{NUMBEROFUSERS}}
| style= "padding: 5px;" | Number of registered users.
|- style="background: #FFF;"
| <pre>{{NUMBEROFADMINS}}</pre>
| style= "padding: 5px;" | {{NUMBEROFADMINS}}
| style= "padding: 5px;" | Number of users in the [[Bulbapedia:Staff|''sysop'' group]].
|- style="background: #FFF;"
| style= "{{roundybl|6px}}" | <pre>{{NUMBEROFACTIVEUSERS}}</pre>
| style= "padding: 5px;" | {{NUMBEROFACTIVEUSERS}}
| style= "{{roundybr|6px}}; padding: 5px;" | Number of active users, based on the criteria used in [[Special:Statistics]].
|}


The user can then create an addition to the Bulbapedia CSS. An example of some personal CSS is:
====Page modifiers====
.googleContent {display: none}
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
.firstHeading {position: absolute; top: 63px; width: 900px}
|- style="color: #000;"
#bodyContent {position: absolute; top: 101px; width: 900px}
! Word
.pBody {background: transparent; border: none}
! Description
#p-personal {position: fixed; top: 0px; z-index: 100}
|- style="background: #FFF;"
#p-navigation {position: fixed; top: 159px; z-index: 100}
| style= "padding: 15px 5px 15px 5px;" | <code><nowiki>{{DISPLAYTITLE:</nowiki>''title''}}</code>
#p-search {position: fixed; top: 297px; z-index: 100}
| style= "padding: 5px;" | Format the current page's title header. <br />The value must be equivalent to the default title: only capitalization changes to certain parts of the title (not all), adding italics, and replacing spaces with underscores are allowed.
#p-tb {position: fixed; top: 365px; z-index: 100}
|- style="background: #FFF;"
#p-lang {position: fixed; top: 507px; z-index: 100}
| style= "padding: 15px 5px 15px 5px; {{roundybl|6px}}" | <code><nowiki>{{DEFAULTSORT:</nowiki>''sortkey''}}</code>
#footer {display: none}
| style= "{{roundybr|6px}}; padding: 5px;" | Used for categorizing pages, sets a default category sort key. <br />For example, if you put <code><nowiki>{{DEFAULTSORT:Underground, The}}</nowiki></code> at the end of [[The Underground]], the page would be sorted under "U" by default in categories.
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==
====Page names====
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.
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|- style="color: #000;"
! Word
! Output
! Description
|- style="background: #FFF;"
| <pre>{{FULLPAGENAME}}</pre>
| style= "padding: 5px;" | {{FULLPAGENAME}}
| style= "padding: 5px;" | Namespace and full page title (including all subpage levels).
|- style="background: #FFF;"
| <pre>{{PAGENAME}}</pre>
| style= "padding: 5px;" | {{PAGENAME}}
| style= "padding: 5px;" | Full page title (including all subpage levels) without the namespace.
|- style="background: #FFF;"
| <pre>{{BASEPAGENAME}}</pre>
| style= "padding: 5px;" | {{BASEPAGENAME}}
| style= "padding: 5px;" | Page title of the page in the immediately superior subpage level without the namespace. <br />For example, it would return <code>Title/Foo</code> on page <code>Help:Title/Foo/Bar</code>.
|- style="background: #FFF;"
| <pre>{{ROOTPAGENAME}}</pre>
| style= "padding: 5px;" | {{ROOTPAGENAME}}
| style= "padding: 5px;" | Name of the root of the current page. Would return <code>Title</code> on page <code>Help:Title/Foo/Bar</code>.
|- style="background: #FFF;"
| <pre>{{SUBPAGENAME}}</pre>
| style= "padding: 5px;" | {{SUBPAGENAME}}
| style= "padding: 5px;" | The subpage title. Would return <code>Bar</code> on page <code>Help:Title/Foo/Bar</code>. <br />If no subpage exists the value of <code><nowiki>{{PAGENAME}}</nowiki></code> is returned.
|- style="background: #FFF;"
| <pre>{{SUBJECTPAGENAME}}</pre>
| style= "padding: 5px;" | {{SUBJECTPAGENAME}}
| style= "padding: 5px;" | Full page name of the associated subject (e.g. article or file). Useful on talk pages.
|- style="background: #FFF;"
| style= "{{roundybl|6px}}" | <pre>{{TALKPAGENAME}}</pre>
| style= "padding: 5px;" | {{TALKPAGENAME}}
| style= "{{roundybr|6px}}; padding: 5px;" | Full page name of the associated talk page.
|}
 
====Namespaces====
{| class="roundy" style="background: #{{bulba color}}; padding: 2px;"
|- style="color: #000;"
! Word
! Output
! Description
|- style="background: #FFF;"
| <pre>{{NAMESPACE}}</pre>
| style= "padding: 5px;" | {{NAMESPACE}}
| style= "padding: 5px;" | Name of the page's namespace (except for main space).
|- style="background: #FFF;"
| <pre>{{NAMESPACENUMBER}}</pre>
| style= "padding: 5px;" | {{NAMESPACENUMBER}}
| style= "padding: 5px;" | ID of the page's namespace.
|- style="background: #FFF;"
| <pre>{{SUBJECTSPACE}}</pre>
| style= "padding: 5px;" | {{SUBJECTSPACE}}
| style= "padding: 5px;" | Name of the associated content namespace. Useful on talk pages.
|- style="background: #FFF;"
| style= "{{roundybl|6px}}" | <pre>{{TALKSPACE}}</pre>
| style= "padding: 5px;" | {{TALKSPACE}}
| style= "{{roundybr|6px}}; padding: 5px;" | Name of the associated talk namespace.
|}


==Headings==
==See also==
In order to make a heading, type two = before and after your heading on a new line. For instance <code><nowiki>==Example Heading==</nowiki></code> will look like
* [[wp:Help:Wikitext]]
==Example Heading==
* [[Help:Cheatsheet]]
'''THIS IS AN EXAMPLE'''


==Sub-headings==
{{HelpNav}}
In order to make a sub-heading, type three = before and after your heading on a new line. For instance, <code><nowiki>===Example Sub-heading===</nowiki></code> will look like
===Example Sub-heading===
'''THIS IS AN EXAMPLE'''


==Not Encoding Things==
[[Category:Help]]
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==
[[de:Hilfe:Bearbeitungshilfe]]
To make a bulleted list, type a * before a new line. For example,
[[es:Ayuda:Guía de edición]]
<br><nowiki>* Bulbasaur</nowiki>
[[it:Aiuto:Manuale di stile#Principi base del codice wiki (wikicode)]]
<br><nowiki>* Squirtle</nowiki>
[[ja:ポケモンWiki:編集例]]
<br><nowiki>* Charmander</nowiki>, when put on separate lines,
[[zh:Help:编辑页面]]
Will make:
* Bulbasaur
* Squirtle
* Charmander

Revision as of 18:02, 16 October 2022

Shortcut
H:CODE

This article will explain the basics of wikicode (also known as wikitext or wiki markup), 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 use the preview button!

Layout

Sections

Sections break an article down into more manageable chunks and are created using = to ======.

Markup Result
==Level 2==
===Level 3===
====Level 4====
=====Level 5=====
======Level 6======
Level 2
Level 3
Level 4
Level 5
Level 6
  • A single = is styled as the article title and should not be used within an article.
  • Headings are styled through CSS and add an [edit] link.
  • Four or more headings cause a table of contents to be generated automatically.
  • Do not use any markup after the final = – this will either break the heading, or will cause the heading to not be included in an edit summary.

HTML

Headings can also be created by using HTML elements.

Markup Result
<h2>Level 2</h2>
<h3>Level 3</h3>
<h4>Level 4</h4>
<h5>Level 5</h5>
<h6>Level 6</h6>
Level 2
Level 3
Level 4
Level 5
Level 6

These should not normally be used on articles, and are instead used within templates, as they do not include [edit] links.

Horizontal rule

The horizontal rule represents a paragraph-level thematic break. Do not use in article content, as rules are used only after main sections, and this is automatic.

Markup Result
----

<hr />

Horizontal rules are achieved with wikicode or HTML. However, ---- must always be at the start of a line, whereas <hr /> can be used anywhere.

Table of contents

Shortcut
H:TOC

When a page has at least four headings, a table of contents (TOC) will automatically appear after the lead and before the first heading. The TOC can be controlled by magic words:

  • __FORCETOC__ forces the TOC to appear at the normal location regardless of the number of headings.
  • __TOC__ forces the TOC to appear at the point where the magic word is inserted instead of the normal location.
  • __NOTOC__ disables the TOC entirely.

Line breaks

Line breaks or newlines are used to add whitespace between lines, such as separating paragraphs.

  • A line break that is visible in the content is inserted by pressing Enter twice.
  • Pressing Enter once will place a line break in the markup, but it will not show in the rendered content, except when using list markup.
  • Markup such as bold or italics will be terminated at a line break.
Markup Result
A single newline here
has no effect on the layout.

But an empty line starts a new paragraph, 
or ends a list or an indented part.

A single newline here has no effect on the layout.

But an empty line starts a new paragraph, or ends a list or an indented part.

Line breaks can also be created with <br /> and {{-}}.

Markup Result
Here is some text about Pokémon.<br /> Here is some more text about Pokémon.
Here is some text about Pokémon.
Here is some more text about Pokémon.
Here is some text about Pokémon.{{-}} Here is some more text about Pokémon.
Here is some text about Pokémon.
Here is some more text about Pokémon.

{{-}} adds a break with styling, to clear floating elements. This is often used to prevent text from flowing next to unrelated tables, images or templates.

Indented text

Indented text is most commonly used on talk pages to help keep track of replies.

Markup Result
Indentation as used on talk pages:
:Each colon at the start of a line
::causes the line to be indented by three more character positions.
:::(The indentation persists
so long as no carriage return or line break is used.)
:::Repeat the indentation at any line break.
::::Use an extra colon for each response.
:::::And so forth...
::::::And so on...
Indentation as used on talk pages:
Each colon at the start of a line
causes the line to be indented by three more character positions.
(The indentation persists

so long as no carriage return or line break is used.)

Repeat the indentation at any line break.
Use an extra colon for each response.
And so forth...
And so on...

Blockquote

Blockquotes are useful when there is a need to separate a block of text, such as (as the name suggests) inserting a large quote into an article.

Markup Result
Text before
<blockquote>
<p>Quoted paragraph</p>
<p>Name, Source, Reference</p>
</blockquote>
Text after
Text before

Quoted paragraph

Name, Source, Reference

Text after

Lists

Shortcut
H:LIST

Do not leave blank lines between items in a list unless there is a reason to do so, since this causes the MediaWiki software to interpret each item as beginning a new list.

Unordered lists

Markup Result
* Item 1
* Item 2
* Item 3
* Item 4
** Sub-item 1
*** Sub-sub-item
**** Sub-sub-sub-item
** Sub-item 2
* Item 5
  • Item 1
  • Item 2
  • Item 3
  • Item 4
    • Sub-item 1
      • Sub-sub-item
        • Sub-sub-sub-item
    • Sub-item 2
  • Item 5

Ordered lists

Markup Result
# Item 1
# Item 2
# Item 3
# Item 4
## Sub-item 1
### Sub-sub-item
#### Sub-sub-sub-item
## Sub-item 2
# Item 5
  1. Item 1
  2. Item 2
  3. Item 3
  4. Item 4
    1. Sub-item 1
      1. Sub-sub-item
        1. Sub-sub-sub-item
    2. Sub-item 2
  5. Item 5

It is also possible to set a starting value of an ordered list:

Markup Result
# <li value="7">Item 1</li>
# Item 2
# Item 3
# Item 4
  1. Item 1
  2. Item 2
  3. Item 3
  4. Item 4

Mixed lists

Markup Result
# Item 1
# Item 2
#* Sub-item 1
#* Sub-item 2
#*# Sub-sub-item 1
#*# Sub-sub-item 2
#* Sub-item 3
#** Sub-sub-item
# Item 3
  1. Item 1
  2. Item 2
    • Sub-item 1
    • Sub-item 2
      1. Sub-sub-item 1
      2. Sub-sub-item 2
    • Sub-item 3
      • Sub-sub-item
  3. Item 3

Description lists

To list terms and definitions, start a new line with a semicolon ; followed by the term. Then, type a colon : followed by a definition. The format can also be used for other purposes, such as make and models of vehicles, etc.

Description lists consist of group names corresponding to values. Group names (terms) are in bold. Values (definitions) are indented. Each group must include one or more definitions. For a single or first value, the : can be placed on the same line after ;, but subsequent values must be placed on separate lines.

Markup Result
; Term : Definition 1
Term
Definition 1
; Term
: Definition 1
: Definition 2
: Definition 3
: Definition 4
Term
Definition 1
Definition 2
Definition 3
Definition 4

Retaining newlines

The MediaWiki software suppresses single newlines and converts lines starting with a space to preformatted text in a dashed box. It is often desirable to retain these elements for poems and lyrics. <ab>...</ab> tags maintain newlines.

Markup Result
<ab>''I wanna be the very best
Like no one   ever was
To catch them is my real test
To train them is my cause

I will travel across the land
Searching far and wide
Teach Pokémon to understand
The power that's inside''</ab>

I wanna be the very best
Like no one ever was
To catch them is my real test
To train them is my cause

I will travel across the land
Searching far and wide
Teach Pokémon to understand
The power that's inside

Text formatting

Shortcut
H:TEXT
Description Markup Result
Italics, bold, and both
''italics'', '''bold''', and '''''both'''''
italics, bold, and both
Strikethrough text
Use <s>on articles</s> only on talk pages
Use on articles only on talk pages
Subscript and superscript
Make text <sub>subscript</sub> or <sup>superscript</sup> easily
Make text subscript or superscript easily
Small text
Use <small>small text</small> only when necessary
Use small text only when necessary
Big text
Avoid using <big>big text</big> where possible
Avoid using big text where possible
Small caps
Render text in <sc>Small caps</sc> with ease
Render text in Small caps with ease
Ruby characters
{{ruby|株式会社|かぶしきがいしゃ}}ジュピター
株式会社(かぶしきがいしゃ)ジュピター
Color text
<span style="color:#FF00FF">Magenta text</span>
Magenta text
Highlight text
<mark>Highlighted text</mark>
<mark style="background:lightblue;">Highlighted text</mark>
Highlighted text

Highlighted text

Show code in text
Use a <code>:</code> to indent text
Use a <code><nowiki><br /></nowiki></code> to create a new line
Use a : to indent text

Use a <br /> to create a new line

Links

Shortcut
H:LINK

Wikilinks

Wikilinks are used in wikicode markup to produce internal links between pages. You create wikilinks by putting double square brackets [[ ]] around text designating the title of the page you want to link to.

Markup Result
[[Pokémon Trainer]]
Pokémon Trainer

A red link is a page that doesn't exist yet; it can be created by clicking on the link.

Markup Result
[[Ash's Mudkip]]
Ash's Mudkip

A self link (a link to the page on which the link appears) will appear only as bold text.

Markup Result
[[Help:Editing]]
Help:Editing

Renamed links

Links can be renamed by adding a | after the target page's name and before the final ]]. A replacement name can then be typed between them.

Markup Result
[[Pokémon Trainer|Trainer]]
Trainer
Automatically renamed links

In certain circumstances, it is possible to have a link be automatically renamed by typing the | character before the final ]] and saving the page. The links will be automatically extended according to the following rules:

Description Markup Result
Automatically hide text in parentheses
[[Bulbasaur (Pokémon)|]]
Bulbasaur
Automatically hide namespace
[[Bulbapedia:Editor's Hub|]]
Editor's Hub
Or both
[[Talk:Pikachu (Pokémon)|]]
Pikachu
Text after commas are hidden too
[[Get Fired Up, Spiky-eared Pichu!|]]
Get Fired Up
But this doesn't work for section links
[[Bulbapedia:Manual of Style#Links|]]
[[Bulbapedia:Manual of Style#Links|]]

When previewing your edits, you will not see the expanded form until you press Save and Edit again. For this reason, and because of the limitations outlined above, it is almost always preferable to use a link template instead.

Blended links

Endings are automatically blended into the link, which can be useful when discussing plurals, rather than having to rename the link itself.

Markup Result
[[Pokémon Trainer]]s
Pokémon Trainers
[[Move]]ment
Movement

This behaviour can be suppressed by adding <nowiki /> directly after the link.

Linking to page sections

It is also possible to link directly to page sections by including their title the link, separated by a #. These links can also be renamed.

Markup Result
[[Pokémon Trading Card Game#Japanese sets]]
Pokémon Trading Card Game#Japanese sets
[[Pokémon Trading Card Game#Japanese sets|Japanese sets]]
Japanese sets

It is also possible to link directly to other points on a page, by including the {{anchor}} template at the point you want to link to.

Interlanguage links

Shortcut
H:INTERLANG

Bulbagarden is a member of Encyclopædiæ Pokémonis, a group of seven Pokémon wikis in different languages.

Wiki Language Code Template
PokéWiki German de {{de}}
WikiDex Spanish es {{es}}
Poképédia French fr {{fr}}
Pokémon Central Wiki Italian it {{it}}
Pokémon Wiki Japanese ja {{ja}}
52Poké Wiki Chinese zh {{zh}}

Pokéteca, LANDpedia and Wikinezka are former members of Encyclopædiæ Pokémonis, and their interlanguage links have been removed.

Links in the sidebar

Links to the same article at another Encyclopædiæ Pokémonis wiki can be added to the sidebar, by including an interlanguage link at the bottom of an article, below categories. It is also possible to link to a section of an article where more appropriate.

Markup Result
[[de:Hilfe:Bearbeitungshilfe]]
[[es:Ayuda:Guía de edición]]
[[it:Aiuto:Manuale di stile#Principi base del codice wiki (wikicode)]]
[[ja:ポケモンWiki:編集例]]
[[zh:Help:编辑页面]]
Links will appear in the sidebar.
Inline links

It is also possible to add links to these wikis within the text of an article. To do this, begin the link with a :. However, while this is allowed, it is preferred that a link template is used wherever possible.

Markup Result
[[:ja:ピカチュウ]]
ja:ピカチュウ
{{ja|ピカチュウ}}
ピカチュウ
{{ja|ピカチュウ|Pikachu on Pokémon Wiki}}
Pikachu on Pokémon Wiki

Be aware that invalid interlanguage links will not appear as redlinks. Therefore, it is important to preview your edits before saving.

Interwiki links

Shortcut
H:INTERWIKI

Interwiki links are used to link to a page on a different wiki. Invalid interwiki links will not appear as redlinks and so it is important to preview your edits before saving. For a full list of interwiki codes, see Special:Interwiki.

Bulbagarden

It is possible to link to pages or files on Bulbagarden Archives and articles on the retired Bulbanews wiki using interwiki links or associated link templates.

Wiki Code Template
Bulbagarden Archives a {{file}}
Bulbanews n {{n}}

Unlike inline interlanguage links, there is no need to proceed the link with a :. Where possible, use a link template, rather than a plain link.

Markup Result
{{file|Bulbapedia logo.png}}
Bulbapedia logo.png
[[a:Category:Pikachu|Images of Pikachu]]
Images of Pikachu
{{n|Farfetch'd evolution Sirfetch'd revealed}}
Farfetch'd evolution Sirfetch'd revealed
NIWA

Bulbapedia is a member of the Nintendo Independent Wiki Alliance, a group of 25 wikis each dedicated to a different Nintendo franchise or game.

NIWA wikis
Wiki Code Template
Zelda Wiki zw {{zw}}
Super Mario Wiki smw {{smw}}
Ukikipedia uki {{uki}}
Metroid Wiki met {{met}}
WiKirby wk {{wk}}
Wars Wiki ww {{ww}}
Lylat Wiki lw {{lw}}
Pikipedia pk {{pk}}
Pikmin Fanon pkf {{pkf}}
StrategyWiki strategy {{sw}}
SmashWiki sbw {{sbw}}
WikiBound wb {{wb}}
Nookipedia np {{np}}
Golden Sun Universe gsu {{gsu}}
NintendoWiki nw {{nw}}
Fire Emblem Wiki few {{few}}
Starfy Wiki lsw {{lsw}}
F-Zero Wiki fzw {{fzw}}
Icaruspedia ip {{ip}}
Dragon Quest Wiki dqw {{dqw}}
Hard Drop Tetris Wiki hdt {{hdt}}
Inkipedia ink {{ink}}
ARMS Institute ai {{ai}}
Xeno Series Wiki xsw {{xsw}}
Dragalia Lost Wiki dlw {{dlw}}

It is possible to link to these wikis using interwiki links or their associated link template.

Markup Result
[[strategy:Super Smash Bros. Ultimate]]
strategy:Super Smash Bros. Ultimate
{{sw|Super Smash Bros. Ultimate}}
Super Smash Bros. Ultimate
Wikimedia

The Wikimedia Foundation offers a series of free wikis, the most famous being Wikipedia.

Wikimedia wikis
Wiki Code Template
Wikipedia (English) wp {{wp}}
Wikipedia (German) dewp {{dewp}}
Wikipedia (Japanese) jwp {{jwp}}
Wiktionary Wiktionary -
Wikibooks WikiBooks -
MediaWiki mw -

It is possible to link to these wikis using interwiki links or (where available) their associated link template.

Markup Result
[[wp:Pokémon]]
wp:Pokémon
{{wp|Pokémon}}
Pokémon

Other link templates

Main article: Bulbapedia:List of link templates

A link template is a type of template that produces a standardised format of link. Because the wiki has thousands of pages, these standardised links are helpful because they create consistency across the wiki and mean that changes need only be made to one page, rather than hundreds. Because of this, it is an official guideline that link templates should be used whenever possible.

Redirects

Shortcut
H:REDIRECT

A redirect is a page created so that navigating to a given title takes the reader directly to a different page. It is also possible to redirect to a particular section on a page. Redirects are usually created because readers may search for an article under different names, but it is not necessary to create redirects from every title an editor may conceivably wish to link to a given page.

Markup Result
#REDIRECT [[Bulbasaur (Pokémon)]]
Redirect.png Bulbasaur (Pokémon)
#REDIRECT [[Bulbasaur (Pokémon)#Game data]]
Redirect.png Bulbasaur (Pokémon)#Game data

Redirects will only work if the very first thing on the page is #REDIRECT, followed by a valid wikilink.

Categories

Shortcut
H:CAT

Categories, a software feature of MediaWiki, provide automatic indexes that are useful as tables of contents. You can categorize pages and files by adding one or more Category tags to the wikicode. These tags create links at the bottom of the page that take you to the list of all pages in that category, which makes it easy to browse related articles.

Markup Result
[[Category:Help]]
Links will appear in a bar at the bottom of the page.

Categories are usually added at the bottom of the wikicode. However, some templates will add pages to categories when used.

It is also possible to link to a category page within the text of an article. To do this, begin the link with a :.

Markup Result
[[:Category:Help]]
Category:Help
[[:Category:Help|More help pages]]
More help pages

External links

Shortcut
H:EXT

It is possible to link to external websites within wikicode. However, external links normally should not be placed in the body of an article, and instead should be placed within a dedicated section, within an infobox template, or as part of a reference. Acceptable external links are websites containing further relevant information to the topic at hand, and no page should be linked to unless it meets this criterion. You must never link to illegally obtained material such as ROMs and hacks.

It is possible to link to external websites in three ways:

Markup Result
https://www.pokemon.com/
https://www.pokemon.com/
[https://www.pokemon.com/]
[1]
[https://www.pokemon.com/ Pokémon website]
Pokémon website

The third option is usually the preferred choice, but the text used must be descriptive, and never misleading.

It is also possible to link to external images:

Markup Result
http://www.bulbagarden.net/gateway/banner-pikachu.png
banner-pikachu.png

However, this is not normally allowed on content namespaces. Instead, images should be uploaded to Bulbagarden Archives.

Images

Main article: Help:Images

Tables

Main article: Help:Tables

Referencing

See also: Bulbapedia:Referencing

Inline citations allow users of Bulbapedia see the sources used to create the articles they read on the wiki.

References are added directly after a fact they support, or at the end of the sentence they support. The reference includes the web page the information comes from, and the date the information was found.

Markup Result
Hello World!<ref>[https://www.nintendo.com/whatsnew/ ''News'' - Nintendo.com] (retrieved October 15, 2022)</ref>
Hello World![1]

References can be named, so that they can be used again within the same article.

Markup Result
Hello World!<ref name="Poké">[https://www.pokemon.com/us/pokemon-news/ ''Pokémon News'' - Pokémon.com] (retrieved October 15, 2022)</ref>

Hello again!<ref name="Poké" />
Hello World![2]

Hello again![2]

References are displayed at the bottom of the article, in their own dedicated section.

Markup Result
==References==
{{reflist}}
References
  1. News - Nintendo.com (retrieved October 15, 2022)
  2. 2.0 2.1 Pokémon News - Pokémon.com (retrieved October 15, 2022)

Templates

Main article: Help:Templates

Magic words

Shortcut
H:MAGIC
For a full list, see mw:Help:Magic words

Magic words (including parser functions, variables and behavior switches) are features of wikicode that give instructions to Bulbapedia's underlying MediaWiki software and are especially useful for templates.

  • Behavior switches (e.g. __NOTOC__) will change the behavior of a page, rather than return a value.
  • Parser functions (e.g. {{#ifexpr:Y|Yes|No}}) will take a value and return a value.
  • Variables (e.g. {{PAGENAME}}) will return a value in their place.

Behaviour switches

Word Description
__NOTOC__
Hides the table of contents.
__FORCETOC__
Forces the TOC to appear at the normal location regardless of the number of headings.
__TOC__
Forces the TOC to appear at the point where the magic word is inserted instead of the normal location.
__NOEDITSECTION__
Hides the section edit links beside headings.
__NEWSECTIONLINK__
Adds a link beside the "Edit" tab for adding a new section on a non-talk page.
__NONEWSECTIONLINK__
Removes the link beside the "Edit" tab on pages in talk namespaces.
__HIDDENCAT__
Used on a category page, hides the category from the lists of categories in its members and parent categories.
__EXPECTUNUSEDCATEGORY__
Used on a category page, removes the category from Special:UnusedCategories.
__DISAMBIG__
Identifies a disambiguation page.

Parser functions

Parser functions can have an impact on system resources, and thus should be used sparingly, and only when strictly necessary. Typically, parser functions are only used in templates. See mw:Help:Extension:ParserFunctions for a list of available parser functions, and Help:Templates for how they can be used on Bulbapedia.

Variables

Date & time

The following variables return the current date and time in UTC. Due to MediaWiki and browser caching, these variables frequently show when the page was cached rather than the current time.

Word Output Description
{{CURRENTYEAR}}
2024 Year.
{{CURRENTMONTH}}
04 Month (zero-padded number).
{{CURRENTMONTH1}}
4 Month (unpadded number).
{{CURRENTMONTHNAME}}
April Month (name).
{{CURRENTMONTHABBREV}}
Apr Month (abbreviation).
{{CURRENTDAY}}
24 Day of the month (unpadded number).
{{CURRENTDAY2}}
24 Day of the month (zero-padded number).
{{CURRENTDAYNAME}}
Wednesday Day of the week (name).
{{CURRENTTIME}}
07:25 Time (24-hour HH:mm format).

Technical metadata

Word Output Description
{{SITENAME}}
Bulbapedia The wiki's site name.
{{SERVERNAME}}
bulbapedia.bulbagarden.net Subdomain and domain name.
{{REVISIONDAY}}
16 Day latest revision to current page was made (unpadded number).
{{REVISIONDAY2}}
16 Day latest revision to current page was made (zero-padded number).
{{REVISIONMONTH}}
10 Month latest revision to current page was made (zero-padded number).
{{REVISIONMONTH1}}
10 Month latest revision to current page was made (unpadded number).
{{REVISIONYEAR}}
2022 Year latest revision to current page was made.
{{REVISIONUSER}}
BthrussellUK The username of the user who made the most recent edit to the page (or the current user when previewing an edit).

Statistics

Numbers returned by these variables normally contain commas but can return raw numbers with the ":R" flag (for example, {{NUMBEROFPAGES}} → 266,533 and {{NUMBEROFPAGES:R}} → 266533).

Word Output Description
{{NUMBEROFPAGES}}
266,533 Number of wiki pages.
{{NUMBEROFARTICLES}}
52,996 Number of pages in content namespaces that qualify as articles.
{{NUMBEROFEDITS}}
4,003,740 Number of wiki edits.
{{NUMBEROFFILES}}
0 Number of uploaded files (only useful on Bulbagarden Archives).
{{NUMBEROFUSERS}}
355,187 Number of registered users.
{{NUMBEROFADMINS}}
31 Number of users in the sysop group.
{{NUMBEROFACTIVEUSERS}}
546 Number of active users, based on the criteria used in Special:Statistics.

Page modifiers

Word Description
{{DISPLAYTITLE:title}} Format the current page's title header.
The value must be equivalent to the default title: only capitalization changes to certain parts of the title (not all), adding italics, and replacing spaces with underscores are allowed.
{{DEFAULTSORT:sortkey}} Used for categorizing pages, sets a default category sort key.
For example, if you put {{DEFAULTSORT:Underground, The}} at the end of The Underground, the page would be sorted under "U" by default in categories.

Page names

Word Output Description
{{FULLPAGENAME}}
Help:Wikicode Namespace and full page title (including all subpage levels).
{{PAGENAME}}
Wikicode Full page title (including all subpage levels) without the namespace.
{{BASEPAGENAME}}
Wikicode Page title of the page in the immediately superior subpage level without the namespace.
For example, it would return Title/Foo on page Help:Title/Foo/Bar.
{{ROOTPAGENAME}}
Wikicode Name of the root of the current page. Would return Title on page Help:Title/Foo/Bar.
{{SUBPAGENAME}}
Wikicode The subpage title. Would return Bar on page Help:Title/Foo/Bar.
If no subpage exists the value of {{PAGENAME}} is returned.
{{SUBJECTPAGENAME}}
Help:Wikicode Full page name of the associated subject (e.g. article or file). Useful on talk pages.
{{TALKPAGENAME}}
Help talk:Wikicode Full page name of the associated talk page.

Namespaces

Word Output Description
{{NAMESPACE}}
Help Name of the page's namespace (except for main space).
{{NAMESPACENUMBER}}
12 ID of the page's namespace.
{{SUBJECTSPACE}}
Help Name of the associated content namespace. Useful on talk pages.
{{TALKSPACE}}
Help talk Name of the associated talk namespace.

See also