Help:Editing: Difference between revisions

m
Protected "Help:Editing" ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only administrators] (indefinite))
(New sections on templates and categories. (The Dodge Whistle infobox was taken from the Upgrade page.))
m (Protected "Help:Editing" ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(41 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{clean|Add missing info, and implement a consistent style.}}
{{shortcut|P:EDITING}}
This page is a reference and a tutorial for Mediawiki code, which is the code used on this wiki. More advanced techniques can be found [[Help:Editing/Advanced techniques|here]]. Should there be something that you cannot find here, but want explained, ask [[Help talk:Editing|here]].
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 ==
Line 17: Line 17:
|}
|}


== Links ==
=== 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.
{|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 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.
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"
{|class="wikitable"
Line 32: Line 82:
|<pre><nowiki>Caves are [[Randomization|randomly generated]] by arranging [[Cave unit|rooms]].</nowiki></pre>
|<pre><nowiki>Caves are [[Randomization|randomly generated]] by arranging [[Cave unit|rooms]].</nowiki></pre>
|Caves are [[Randomization|randomly generated]] by arranging [[Cave unit|rooms]].
|Caves are [[Randomization|randomly generated]] by arranging [[Cave unit|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.
{|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).
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 ==
=== Formatting ===
To make text italic or bold, surround it with 2 or 3 apostrophes.
To make text italic or bold, surround it with 2 or 3 apostrophes.
{|class="wikitable"
{|class="wikitable"
Line 103: Line 161:
|}
|}


== Sections ==
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.
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>
|
== Main heading ==
Paragraph.
 
=== Subheading ===
Paragraph.
 
==== Minor heading ====
Paragraph.
|}
 
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"
{|class="wikitable"
!Code!!Result
!Code!!Result
|-
|-
|<pre><nowiki>[[Ship part#List]] is a section of the [[ship part]] article. See [[#Sections|here]] for more information about sections.</nowiki></pre>
|<pre><nowiki>In ''Pikmin'', Yellow Pikmin can carry [[bomb-rock]]s &amp;ndash; an ability necessary to access certain sections of areas.</nowiki></pre>
|[[Ship part#List]] is a section of the [[ship part]] article. See [[#Sections|here]] for more information about sections.
|In ''Pikmin'', Yellow Pikmin can carry [[bomb-rock]]s &ndash; an ability necessary to access certain sections of areas.
|}
|}


== Images ==
== Images ==
To make an image appear on a page, link to the article containing the image, which will start with <code>File:</code> and end with the image's file format.
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"
{|class="wikitable"
!Code!!Result
!Code!!Result
Line 181: Line 215:
</gallery>
</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 ==
Line 208: Line 243:
|}
|}


Some templates are more complex, featuring many arguments with various names. An example of this is {{tem|infobox upgrade}}, which is used to show basic information about [[upgrade]]s. These include which games the upgrade appears in, an image of the upgrade, the areas it appears in, and the upgrade's weight. 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:
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"
{|class="wikitable"
!Code!!Result
!Code!!Result
Line 218: Line 255:
|image        = DodgeWhistleArt.png
|image        = DodgeWhistleArt.png
|caption      = The Dodge Whistle's capsule.
|caption      = The Dodge Whistle's capsule.
|area        = [[Distant Tundra]]
|weight      = 10
|max_carriers = 20
|function    = Allows leaders and Pikmin to dodge
|function    = Allows leaders and Pikmin to dodge
|requirements = Retrieve the capsule
}}</nowiki></pre>
}}</nowiki></pre>
|{{infobox upgrade
|{{infobox upgrade
Line 229: Line 264:
|image        = DodgeWhistleArt.png
|image        = DodgeWhistleArt.png
|caption      = The Dodge Whistle's capsule.
|caption      = The Dodge Whistle's capsule.
|area        = [[Distant Tundra]]
|weight      = 10
|max_carriers = 20
|function    = Allows leaders and Pikmin to dodge
|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 for more information about it.
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 ==
== Categories ==
Pages can be included in categories, which allow related pages to be grouped together. 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, link to that category anywhere in the page (but preferably at the bottom). The link will not appear, and instead the article will be added to the category. A list of categories a page is in can be found at the bottom of the page.
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"
{|class="wikitable"
!Code!!Result
!Code!!Result (see bottom of page)
|-
|-
|<pre><nowiki>[[Category:Help]]</nowiki></pre>
|<pre><nowiki>[[Category:Help]]</nowiki></pre>
Line 247: Line 281:
|}
|}


== Redirect pages==
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.
To have a page automatically redirect to a different one, use:
:<pre><nowiki>#REDIRECT[[redirect location]]</nowiki></pre>


== Tables ==
[[File:HotCat demonstration.png|center|800px]]
{{main|Help:Tables}}
{{clear}}


==Signatures==
== Other ==
===How to sign a post===
=== Redirect pages ===
To sign your name at the end of your posts, type four tildes.
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>


<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)
=== 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.
Three tildes will only display your signature without the time, and five will only show the time without your sig.
{|class="wikitable"
 
!Code!!Result
===Custom signatures===
|-
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.
|<pre><nowiki>~~~~</nowiki></pre>
|&mdash; '''{''[[User:Espyo|Espyo]]''<sup>[[User talk:Espyo|T]]</sup>}''' 12:00, January 1, 2020 (EST)
|}


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.
=== 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.


*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.
== 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}}.


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.
==See also==
*{{w|Help:Wikitext|Wikipedia's guide to MediaWiki syntax}}


==Pikipedia standards==
{{help}}
{{main|Pikipedia:Policies and guidelines}}
*If an article is seriously lacking in vital information, call it a stub by putting ''<nowiki>{{stub}}</nowiki>'' at the top of the page.
*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 at [[Pikipedia:Pages for deletion]].
*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]].