Help:Editing: Difference between revisions
m (Protected "Help:Editing" ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only administrators] (indefinite))) |
|||
(63 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
This page is a reference and a tutorial for Mediawiki | {{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]]. | |||
== | == 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. | |||
{|class="wikitable" | |||
!Code!!Result | |||
|- | |||
|<pre><nowiki>This is some text. | |||
This is a new paragraph.</nowiki></pre> | |||
|This is some text. | |||
This is a new paragraph. | |||
|} | |||
To | === Sections === | ||
<pre><nowiki> | 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. | ||
{|class="wikitable" | |||
!Code!!Result | |||
|- | |||
|<pre><nowiki>== Main heading == | |||
Paragraph. | |||
=== Subheading === | |||
Paragraph. | |||
==== Minor heading ==== | |||
< | Paragraph.</nowiki></pre> | ||
| | |||
<span style="font-size: 160%; font-family: serif">Main heading</span> | |||
---- | |||
Paragraph. | |||
<span style="font-size: 125%; font-weight: bold;">Subheading</span> | |||
Paragraph. | |||
<span style="font-size: 105%; font-weight: bold;">Minor heading</span> | |||
: | |||
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. | |||
{|class="wikitable" | |||
!Code!!Result | |||
|- | |||
|<pre><nowiki>;Obstacles | |||
*Dirt wall | |||
*Bridge | |||
;Enemies | |||
*Bulborb | |||
*Fiery Blowhog</nowiki></pre> | |||
| | |||
;Obstacles | |||
*Dirt wall | |||
*Bridge | |||
;Enemies | |||
*Bulborb | |||
*Fiery Blowhog | |||
|} | |||
=== | === Links === | ||
To | 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. | ||
{|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 | To change the text displayed in the link, place a vertical bar between the link text and the displayed text. | ||
{|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 | 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. | ||
{|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. | |||
|} | |||
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 | To make text italic or bold, surround it with 2 or 3 apostrophes. | ||
{|class="wikitable" | |||
!Code!!Result | |||
|- | |||
|<pre><nowiki>''This text is italic.'' | |||
'''This text is bold.''' | |||
'''''This text is italic and bold.'''''</nowiki></pre> | |||
This | |''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. | |||
{|class="wikitable" | |||
* | !Code!!Result | ||
|- | |||
|<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 | |||
|} | |||
A numbered list is similar, but with # symbols instead. | |||
{|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 | |||
|} | |||
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. | |||
{|class="wikitable" | |||
!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. | |||
|} | |||
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>&ndash;</nowiki></code> in place of the dash. The same thing can be done (with different codes) for other special characters. | |||
{|class="wikitable" | |||
!Code!!Result | |||
|- | |||
|<pre><nowiki>In ''Pikmin'', Yellow Pikmin can carry [[bomb-rock]]s &ndash; an ability necessary to access certain sections of areas.</nowiki></pre> | |||
|In ''Pikmin'', Yellow Pikmin can carry [[bomb-rock]]s – 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 <code>File:</code> and end with the image's file format. | |||
{|class="wikitable" | |||
!Code!!Result | |||
|- | |||
|<pre><nowiki>[[File:SSBB Olimar.jpg]]</nowiki></pre> | |||
|[[File:SSBB Olimar.jpg]] | |||
|} | |||
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. | |||
< | {|class="wikitable" | ||
! | !Code!!Result | ||
|- | |- | ||
| | |<pre><nowiki>[[File:SSBB Olimar.jpg|thumb]]</nowiki></pre> | ||
|[[File:SSBB Olimar.jpg|thumb]] | |||
| | |} | ||
| | |||
|} | |||
It is possible to add a caption to images by putting text after another vertical bar. | |||
{| | {|class="wikitable" | ||
! | !Code!!Result | ||
|- | |- | ||
| | |<pre><nowiki>[[File:SSBB Olimar.jpg|thumb|Olimar in ''Super Smash Bros. Brawl''.]]</nowiki></pre> | ||
| | |[[File:SSBB Olimar.jpg|thumb|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. <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). | |||
{|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!! | !Code!!Result | ||
|- | |- | ||
|< | |<pre><nowiki><gallery> | ||
PuffyBlowhog.png|The Puffy Blowhog in ''Pikmin 2''. | |||
Puffy Blowhog P3 side view.jpg|The Puffy Blowhog in ''Pikmin 3''. | |||
| | </gallery></nowiki></pre> | ||
| | |<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 == | ||
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 <code><nowiki>{{stub}}</nowiki></code>. | |||
{|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. | |||
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. | |||
{|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}}. | |||
|} | |||
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 {{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: | ||
{|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 | |||
}} | |||
|} | |||
' | 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. | ||
= | {|class="wikitable" | ||
!Code!!Result (see bottom of page) | |||
|- | |||
|<pre><nowiki>[[Category:Help]]</nowiki></pre> | |||
|[[Category:Help]] | |||
|} | |||
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. | |||
[[File:HotCat demonstration.png|center|800px]] | |||
{{clear}} | |||
=== | == 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 <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> | |||
=== 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> | |||
|— '''{''[[User:Espyo|Espyo]]''<sup>[[User talk:Espyo|T]]</sup>}''' 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: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}}. | |||
== | ==See also== | ||
* | *{{w|Help:Wikitext|Wikipedia's guide to MediaWiki syntax}} | ||
{{help}} |
Latest revision as of 08:27, April 29, 2024
Shortcut: |
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 |
|
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:
|
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:
|
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.
|
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 –
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 – 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]] |
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]] |
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''.]] |
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''.]] |
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}} |
|
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 }} |
|
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.
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
Help | |
---|---|
Reading | Japanese • Searching |
Editing | Editing • FAQ • Files • Glossary • Help desk • Helping out • Quick start guide • Tables |
Others | Chat • Group rights • Staff guidebook |
Policies • Guidelines • Procedures • Help |