Help:Cheatsheet: Difference between revisions

(Created page with "__NOTOC__ <div style="position: relative; box-sizing: border-box; background: #{{bulba color}}; max-width: 100%; overflow: hidden; border: 2px solid #{{bulba color dark}}; mar...")
 
 
(5 intermediate revisions by 3 users not shown)
Line 16: Line 16:
|-
|-
| Italics, bold, and both
| Italics, bold, and both
| <code><nowiki>''italics'', '''bold''', and '''''both'''''</nowiki></code>
| <pre>''italics'', '''bold''', and '''''both'''''</pre>
| ''italics'', '''bold''', and '''''both'''''
| ''italics'', '''bold''', and '''''both'''''
|-  
|-  
Line 22: Line 22:
|-
|-
| Bigger and smaller text
| Bigger and smaller text
| <code><nowiki><big>Bigger text</big> and <small>smaller text</small></nowiki></code>
| <pre><big>Bigger text</big> and <small>smaller text</small></pre>
| <big>Bigger text</big> and <small>smaller text</small>
| <big>Bigger text</big> and <small>smaller text</small>
|-
| colspan=3 style="border-top:1px solid #000;" |
|-
| Colored text
| <pre><span style="color:#FFF">White text</span>
<mark>Highlighted text</mark>
<mark style="background:#FFA500;">Highlighted text</mark></pre>
| <span style="color:#FFF">White text</span> <br /><mark>Highlighted text</mark> <br /><mark style="background:#FFA500;">Highlighted text</mark></pre>
|-  
|-  
| colspan=3 style="border-top:1px solid #000;" |
| colspan=3 style="border-top:1px solid #000;" |
|-
|-
| Link to another page
| Link to another page
| <code><nowiki>[[Pokémon Trainer]]</nowiki></code> <br /><code><nowiki>[[Pokémon Trainer]]s</nowiki></code>
| <pre>[[Pokémon Trainer]]
[[Pokémon Trainer]]s</pre>
| [[Pokémon Trainer]] <br />[[Pokémon Trainer]]s
| [[Pokémon Trainer]] <br />[[Pokémon Trainer]]s
|-  
|-  
Line 34: Line 43:
|-
|-
| Change a link's text
| Change a link's text
| <code><nowiki>[[Pokémon Trainer|Trainer]]</nowiki></code>
| <pre>[[Pokémon Trainer|Trainer]]</pre>
| [[Pokémon Trainer|Trainer]]
| [[Pokémon Trainer|Trainer]]
|-  
|-  
Line 40: Line 49:
|-
|-
| Link to a section
| Link to a section
| <code><nowiki>[[Pokémon Crystal Version#Plot]]</nowiki></code> <br /><code><nowiki>[[Pokémon Crystal Version#Plot|Pokémon Crystal's story]]</nowiki></code>
| <pre>[[Pokémon Crystal Version#Plot]]
[[Pokémon Crystal Version#Plot|Pokémon Crystal's story]]</pre>
| [[Pokémon Crystal Version#Plot]] <br />[[Pokémon Crystal Version#Plot|Pokémon Crystal's story]]
| [[Pokémon Crystal Version#Plot]] <br />[[Pokémon Crystal Version#Plot|Pokémon Crystal's story]]
|-  
|-  
| colspan=3 style="border-top:1px solid #000;" |
| colspan=3 style="border-top:1px solid #000;" |
|-
|-
| Red link
| Red links
  <div style="background: #{{bulba color light}}; padding: 4px; margin: 3px; font-size:0.9em; {{roundy|8px}};">''Links to pages that don't exist are automatically red. Red links in articles often help by showing desired redirects or notable pages.''</div>
  <div style="background: #{{bulba color light}}; padding: 4px; margin: 3px; font-size:0.9em; {{roundy|8px}};">''Links to pages that don't exist are automatically red. Red links in articles often help by showing desired redirects or notable pages.''</div>
| <code><nowiki>[[Red link example]]</nowiki></code>
| <pre>[[Ash's Mudkip]]</pre>
| [[Red link example]]
| {{red link|Ash's Mudkip}}
|-  
|-  
| colspan=3 style="border-top:1px solid #000;" |
| colspan=3 style="border-top:1px solid #000;" |
|-
|-
| Plain website
| Plain website
| <code><nowiki>https://www.bulbagarden.net/</nowiki></code>
| <pre>https://www.bulbagarden.net/</pre>
| https://www.bulbagarden.net/
| https://www.bulbagarden.net/
|-  
|-  
Line 59: Line 69:
|-
|-
| Link to a website
| Link to a website
| <code><nowiki>[https://www.bulbagarden.net/]</nowiki></code>
| <pre>[https://www.bulbagarden.net/]</pre>
| [https://www.bulbagarden.net/]
| [https://www.bulbagarden.net/]
|-  
|-  
Line 65: Line 75:
|-
|-
| Named link to a website
| Named link to a website
| <code><nowiki>[https://www.bulbagarden.net/ Bulbagarden]</nowiki></code>
| <pre>[https://www.bulbagarden.net/ Bulbagarden]</pre>
| [https://www.bulbagarden.net/ Bulbagarden]
| [https://www.bulbagarden.net/ Bulbagarden]
|-  
|-  
Line 86: Line 96:
|-
|-
| Citation needed
| Citation needed
| <code><nowiki>This statement is true.{{fact}}</nowiki></code>
| <pre>This statement is true.{{fact}}</pre>
| This statement is true.<sup>[''citation needed'']</sup>
| This statement is true.<sup>[''citation needed'']</sup>
|-  
|-  
Line 92: Line 102:
|-
|-
| Signature
| Signature
<div style="background: #{{bulba color light}}; padding: 4px; margin: 3px; font-size:0.9em; {{roundy|8px}};">''Sign your contributions when posting on a talk page.''</div>
<div style="background: #{{bulba color light}}; padding: 4px; margin: 3px; font-size:0.9em; {{roundy|8px}};">''Sign your contributions when posting on a talk page. Do not sign in an article, only on talk pages.''</div>
| <code><nowiki>~~~~</nowiki></code>
| <pre>~~~~</pre>
<div style="background: #{{bulba color light}}; padding: 4px; margin: 3px; font-size:0.9em; {{roundy|8px}};">''Do not sign in an article, only on talk pages.''</div>
| [[Special:Mypage|Username]] ([[Special:Mytalk|talk]]) {{CURRENTTIME}}, {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} (UTC)
| [[Special:Mypage|Username]] ([[Special:Mytalk|talk]]) {{CURRENTTIME}}, {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} (UTC)
|-  
|-  
Line 100: Line 109:
|-
|-
| Hide text somewhere for editors
| Hide text somewhere for editors
| <code><nowiki><!--A note for others editing the page--></nowiki></code>
| <pre><!--A note for others editing the page--></pre>
| <!--A note for others editing the page-->
| <!--A note for others editing the page-->
|-  
|-  
Line 106: Line 115:
|-
|-
| Add an image
| Add an image
| <code><nowiki>[[File:Bulbapedia logo.png|thumb|Caption]]</nowiki></code>
| <pre>[[File:Bulbapedia logo.png|thumb|Caption]]</pre>
| [[File:Bulbapedia logo.png|thumb|Caption]]
| [[File:Bulbapedia logo.png|thumb|Caption]]
|-  
|-  
Line 112: Line 121:
|-
|-
| Add a page to a category
| Add a page to a category
| <code><nowiki>[[Category:Category name]]</nowiki></code>
<div style="background: #{{bulba color light}}; padding: 4px; margin: 3px; font-size:0.9em; {{roundy|8px}};">''Placed near the bottom of the page.''</div>
<div style="background: #{{bulba color light}}; padding: 4px; margin: 3px; font-size:0.9em; {{roundy|8px}};">''Place near the bottom of the page''</div>
| <pre>[[Category:Category name]]</pre>
| <div style="background: #{{bulba color light}}; padding: 4px; margin: 3px; font-size:0.9em; {{roundy|8px}};">''Shows'' "Category name" ''in a bar at bottom when the page is previewed or published''</div>
| <div style="background: #{{bulba color light}}; padding: 4px; margin: 3px; font-size:0.9em; {{roundy|8px}};">''Shows'' "Category name" ''in a bar at bottom when the page is previewed or published.''</div>
|-  
|-  
| colspan=3 style="border-top:1px solid #000;" |
| colspan=3 style="border-top:1px solid #000;" |
|-
|-
| Link to a category or file
| Link to a category or file
| <code><nowiki>[[:Category:Category name]]</nowiki></code> <br /><code><nowiki>[[:File:File name]]</nowiki></code>
| <pre>[[:Category:Category name]]
| [[:Category:Bulbapedia]] <br />[[:File:Bulbapedia logo.png]]
{{file|File name}}</pre>
| [[:Category:Bulbapedia]] <br />{{file|Bulbapedia logo.png}}
|-  
|-  
| colspan=3 style="border-top:1px solid #000;" |
| colspan=3 style="border-top:1px solid #000;" |
Line 176: Line 186:
|-
|-
| Redirect to another page
| Redirect to another page
<div style="background: #{{bulba color light}}; padding: 4px; margin: 3px; font-size:0.9em; {{roundy|8px}};">''Redirects must be placed at the start of the first line''</div>
<div style="background: #{{bulba color light}}; padding: 4px; margin: 3px; font-size:0.9em; {{roundy|8px}};">''Redirects must be placed at the start of the first line.''</div>
| <code><nowiki>#REDIRECT [[Target page]]</nowiki></code>
| <pre>#REDIRECT [[Target page]]</pre>
| [[File:Redirect.png|30px|link=]] [[Target page]]
| [[File:Redirect.png|30px|link=]] [[Target page]]
|-
|-
Line 183: Line 193:
|-
|-
| Redirect to a section of another page
| Redirect to a section of another page
| <code><nowiki>#REDIRECT [[Target page#anchorName]]</nowiki></code>
| <pre>#REDIRECT [[Target page#anchorName]]</pre>
| [[File:Redirect.png|30px|link=]] [[Target page#anchorName]]
| [[File:Redirect.png|30px|link=]] [[Target page#anchorName]]
|-
|-
Line 189: Line 199:
|-
|-
| Section headings
| Section headings
<div style="background: #{{bulba color light}}; padding: 4px; margin: 3px; font-size:0.9em; {{roundy|8px}};">''A Table of Contents will automatically be generated when four headings are added to an article''</div>
<div style="background: #{{bulba color light}}; padding: 4px; margin: 3px; font-size:0.9em; {{roundy|8px}};">''A table of contents will automatically be generated when four headings are added to an article. Do not use''&nbsp; =Level 1=&nbsp; ''as it is for page titles.''</div>
| <code><nowiki>==Level 2==</nowiki></code> <br /><code><nowiki>===Level 3===</nowiki></code> <br /><code><nowiki>====Level 4====</nowiki></code> <br /><code><nowiki>=====Level 5=====</nowiki></code> <br /><code><nowiki>======Level 6======</nowiki></code><br /><br /><div style="background: #{{bulba color light}}; padding: 4px; margin: 3px; font-size:0.9em; {{roundy|8px}};">''Do not use''&nbsp; =Level 1=&nbsp; ''as it is for page titles''</div>
| <pre>==Level 2==
|  
==Level 2==
===Level 3===
===Level 3===
====Level 4====
====Level 4====
=====Level 5=====
=====Level 5=====
======Level 6======
======Level 6======</pre>
| <!-- used the HTML heading syntax in the visible example because MediaWiki won't add the [edit] link to them (editing could cause bugs) -->
<h2>Level 2</h2>
<h3>Level 3</h3>
<h4>Level 4</h4>
<h5>Level 5</h5>
<h6>Level 6</h6>
|-
|-
! colspan=3 style="border-top:1px solid #000;" |
! colspan=3 style="border-top:1px solid #000;" |
|-
|-
| Bulleted list
| Bulleted list
| <code><nowiki>* One</nowiki></code> <br /><code><nowiki>* Two</nowiki></code> <br /><code><nowiki>** Two point one</nowiki></code> <br /><code><nowiki>* Three</nowiki></code>
| <pre>* One
* Two
** Two point one
* Three</pre>
|
|
* One
* One
Line 211: Line 228:
|-
|-
| Numbered list
| Numbered list
| <code><nowiki># One</nowiki></code> <br /><code><nowiki># Two</nowiki></code> <br /><code><nowiki>## Two point one</nowiki></code> <br /><code><nowiki># Three</nowiki></code>
| <pre># One
# Two
## Two point one
# Three</pre>
|
|
# One
# One
Line 222: Line 242:
| Indenting text
| Indenting text
<div style="background: #{{bulba color light}}; padding: 4px; margin: 3px; font-size:0.9em; {{roundy|8px}};">''This is used when replying on a talk page, to make it easier to follow conversations.''</div>
<div style="background: #{{bulba color light}}; padding: 4px; margin: 3px; font-size:0.9em; {{roundy|8px}};">''This is used when replying on a talk page, to make it easier to follow conversations.''</div>
| <code><nowiki>no indent (normal)</nowiki></code> <br /><code><nowiki>:first indent</nowiki></code> <br /><code><nowiki>::second indent</nowiki></code> <br /><code><nowiki>:::third indent</nowiki></code> <br /><code><nowiki>::::fourth indent</nowiki></code>
| <pre>no indent (normal)
:first indent
::second indent
:::third indent
::::fourth indent</pre>
| no indent (normal)
| no indent (normal)
:first indent
:first indent
Line 233: Line 257:
==See also==
==See also==
{{shortcut|1|H:CHEAT}}
{{shortcut|1|H:CHEAT}}
* [[Help:Editing]]
* [[Help:Wikicode]]
 
{{HelpNav}}


[[Category:Help]]
[[Category:Help]]

Latest revision as of 20:41, 4 November 2023

Wikicode Cheatsheet

Works anywhere in the text
Description Wikicode Result
Italics, bold, and both
''italics'', '''bold''', and '''''both'''''
italics, bold, and both
Bigger and smaller text
<big>Bigger text</big> and <small>smaller text</small>
Bigger text and smaller text
Colored text
<span style="color:#FFF">White text</span>
<mark>Highlighted text</mark>
<mark style="background:#FFA500;">Highlighted text</mark>
White text
Highlighted text
Highlighted text
Link to another page
[[Pokémon Trainer]]
[[Pokémon Trainer]]s
Pokémon Trainer
Pokémon Trainers
Change a link's text
[[Pokémon Trainer|Trainer]]
Trainer
Link to a section
[[Pokémon Crystal Version#Plot]]
[[Pokémon Crystal Version#Plot|Pokémon Crystal's story]]
Pokémon Crystal Version#Plot
Pokémon Crystal's story
Red links
Links to pages that don't exist are automatically red. Red links in articles often help by showing desired redirects or notable pages.
[[Ash's Mudkip]]
Ash's Mudkip
Plain website
https://www.bulbagarden.net/
https://www.bulbagarden.net/
Link to a website
[https://www.bulbagarden.net/]
[1]
Named link to a website
[https://www.bulbagarden.net/ Bulbagarden]
Bulbagarden
Citations, references, and footnotes
Sources in the article will appear where {{reflist}} is put, typically under a level 2 section heading (see below) towards the bottom of the page; text between {{ }} is for a template.
Hello<ref name="Poké">[https://www.pokemon.com/us/pokemon-news/ ''Pokémon News'' - Pokémon.com]</ref> World!<ref>[https://www.nintendo.com/whatsnew/ ''News'' - Nintendo.com]</ref>

Hello again!<ref name="Poké" /><ref>[https://www.pokemoncenter.com/category/new-releases ''New Releases'' - Pokémon Center]</ref>

References: {{reflist}}
Hello[1] World![2]

Hello again![1][3]

References:
Citation needed
This statement is true.{{fact}}
This statement is true.[citation needed]
Signature
Sign your contributions when posting on a talk page. Do not sign in an article, only on talk pages.
~~~~
Username (talk) 16:57, 11 May 2024 (UTC)
Hide text somewhere for editors
<!--A note for others editing the page-->
Add an image
[[File:Bulbapedia logo.png|thumb|Caption]]
Caption
Add a page to a category
Placed near the bottom of the page.
[[Category:Category name]]
Shows "Category name" in a bar at bottom when the page is previewed or published.
Link to a category or file
[[:Category:Category name]]
{{file|File name}}
Category:Bulbapedia
Bulbapedia logo.png
Blockquotes
Text before
<blockquote>
<p>Quoted paragraph</p>
<p>Name, Source, Reference</p>
</blockquote>
Text after
Text before

Quoted paragraph

Name, Source, Reference

Text after

Table
{| class="roundy" style="background: #FFF; border: 2px solid #000;"
|+ Caption
|-
! Column 1
! Column 2
|-
| Row 1
| Row 1/Col 2
|-
| Row 2
| Row 2/Col 2
|}
Caption
Column 1 Column 2
Row 1 Row 1/Col 2
Row 2 Row 2/Col 2

Works only at the beginning of lines
Description Wikicode Result
Redirect to another page
Redirects must be placed at the start of the first line.
#REDIRECT [[Target page]]
Redirect.png Target page
Redirect to a section of another page
#REDIRECT [[Target page#anchorName]]
Redirect.png Target page#anchorName
Section headings
A table of contents will automatically be generated when four headings are added to an article. Do not use  =Level 1=  as it is for page titles.
==Level 2==
===Level 3===
====Level 4====
=====Level 5=====
======Level 6======

Level 2

Level 3

Level 4

Level 5
Level 6
Bulleted list
* One
* Two
** Two point one
* Three
  • One
  • Two
    • Two point one
  • Three
Numbered list
# One
# Two
## Two point one
# Three
  1. One
  2. Two
    1. Two point one
  3. Three
Indenting text
This is used when replying on a talk page, to make it easier to follow conversations.
no indent (normal)
:first indent
::second indent
:::third indent
::::fourth indent
no indent (normal)
first indent
second indent
third indent
fourth indent

See also

Shortcut
H:CHEAT