Gaming
 

Help:Editing

From Pikmin

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

Contents

[edit] Basic Code

These are the most basic and most used pieces of code.

For italicizing and bolding text, use 2 or 3 apostrophes:

''this is italic''
'''this is bold'''
'''''this is both italic and bold'''''

The "gallery" tags create a gallery of images:

<gallery>
Image:first image
Image:second image|this one has a caption
Image:last image
</gallery>

To make a line across the page, use four hyphens:

----

To indent a paragraph of text, start the line with a colon. Use more to indent further:

Normal text
:An indented line
::A line indented twice

To create a bulleted list, just start lines with asterisks:

*This line is the first bullet point.
*This will become the second.

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

#Point number one.
#This line is numbered '2.'.

Bulleted and numbered lists can be combined for more complicated lists. Experiment to see how they work in combination.

To display plain text that is pre-formatted, preserving the line breaks it has, use the <pre> tag:

<pre>Everything in here
retains the line breaks
it has.</pre>

To embed a YouTube video:

<youtube>video ID</youtube>

To have a page automatically redirect to a different one, use:

#REDIRECT[[redirect location]]

If a display of wiki coding is wanted, use the "nowiki" HTML-like tag around the code. The following produces the text "[[Main Page]]" rather than creating a link:

<nowiki>[[Main Page]]</nowiki>

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:

<includeonly>code to be included only</includeonly>

Similarly, information in "noinclude" tags is only displayed on the original page:

<noinclude>this is not included in pages that include this one</noinclude>

As well as this, a fair amount of HTML is functional. Tags such as <span> and <div> can be given a style attribute to add some CSS, in the form <span style="CSS here"/>content</span>.

[edit] Linking

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:

[[insert page name here]]

To change the text that is displayed, a pipe character is used to separate the link and text shown:

[[actual page name|displayed text]]

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:

[[article name#name of section]]

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:

[[c:Pikmin:Main Page]]

[edit] External Links

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 (http://, https://, ftp://, irc://, etc.):

[http://web_address]

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 Google link:

[http://google.com Google link]

[edit] Media

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.

  • To show an image:
[[Image:image name]]
  • To link to the description page of an image.
[[:Image:image name]]

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:

  • Centred image with a width of 350 pixels:
[[Image:image name|350px|center]]
  • Thumbnail image aligned left with the caption "this is an image":
[[Image:image name|thumb|left|this is an image]]
  • To link to the image file itself rather than the description page:
[[Media:image name]]

[edit] Categories

If you want to add a page to a category, simply add:

[[Category:Category name]]

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:

[[:Category:2-Player Locations]]

[edit] Tables

Tables start with {| and end with |}.

  • Column headers are indicated using !headername following the start of the table. Use two !s to separate headers if placed on the same line.
  • A new row is indicated with |-.
  • Table cells are started with |; 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 style="style goes here". The style is applied using CSS.
  • Table classes are available for use, applied by adding class="class name" at the start of the table. There exist:
    • 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:

{| style="border: 2px solid #0b0;"
! Header1 !! Header2 !! Header3
|-
| Cell 1 || Cell 2 || Cell 3
|- style="background: #faf;"
| Another cell
| style="color: #00b; border: 3px inset #000;" | Cell again || Last cell
|}

produces:

Header1 Header2 Header3
Cell 1 Cell 2 Cell 3
Another cell Cell again Last cell

[edit] Magic words

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:

CodeEffect
__NOTOC__Hides the table of contents (ToC)
__TOC__Forces the ToC to appear where the word is placed
__FORCETOC__Forces the ToC to appear in the normal place for a page with any number of sections
__NOEDITSECTION__Removes 'edit' links on sections
__NOGALLERY__Replaces image thumbnails with links in categories
__END__Forces the page to end there, allowing extra lines at the end of the page
__HIDDENCAT__Hides category the word is placed on from the footer of pages in it

[edit] Templates and inclusions

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:

{{Page name to be included}}

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.

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:

{{Template name|a piece of information|another piece of information}}

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.":

This template contains {{{1}}} and {{{2}}}.

These can be named to make things easier to follow:

Template:

My name is {{{name}}} and I am {{{age}}} years old.

Code:

{{Template name|name=Bob|age=5}}

Result:

My name is Bob and I am 5 years old.

[edit] Signatures

[edit] How to sign a post

To sign your name at the end of your posts, type four tildes.

~~~~, for me, produces Prezintenden 20:35, 29 January 2008 (UTC)

Three tildes will only display your signature without the time, and five will only show the time without your sig.

[edit] 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.

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 {{SUBST:User:yourname/sig}}, make sure that "Custom signature" is checked, and save. Now when you sign your name, your sig should be replaced by your custom sig.

Note that this now makes it possible to write {{User:yourname/sig}} 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 ~~~~~ will make up for that if you wish.

[edit] Pikipedia Standards

  • If an article is seriously lacking in vital information, call it a stub by putting {{stub}} 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 {{clean}} to the top of the page.
  • Articles that qualify for deletion can be submitted for it by adding {{delete|reason goes here}} to the page. Reasons an article would need to be deleted can be found here.
  • Images that are screenshots must contain the text {{screenshot}} to add a copyright notice and categorize them. For other image tags and general file information, see Help:Files.

Contents

You can edit any page where you can see an edit link. The changes that you make will show on the page as soon as you save.

In pictures

Click edit at the top of the page you want to edit.


An "edit box" will open, type your new sentences or corrections.
Please note: on newer wikis you may see the new editor.


Click Preview to check what you have written.


Click Save page to save your writing.


Video walkthrough


Editing

Ready to put your flavor on things? Learn how here!

Also check out our editing Tips and Tricks

For more videos please see our online demos page.

Some other editing tips

  • Explain your edit in the 'Summary' box between the edit window and the bottom row of grey buttons. By filling it the summary box, it allows you to tell members of your wiki community why you made a certain change to an article, making communication easier. You only need to type a short message here, for example 'added introduction'.
  • Use the 'Show preview' button to check your edit before saving. Remember to save your preview before moving on. The preview button gives you a chance to check your edit for formatting and typos before it's up on the wiki for all to see. It also spares you the grief of having to go back and make another change after saving an article.
  • If you are logged in, you can mark an edit as minor by checking the 'This is a minor edit' box. This lets other editors know your edit is very small.
  • Pages that start with 'User:' are personal pages. While it's considered impolite to make major edits to other people's user pages without permission, feel free to leave messages for people on their User_talk pages.
  • Always remember to sign your talk page comments with four tildes ( ~~~~). That way, the person you're writing to will know who sent him/her the message.

Formatting

Most text formatting is usually done with wiki markup, so you don't have to learn HTML.

See Help:Formatting and Help:HTML.

Links

Links are important on wikis to help readers navigate your site. The more your pages are linked to each other, the easier it is for readers to find what they're looking for.

See Help:Links, Help:External link and also Category:Link help on Wikia Help.

Wiki variables and templates

Use {{SITENAME}} to see the current Wikia. For instance, {{SITENAME}} on this site prints out as Wikia Help.

That and a few other templates are common to MediaWiki sites. For a complete list of these "magic words", see magic words on Meta.

You can create templates. After you create the page Template:XXX, using the command {{XXX}} will include that content in your current page. So, if you have something that needs to be included on many other pages, you might want to use a template.

Most templates available on the Central Wikia can be used on individual Wikia wikis with just "wikia:" prefixed to the name. See Help:Shared templates.

See also