Help:Editing: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
(nice.)
m (Protected "Help:Editing" ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(59 intermediate revisions by 6 users not shown)
Line 1: Line 1:
This page is a reference and a tutorial for Mediawiki code, which is the code used on this Wiki. Should there be something that you cannot find here, but want explained, ask [[Help talk:Editing|here]].
{{shortcut|P:EDITING}}
This page is a reference and a tutorial for basic Mediawiki syntax, which is the code used on this wiki to produce formatted articles from plain text. More advanced techniques can be found in [[Help:Editing/Advanced techniques]]. If there is something that you cannot find in either of these places, but want explained, ask in [[Help talk:Editing|this guide's discussion page]].


== Basic Code ==
== Text ==
These are the most basic and most used pieces of code.
Text entered into the editor will appear in the article as standard text.


For ''italicizing'' and '''bolding''' text, use 2 or 3 apostrophes:
To separate paragraphs, there must be an empty line between them.
:<pre><nowiki>''this is italic''</nowiki></pre>
{|class="wikitable"
:<pre><nowiki>'''this is bold'''</nowiki></pre>
!Code!!Result
:<pre><nowiki>'''''this is both italic and bold'''''</nowiki></pre>
|-
|<pre><nowiki>This is some text.


The "gallery" tags create a gallery of images:
This is a new paragraph.</nowiki></pre>
<pre><nowiki><gallery>
|This is some text.
Image:first image
Image:second image|this one has a caption
Image:last image
</gallery></nowiki></pre>


To make a line across the page, use four hyphens:
This is a new paragraph.
:<pre><nowiki>----</nowiki></pre>
|}


To indent a paragraph of text, start the line with a colon. Use more to indent further:
=== Sections ===
<pre><nowiki>Normal text
Articles are divided into sections, and there can be multiple levels of sections. To make a paragraph of text into a section heading, surround it with 2 or more equals signs.
&#58;An indented line
{|class="wikitable"
&#58;&#58;A line indented twice</nowiki></pre>
!Code!!Result
|-
|<pre><nowiki>== Main heading ==
Paragraph.


To create a bulleted list, just start lines with asterisks:
=== Subheading ===
<pre><nowiki>*This line is the first bullet point.
Paragraph.
*This will become the second.</nowiki></pre>


A numbered list is similar, but with # symbols instead:
==== Minor heading ====
<pre><nowiki>#Point number one.
Paragraph.</nowiki></pre>
#This line is numbered '2.'.</nowiki></pre>
|
<span style="font-size: 160%; font-family: serif">Main heading</span>
----
Paragraph.


Bulleted and numbered lists can be combined for more complicated lists.  Experiment to see how they work in combination.
<span style="font-size: 125%; font-weight: bold;">Subheading</span>


To display plain text that is pre-formatted, preserving the line breaks it has, use the ''<nowiki><pre></nowiki>'' tag:
Paragraph.
<pre>&lt;pre&gt;Everything in here
retains the line breaks
it has.&lt;/pre&gt;</pre>


To embed a YouTube video:
<span style="font-size: 105%; font-weight: bold;">Minor heading</span>
:<pre><nowiki><youtube>video ID</youtube></nowiki></pre>


To have a page automatically redirect to a different one, use:
Paragraph.
:<pre><nowiki>#REDIRECT[[redirect location]]</nowiki></pre>
|}


If a display of wiki coding is wanted, use the "nowiki" HTML-like tag around the code. The following produces the text "<nowiki>[[Main Page]]</nowiki>" rather than creating a link:
A table of contents is automatically generated when there are more than 4 sections in an article.
:<pre><nowiki><nowiki>[[Main Page]]</nowiki></nowiki></pre>


If you do not wish to include something on a page but want it on another page that includes that page, add "includeonly" tags around the code:
To make a piece of text function like a heading but not appear in the table of contents, place a semicolon at the start of the line.
:<pre><nowiki><includeonly>code to be included only</includeonly></nowiki></pre>
{|class="wikitable"
!Code!!Result
|-
|<pre><nowiki>;Obstacles
*Dirt wall
*Bridge


Similarly, information in "noinclude" tags is only displayed on the original page:
;Enemies
:<pre><nowiki><noinclude>this is not included in pages that include this one</noinclude></nowiki></pre>
*Bulborb
*Fiery Blowhog</nowiki></pre>
|
;Obstacles
*Dirt wall
*Bridge


As well as this, a fair amount of HTML is functional.  Tags such as ''<nowiki><span></nowiki>'' and ''<nowiki><div></nowiki>'' can be given a ''style'' attribute to add some CSS, in the form ''<nowiki><span style="CSS here"/>content</span></nowiki>''.
;Enemies
*Bulborb
*Fiery Blowhog
|}


=== Linking ===
=== Links ===
To add an internal link (that is, to another page in the [[Pikipedia]]), enclose the page name in double square parentheses. Correct capitalization is required for every letter but the first:
To link to another page, surround a piece of text with 2 square brackets. This will create a link to the article within the square brackets.
:<pre><nowiki>[[insert page name here]]</nowiki></pre>
{|class="wikitable"
!Code!!Result
|-
|<pre><nowiki>A [[Bulborb]] is found in the [[Garden of Hope]].</nowiki></pre>
|A [[Bulborb]] is found in the [[Garden of Hope]].
|}


To change the text that is displayed, a pipe character is used to separate the link and text shown:
To change the text displayed in the link, place a vertical bar between the link text and the displayed text.
:<pre><nowiki>[[actual page name|displayed text]]</nowiki></pre>
{|class="wikitable"
!Code!!Result
|-
|<pre><nowiki>Caves are [[Randomization|randomly generated]] by arranging [[Cave unit|rooms]].</nowiki></pre>
|Caves are [[Randomization|randomly generated]] by arranging [[Cave unit|rooms]].
|}


It is also possible to link to a specific section of a page. For that, add a number sign and then the name of the section, like this:
It is possible to link to sections of an article by placing a # sign between the article name and the section name. Omitting the article name will link to another section of the current article.
:<pre><nowiki>[[article name#name of section]]</nowiki></pre>
{|class="wikitable"
!Code!!Result
|-
|<pre><nowiki>[[Ship part#List]] is a section of the [[ship part]] article. See [[#Sections|sections]] for more information about sections.</nowiki></pre>
|[[Ship part#List]] is a section of the [[ship part]] article. See [[#Sections|sections]] for more information about sections.
|}


To link to a page in another Wikia Wiki, add "c:Wiki name:" to the start of the link.  The Wiki name is not necessarily its title, but the subdomain it is located at, as seen in the URL. The Pikipedia, for example, is at:
Note that the capitalization of article titles in links must be correct for the link to work (except for the first letter in the title, which can have any capitalization).
:<pre><nowiki>[[c:Pikmin:Main Page]]</nowiki></pre>


==== External Links ====
=== Formatting ===
To add an external link (a link to a website outside of Wikia, Mediawiki or Wikipedia), use single square parentheses. It is necessary to include the prefix (<nowiki>http://, https://, ftp://, irc://</nowiki>, etc.):
To make text italic or bold, surround it with 2 or 3 apostrophes.
:<pre><nowiki>[http://web_address]</nowiki></pre>
{|class="wikitable"
!Code!!Result
|-
|<pre><nowiki>''This text is italic.''


Again, it is possible to change the displayed text. This time, however, simply leave a space between the address and the text. The following example displays [http://google.com Google link]:
'''This text is bold.'''
:<pre><nowiki>[http://google.com Google link]</nowiki></pre>


==Media==
'''''This text is italic and bold.'''''</nowiki></pre>
This includes images and audio files. To include them on pages, link to them as you would an article.  As with categories, adding a colon before the namespace creates a link rather than showing the media.
|''This text is italic.''


*To show an image:
'''This text is bold.'''
:<pre><nowiki>[[Image:image name]]</nowiki></pre>
*To  link to the description page of an image.
:<pre><nowiki>[[:Image:image name]]</nowiki></pre>


To add a caption, add "|thumb|caption text" within the brackets. You can also align left, center or right (thumbnails are automatically aligned right) or resize the image.  Look at the following examples:
'''''This text is italic and bold.'''''
|}


*Centred image with a width of 350 pixels:
To make a bulleted list, put an asterisk at the start of each line. Using multiple asterisks will indent the list.
:<pre><nowiki>[[Image:image name|350px|center]]</nowiki></pre>
{|class="wikitable"
*Thumbnail image aligned left with the caption "this is an image":
!Code!!Result
:<pre><nowiki>[[Image:image name|thumb|left|this is an image]]</nowiki></pre>
|-
|<pre><nowiki>Enemies:
*Grub-dog family
**Bulborb
**Orange Bulborb
*Breadbug family
**Dwarf Bulborb
**Dwarf Orange Bulborb</nowiki></pre>
|Enemies:
*Grub-dog family
**Bulborb
**Orange Bulborb
*Breadbug family
**Dwarf Bulborb
**Dwarf Orange Bulborb
|}


*To link to the image file itself rather than the description page:
A numbered list is similar, but with # symbols instead.
:<pre><nowiki>[[Media:image name]]</nowiki></pre>
{|class="wikitable"
!Code!!Result
|-
|<pre><nowiki>Areas:
#The Impact Site
#The Forest of Hope
#The Forest Navel
#The Distant Spring
#The Final Trial</nowiki></pre>
|Areas:
#The Impact Site
#The Forest of Hope
#The Forest Navel
#The Distant Spring
#The Final Trial
|}


==Categories==
A paragraph of text can be indented by starting it with a colon. Using multiple colons will indent it further. This is commonly used in talk pages to indicate a reply.
If you want to add a page to a category, simply add:
{|class="wikitable"
:<pre><nowiki>[[Category:Category name]]</nowiki></pre>
!Code!!Result
|-
|<pre><nowiki>This is a paragraph.
:This is a reply to that paragraph.
::This is another reply.</nowiki></pre>
|This is a paragraph.
:This is a reply to that paragraph.
::This is another reply.
|}


If you want to make a link to a category and don't want to add the page to that specific category, add a colon in front of "Category". For example, to link to Category:2-Player Locations, type:
When writing a dash, it's preferable to use the HTML code for the dash rather than the character itself, which can be confused with a hyphen. This can be done by writing the text <code><nowiki>&amp;ndash;</nowiki></code> in place of the dash. The same thing can be done (with different codes) for other special characters.
:<pre><nowiki>[[:Category:2-Player Locations]]</nowiki></pre>
{|class="wikitable"
!Code!!Result
|-
|<pre><nowiki>In ''Pikmin'', Yellow Pikmin can carry [[bomb-rock]]s &amp;ndash; an ability necessary to access certain sections of areas.</nowiki></pre>
|In ''Pikmin'', Yellow Pikmin can carry [[bomb-rock]]s &ndash; an ability necessary to access certain sections of areas.
|}


==Tables==
== Images ==
Tables start with <code>{|</code> and end with <code>|}</code>.
To make an image appear on an article, link to the page containing the image, which will start with <code>File:</code> and end with the image's file format.
*Column headers are indicated using <code>!headername</code> following the start of the table.  Use two !s to separate headers if placed on the same line.
{|class="wikitable"
*A new row is indicated with <code>|-</code>.
!Code!!Result
*Table cells are started with <code>|</code>; like headers, use two when placing them on the same line of code.
|-
*Styles can be applied at any level - table, row or cell - by adding the code <code>style="style goes here"</code>.  The style is applied using CSS.
|<pre><nowiki>[[File:SSBB Olimar.jpg]]</nowiki></pre>
*Table classes are available for use, applied by adding <code>class="class name"</code> at the start of the table.  There exist:
|[[File:SSBB Olimar.jpg]]
**'''wikitable''': a generic grey style.
|}
**'''sortable''': makes the rows sortable by any header.
**'''collapsible''': adds a 'show/hide' button; add '''collapsed''' to have the table start collapsed.


For example:
This produces an image with no frame and at its original resolution, which is generally not a good thing. To fix these things, put <code>|thumb</code> after the file name, which will turn it into a thumbnail.
<pre>{| style="border: 2px solid #0b0;"
{|class="wikitable"
! Header1 !! Header2 !! Header3
!Code!!Result
|-
|-
| Cell 1 || Cell 2 || Cell 3
|<pre><nowiki>[[File:SSBB Olimar.jpg|thumb]]</nowiki></pre>
|- style="background: #faf;"
|[[File:SSBB Olimar.jpg|thumb]]
| Another cell
|}
| style="color: #00b; border: 3px inset #000;" | Cell again || Last cell
|}</pre>


produces:
It is possible to add a caption to images by putting text after another vertical bar.
{| style="border: 2px solid #0b0;"
{|class="wikitable"
! Header1 !! Header2 !! Header3
!Code!!Result
|-
|-
| Cell 1 || Cell 2 || Cell 3
|<pre><nowiki>[[File:SSBB Olimar.jpg|thumb|Olimar in ''Super Smash Bros. Brawl''.]]</nowiki></pre>
|- style="background: #faf;"
|[[File:SSBB Olimar.jpg|thumb|Olimar in ''Super Smash Bros. Brawl''.]]
| Another cell
| style="color: #00b; border: 3px inset #000;" | Cell again || Last cell
|}
|}


==Magic words==
Finally, it is possible to change the size of images and their position on the page with additional pieces of text before the caption. <code>250px</code> will make the image 250 pixels wide (this number can be changed, and the default size is 200 pixels wide), and <code>left</code> will place the image on the left of the screen (<code>center</code> and <code>right</code> also work, and right is the default position).
So-called "magic words" are pieces of code that affect the layout of a page; here are a few of the commoner ones. Note that there are '''two''' underscores on either side of each:
{|class="wikitable"
!Code!!Result
|-
|<pre><nowiki>[[File:SSBB Olimar.jpg|thumb|left|250px|Olimar in ''Super Smash Bros. Brawl''.]]</nowiki></pre>
|[[File:SSBB Olimar.jpg|thumb|left|250px|Olimar in ''Super Smash Bros. Brawl''.]]
|}


An alternative way to show images is in a gallery. Galleries display images at small sizes in a grid. To make one, surround a section with <code><nowiki><gallery></nowiki></code> and <code><nowiki></gallery></nowiki></code>, and place each file name (without the <code>File:</code> prefix) on a new line. Image captions can be placed after a vertical bar.
{|class="wikitable"
{|class="wikitable"
!Code!!Effect
!Code!!Result
|-
|-
|<nowiki>__NOTOC__</nowiki>||Hides the table of contents (ToC)
|<pre><nowiki><gallery>
|-
PuffyBlowhog.png|The Puffy Blowhog in ''Pikmin 2''.
|<nowiki>__TOC__</nowiki>||Forces the ToC to appear where the word is placed
Puffy Blowhog P3 side view.jpg|The Puffy Blowhog in ''Pikmin 3''.
|-
</gallery></nowiki></pre>
|<nowiki>__FORCETOC__</nowiki>||Forces the ToC to appear in the normal place for a page with any number of sections
|<gallery>
|-
PuffyBlowhog.png|The Puffy Blowhog in ''Pikmin 2''.
|<nowiki>__NOEDITSECTION__</nowiki>||Removes 'edit' links on sections
Puffy Blowhog P3 side view.jpg|The Puffy Blowhog in ''Pikmin 3''.
|-
</gallery>
|<nowiki>__NOGALLERY__</nowiki>||Replaces image thumbnails with links in categories
|-
|<nowiki>__END__</nowiki>||Forces the page to end there, allowing extra lines at the end of the page
|-
|<nowiki>__HIDDENCAT__</nowiki>||Hides category the word is placed on from the footer of pages in it
|}
|}
Note that the mobile version of the website displays images differently, so some of these formatting changes may make no difference depending on your device.


==Templates and inclusions==
== Templates ==
Any page can be included in another page by way of enclosing it in double wiggly parentheses. Write the page name as you would in a link.  This includes everything on that other page wherever the code is put:
Templates are special pages starting with "Template:" that can be included on other pages. This allows similar pieces of MediaWiki code to appear in multiple articles, making consistency between pages easier, among other benefits.
:<pre><nowiki>{{Page name to be included}}</nowiki></pre>


Usually, when a number of pages need similar information or layouts, templates are used, which are pages in the Template namespace created to be included in other pages.  They make pages shorter and remove complex code, and allow many to be altered at the same time.
To make a template appear in another page, surround its name (without the "Template:" prefix) with 2 curly brackets.


It is possible to pass information to templates when including them, which make the content displayed different. These are either named or numbered, and used as follows:
As an example, to indicate that an article or a section of an article is a stub (meaning it needs expansion), you can write <code><nowiki>{{stub}}</nowiki></code>.
:<pre><nowiki>{{Template name|a piece of information|another piece of information}}</nowiki></pre>
{|class="wikitable"
!Code!!Result
|-
|<pre><nowiki>{{stub}}</nowiki></pre>
|{{stub|nocat=y}}
|}
 
Many templates have arguments, which are additional pieces of information that influence the template. Arguments are separated by vertical bars.


In the template, these are referred to as "{{{1}}}", "{{{2}}}" and so on, and can be put anywhere, as if they were text or code.  For example, the following template, included as above, would display "This template contains a piece of information and another piece of information.":
An example of this is the {{tem|date}} template, which is used to display dates in a standardized format. It can have 3 arguments, which in order represent the day, month, and the year.
:<pre><nowiki>This template contains {{{1}}} and {{{2}}}.</nowiki></pre>
{|class="wikitable"
!Code!!Result
|-
|<pre><nowiki>{{date|14|September|2010}}</nowiki></pre>
|{{date|14|September|2010}}
|-
|<pre><nowiki>''Pikmin 3 Deluxe'' released on {{date|30|October|2020}}.</nowiki></pre>
|''Pikmin 3 Deluxe'' released on {{date|30|October|2020}}.
|}


These can be named to make things easier to follow:
Arguments can have names, which means that instead of just separating the arguments by vertical bars, each argument contains a name and a value connected by an equals sign.


'''Template:'''
Some templates are more complex, featuring many arguments. An example of this is {{tem|infobox upgrade}}, which is used to show basic information about [[gear]]. These include which games the upgrade appears in, an image of the gear, its function, and how to obtain it. To make large templates like this easier to work with, it's recommended to place each argument on its own line. For the [[Dodge Whistle]], the template would look like this:
:<pre><nowiki>My name is {{{name}}} and I am {{{age}}} years old.</nowiki></pre>
{|class="wikitable"
!Code!!Result
|-
|<pre><nowiki>{{infobox upgrade
|p3          = y
|name         = Dodge Whistle
|icon        = Dodge Whistle icon.png
|image        = DodgeWhistleArt.png
|caption      = The Dodge Whistle's capsule.
|function    = Allows leaders and Pikmin to dodge
|requirements = Retrieve the capsule
}}</nowiki></pre>
|{{infobox upgrade
|p3          = y
|name        = Dodge Whistle
|icon        = Dodge Whistle icon.png
|image        = DodgeWhistleArt.png
|caption      = The Dodge Whistle's capsule.
|function    = Allows leaders and Pikmin to dodge
|requirements = Retrieve the capsule
}}
|}


'''Code:'''
Template pages will have information on what the template does and how to use it, so check each template's page for more information.
:<pre><nowiki>{{Template name|name=Bob|age=5}}</nowiki></pre>


'''Result:'''
== Categories ==
:<pre><nowiki>My name is Bob and I am 5 years old.</nowiki></pre>
Pages can be included in categories, which allow related pages to be grouped together for navigation purposes. Some examples of categories are [[:Category:Bosses]], [[:Category:Menus]], and [[:Category:2-Player Battle images]]. To include an article, image, category, or any other page inside a category, create a link to that category anywhere in the page (but preferably at the bottom). It will not appear as a link, and instead the page will be added to the category. A list of categories a page is in can be found at the bottom of the page in the desktop version of the site.


==Signatures==
{|class="wikitable"
===How to sign a post===
!Code!!Result (see bottom of page)
To sign your name at the end of your posts, type four tildes.
|-
|<pre><nowiki>[[Category:Help]]</nowiki></pre>
|[[Category:Help]]
|}


<nowiki>~~~~</nowiki>, for me, produces [[User:Prezintenden|<b><span style="color:Orange">Prez</span></b>]]<b>[[User talk:Prezintenden|<span style="color:Gray">intenden</span>]]</b> 20:35, 29 January 2008 (UTC)
A faster way of adding, changing, or removing categories is by using {{w|WP:HC|HotCat}}, enabled via [[Special:Preferences|preference]]s. Note that only [[Pikipedia:Users|registered users]] have access to this tool, while [[Pikipedia:IP addresses|logged-out editors]] are required to [[Special:CreateAccount|create an account]] to utilize it.


Three tildes will only display your signature without the time, and five will only show the time without your sig.
[[File:HotCat demonstration.png|center|800px]]
{{clear}}


===Custom signatures===
== Other ==
To make a custom signature, first make a subpage to your userpage called "User:yourname/sig"; this can be done by adding ''/sig'' to the URL in the address bar while at your userpage. On that page, you can add a link to your userpage if you like, and edit your username as you want it to appear in your signature, maybe adding colour, a picture, or a link to your talk page.
=== Redirect pages ===
Redirect pages are special pages that automatically go to another page when someone searches them or clicks on a link to them. They're useful when an article has multiple things it could be called. To create a redirect page, start it with <code><nowiki>#REDIRECT</nowiki></code> and then link to the article. An example of this is [[Olimar]], which contains <code><nowiki>#REDIRECT [[Captain Olimar]]</nowiki>.</code>


After you fixed up your custom sig to your liking, you now (quite obviously) want to display it. To do so, save your creation, then go to your preferences screen in the upper right hand corner. In the "Nickname" field (right under your email address), add ''<nowiki>{{SUBST:User:yourname/sig}}</nowiki>'', make sure that "Custom signature" is checked, and save. Now when you sign your name, your sig should be replaced by your custom sig.
=== Talk pages ===
In talk pages, you can end your post with a signature, which contains your username and the date and time of your post. To sign your posts, put 4 tildes (<code><nowiki>~~~~</nowiki></code>) at the end of the post. (3 tildes will produce just the username, and 5 tildes will produce just the time and date.) It's possible to customize your signature in [[Special:Preferences|your preferences page]]. Below is an example of a custom signature.
{|class="wikitable"
!Code!!Result
|-
|<pre><nowiki>~~~~</nowiki></pre>
|&mdash; '''{''[[User:Espyo|Espyo]]''<sup>[[User talk:Espyo|T]]</sup>}''' 12:00, January 1, 2020 (EST)
|}


*Example: Take a look at [[User:Crystal lucario/Sig]], [[User:Prezintenden/sig]], or [[User:Greenpickle/sig]] as examples of how to turn the coding into something nifty. If you find some other user's sig you like, you can take a look at the source (in most cases) by adding ''/sig'' to the end of the user in question's userpage.
=== Tables ===
For some types of information, it may be practical to display it on a table. Since table syntax can be complicated, it is described at [[Help:Tables]] instead of on this page.


Note that this now makes it possible to write <nowiki>{{User:yourname/sig}}</nowiki> on a talk page. This will "update" your signature on pages if you perform changes to your sig. This will not display time, though, but adding <nowiki>~~~~~</nowiki> will make up for that if you wish.
== Pikipedia standards ==
[[Pikipedia:Policies and guidelines|Pikipedia's policies and guidelines]] contain useful information in making sure edits fit Pikipedia's style. Here are a few tips:
* Always italicize the names of games.
* Don't refer to the player as "you", except in [[Pikipedia:Guides|guide]] sections.
* [[Help:Files|Images]] should always have a proper description and license.
* If you notice a problem with an article, such as a lack of information or confusing writing, and don't know how to fix it, place a [[:Category:Maintenance templates|maintenance template]] on it so that others can know to fix it. There are several to choose from, including {{tem|stub}} and {{tem|clean}}.


==Pikipedia Standards==
==See also==
*If an article is seriously lacking in vital information, call it a stub by putting ''<nowiki>{{stub}}</nowiki>'' at the top of the page.
*{{w|Help:Wikitext|Wikipedia's guide to MediaWiki syntax}}
*Articles that contain a fair amount of content but have layout problems, are badly written or have any other serious problem should be added to the "Clean it up" category by adding ''<nowiki>{{clean}}</nowiki>'' to the top of the page.
*Articles that qualify for deletion can be submitted for it by adding ''<nowiki>{{delete|reason goes here}}</nowiki>'' to the page.  Reasons an article would need to be deleted can be found [[Pikmin:Pages_for_deletion|here]].
*Images that are screenshots must contain the text ''<nowiki>{{screenshot}}</nowiki>'' to add a copyright notice and categorize them.  For other image tags and general file information, see [[Help:Files]].


[[Category:Help|{{PAGENAME}}]]
{{help}}

Latest revision as of 08:27, April 29, 2024

Shortcut:
P:EDITING

This page is a reference and a tutorial for basic Mediawiki syntax, which is the code used on this wiki to produce formatted articles from plain text. More advanced techniques can be found in Help:Editing/Advanced techniques. If there is something that you cannot find in either of these places, but want explained, ask in this guide's discussion page.

Text

Text entered into the editor will appear in the article as standard text.

To separate paragraphs, there must be an empty line between them.

Code Result
This is some text.

This is a new paragraph.
This is some text.

This is a new paragraph.

Sections

Articles are divided into sections, and there can be multiple levels of sections. To make a paragraph of text into a section heading, surround it with 2 or more equals signs.

Code Result
== Main heading ==
Paragraph.

=== Subheading ===
Paragraph.

==== Minor heading ====
Paragraph.

Main heading


Paragraph.

Subheading

Paragraph.

Minor heading

Paragraph.

A table of contents is automatically generated when there are more than 4 sections in an article.

To make a piece of text function like a heading but not appear in the table of contents, place a semicolon at the start of the line.

Code Result
;Obstacles
*Dirt wall
*Bridge

;Enemies
*Bulborb
*Fiery Blowhog
Obstacles
  • Dirt wall
  • Bridge
Enemies
  • Bulborb
  • Fiery Blowhog

Links

To link to another page, surround a piece of text with 2 square brackets. This will create a link to the article within the square brackets.

Code Result
A [[Bulborb]] is found in the [[Garden of Hope]].
A Bulborb is found in the Garden of Hope.

To change the text displayed in the link, place a vertical bar between the link text and the displayed text.

Code Result
Caves are [[Randomization|randomly generated]] by arranging [[Cave unit|rooms]].
Caves are randomly generated by arranging rooms.

It is possible to link to sections of an article by placing a # sign between the article name and the section name. Omitting the article name will link to another section of the current article.

Code Result
[[Ship part#List]] is a section of the [[ship part]] article. See [[#Sections|sections]] for more information about sections.
Ship part#List is a section of the ship part article. See sections for more information about sections.

Note that the capitalization of article titles in links must be correct for the link to work (except for the first letter in the title, which can have any capitalization).

Formatting

To make text italic or bold, surround it with 2 or 3 apostrophes.

Code Result
''This text is italic.''

'''This text is bold.'''

'''''This text is italic and bold.'''''
This text is italic.

This text is bold.

This text is italic and bold.

To make a bulleted list, put an asterisk at the start of each line. Using multiple asterisks will indent the list.

Code Result
Enemies:
*Grub-dog family
**Bulborb
**Orange Bulborb
*Breadbug family
**Dwarf Bulborb
**Dwarf Orange Bulborb
Enemies:
  • Grub-dog family
    • Bulborb
    • Orange Bulborb
  • Breadbug family
    • Dwarf Bulborb
    • Dwarf Orange Bulborb

A numbered list is similar, but with # symbols instead.

Code Result
Areas:
#The Impact Site
#The Forest of Hope
#The Forest Navel
#The Distant Spring
#The Final Trial
Areas:
  1. The Impact Site
  2. The Forest of Hope
  3. The Forest Navel
  4. The Distant Spring
  5. The Final Trial

A paragraph of text can be indented by starting it with a colon. Using multiple colons will indent it further. This is commonly used in talk pages to indicate a reply.

Code Result
This is a paragraph.
:This is a reply to that paragraph.
::This is another reply.
This is a paragraph.
This is a reply to that paragraph.
This is another reply.

When writing a dash, it's preferable to use the HTML code for the dash rather than the character itself, which can be confused with a hyphen. This can be done by writing the text &ndash; in place of the dash. The same thing can be done (with different codes) for other special characters.

Code Result
In ''Pikmin'', Yellow Pikmin can carry [[bomb-rock]]s &ndash; an ability necessary to access certain sections of areas.
In Pikmin, Yellow Pikmin can carry bomb-rocks – an ability necessary to access certain sections of areas.

Images

To make an image appear on an article, link to the page containing the image, which will start with File: and end with the image's file format.

Code Result
[[File:SSBB Olimar.jpg]]
Artwork of Captain Olimar from Super Smash Bros. Brawl.

This produces an image with no frame and at its original resolution, which is generally not a good thing. To fix these things, put |thumb after the file name, which will turn it into a thumbnail.

Code Result
[[File:SSBB Olimar.jpg|thumb]]
Artwork of Captain Olimar from Super Smash Bros. Brawl.

It is possible to add a caption to images by putting text after another vertical bar.

Code Result
[[File:SSBB Olimar.jpg|thumb|Olimar in ''Super Smash Bros. Brawl''.]]
Artwork of Captain Olimar from Super Smash Bros. Brawl.
Olimar in Super Smash Bros. Brawl.

Finally, it is possible to change the size of images and their position on the page with additional pieces of text before the caption. 250px will make the image 250 pixels wide (this number can be changed, and the default size is 200 pixels wide), and left will place the image on the left of the screen (center and right also work, and right is the default position).

Code Result
[[File:SSBB Olimar.jpg|thumb|left|250px|Olimar in ''Super Smash Bros. Brawl''.]]
Artwork of Captain Olimar from Super Smash Bros. Brawl.
Olimar in Super Smash Bros. Brawl.

An alternative way to show images is in a gallery. Galleries display images at small sizes in a grid. To make one, surround a section with <gallery> and </gallery>, and place each file name (without the File: prefix) on a new line. Image captions can be placed after a vertical bar.

Code Result
<gallery>
PuffyBlowhog.png|The Puffy Blowhog in ''Pikmin 2''.
Puffy Blowhog P3 side view.jpg|The Puffy Blowhog in ''Pikmin 3''.
</gallery>

Note that the mobile version of the website displays images differently, so some of these formatting changes may make no difference depending on your device.

Templates

Templates are special pages starting with "Template:" that can be included on other pages. This allows similar pieces of MediaWiki code to appear in multiple articles, making consistency between pages easier, among other benefits.

To make a template appear in another page, surround its name (without the "Template:" prefix) with 2 curly brackets.

As an example, to indicate that an article or a section of an article is a stub (meaning it needs expansion), you can write {{stub}}.

Code Result
{{stub}}
The leaf texture used in Pikmin 2's Challenge Mode menu. (Used on Pikipedia in the {{stub}} template.)

This article is a stub. You can help Pikipedia by expanding it.

Many templates have arguments, which are additional pieces of information that influence the template. Arguments are separated by vertical bars.

An example of this is the {{date}} template, which is used to display dates in a standardized format. It can have 3 arguments, which in order represent the day, month, and the year.

Code Result
{{date|14|September|2010}}
September 14th, 2010
''Pikmin 3 Deluxe'' released on {{date|30|October|2020}}.
Pikmin 3 Deluxe released on October 30th, 2020.

Arguments can have names, which means that instead of just separating the arguments by vertical bars, each argument contains a name and a value connected by an equals sign.

Some templates are more complex, featuring many arguments. An example of this is {{infobox upgrade}}, which is used to show basic information about gear. These include which games the upgrade appears in, an image of the gear, its function, and how to obtain it. To make large templates like this easier to work with, it's recommended to place each argument on its own line. For the Dodge Whistle, the template would look like this:

Code Result
{{infobox upgrade
|p3           = y
|name         = Dodge Whistle
|icon         = Dodge Whistle icon.png
|image        = DodgeWhistleArt.png
|caption      = The Dodge Whistle's capsule.
|function     = Allows leaders and Pikmin to dodge
|requirements = Retrieve the capsule
}}
Dodge Whistle Icon.
Image of the Dodge Whistle capsule.
The Dodge Whistle's capsule.
Games Pikmin 3
Function Allows leaders and Pikmin to dodge
How to obtain Retrieve the capsule

Template pages will have information on what the template does and how to use it, so check each template's page for more information.

Categories

Pages can be included in categories, which allow related pages to be grouped together for navigation purposes. Some examples of categories are Category:Bosses, Category:Menus, and Category:2-Player Battle images. To include an article, image, category, or any other page inside a category, create a link to that category anywhere in the page (but preferably at the bottom). It will not appear as a link, and instead the page will be added to the category. A list of categories a page is in can be found at the bottom of the page in the desktop version of the site.

Code Result (see bottom of page)
[[Category:Help]]

A faster way of adding, changing, or removing categories is by using HotCat, enabled via preferences. Note that only registered users have access to this tool, while logged-out editors are required to create an account to utilize it.

How HotCat looks like when it is enabled via preferences.

Other

Redirect pages

Redirect pages are special pages that automatically go to another page when someone searches them or clicks on a link to them. They're useful when an article has multiple things it could be called. To create a redirect page, start it with #REDIRECT and then link to the article. An example of this is Olimar, which contains #REDIRECT [[Captain Olimar]].

Talk pages

In talk pages, you can end your post with a signature, which contains your username and the date and time of your post. To sign your posts, put 4 tildes (~~~~) at the end of the post. (3 tildes will produce just the username, and 5 tildes will produce just the time and date.) It's possible to customize your signature in your preferences page. Below is an example of a custom signature.

Code Result
~~~~
{EspyoT} 12:00, January 1, 2020 (EST)

Tables

For some types of information, it may be practical to display it on a table. Since table syntax can be complicated, it is described at Help:Tables instead of on this page.

Pikipedia standards

Pikipedia's policies and guidelines contain useful information in making sure edits fit Pikipedia's style. Here are a few tips:

  • Always italicize the names of games.
  • Don't refer to the player as "you", except in guide sections.
  • Images should always have a proper description and license.
  • If you notice a problem with an article, such as a lack of information or confusing writing, and don't know how to fix it, place a maintenance template on it so that others can know to fix it. There are several to choose from, including {{stub}} and {{clean}}.

See also