Help:Formatting

From WiKirby, your independent source of Kirby knowledge.
Jump to navigationJump to search

So, an aspiring young editor has just learned how to start editing and wants to learn more than just plain text changes? Never fear, for this page contains a handy guide to some of the most basic forms of formatting that can be applied to text.

Basic Wiki Coding

Wikis have their own special coding system. This is a short list of some of the most-used Wiki markup:

Text Formatting

This section is for applying different looks and effects to text.

Appearance in article Appearance in edit window
Bold Text
'''Bold Text'''
Italic Text
''Italic Text''
Bold and Italic Text
'''''Bold and Italic Text'''''
Underlining works, as does striking out.
<u>Underlining</u> works, as does <s>striking out</s>.

A line break won't be registered with only one new line. This line appears to be in the same paragraph as the previous line.

Two new lines, however, begins a new paragraph.

A line break won't be registered with only one new line.
This line appears to be in the same paragraph as the previous line.

Two new lines, however, begins a new paragraph.

Editors can break lines
without starting a new paragraph.

Editors can break lines<br/>
without starting a new paragraph.
This makes '''all''' of the [[wiki]] coding not display.
<nowiki>This makes '''all''' of the [[wiki]] coding not display.</nowiki>
Big text or small text
<big>Big text</big> or <small>small text</small>
Superscript or subscript
<sup>Superscript</sup> or <sub>subscript</sub>
Hidden page comments:
not shown when viewing the page
<!-- This is a hidden comment -->

A typewriter font for monospace text or for computer code: int main()

  • For semantic reasons, using <code> where applicable is preferable to using <tt>.
A typewriter font for <tt>monospace text</tt>
or for computer code: <code>int main()</code>

Signing Posts

This section is for signing the user's name on Talk pages, and should not be used in main article text.

When adding a comment to a Discussion page, an editor should sign it by adding four tildes to add his/her user name plus date/time:

Neo 18:08, 30 January 2010 (UTC)

Other, less recommended alternatives are:

  • Three tildes to add user name alone:
Neo
  • Five tildes gives the date/time alone:
18:08, 30 January 2010 (UTC)
When adding a comment to a Discussion page, an editor should
sign it by adding four tildes to add his/her user name
plus date/time:
: ~~~~
Other, less recommended alternatives are:
*Three tildes to add user name alone:
: ~~~
*Five tildes gives the date/time alone:
: ~~~~~

Link Formatting

This section goes over inserting links into article text. Articles should always have at least one link to another page inset.

A direct link and a piped link (one that shows different text than its actual link):
Kirby is the main character of The Kirby Series.

Any type of link can be a piped link.

[[Kirby]] is the main character of [[Kirby (series)|The Kirby series]].
This is a link to a page that doesn't exist. If an editor wants to create a new page, he/she could do so by clicking the link. (Please do not actually create the page in question!)
[[This is a link to a page that doesn't exist]].
If an editor wants to create a new page, he/she could do so by clicking the link. (Please do not actually create the page in question!)/pre>
|-
|Linking to a different namespace that '''is not Category''':<br/>[[Talk:Main Page]]
|<pre>[[Talk:Main Page]]
Linking to the category namespace:
Category:Abilities
[[:Category:Abilities]]
Linking to a subpage:
User:Neo/sig
[[User:Neo/sig]]
External links:
*[http://www.wikirby.com] (very bad)
*http://www.wikirby.com (bad)
*[http://www.wikirby.com WiKirby] (good)
Linking to Wikipedia:

Wikipedia:Kirby
OR See also: Kirby on Wikipedia box.jpg

[[Wikipedia:Kirby]]<br/>
'''OR'''
{{Wikipedia|Kirby}}
To have a page automatically send a user to a different page, use this code.
(See Help:Redirects for more information)
#REDIRECT [[page name]]

Kirby#Kirby's Adventure is a link to a section within another page.

#Links and URLs is a link to a section on the current page.

#example is a link to an anchor that was created using

an id attribute
  • The part after the number sign (#) must match a section heading on the page. Matches must be exact in terms of spelling, case and punctuation. Links to non-existent sections aren't broken; they are treated as links to the top of the page.
  • Identifiers may be created by attaching an id="..."> attribute to almost any HTML element.
[[Kirby#Kirby's Adventure]] is a link
to a section within another page.

[[#Links and URLs]] is a link
to a section on the current page.

[[#example]] is a link to an
anchor that was created using
<div id="example">an id attribute</div>

Automatically hide stuff in parentheses: Kirby.

Automatically hide namespace: Abilities.

  • The server fills in the part after the pipe character (|) when an editor saves the page. The next time the edit box is opened the editor will see the expanded piped link. When previewing edits, the editor will not see the expanded form until pressing Save and Edit again. The same applies to links to sections within the same page (see previous entry).
Automatically hide stuff in parentheses:
[[Kirby (series)|]].

Automatically hide namespace: 
[[:Category:Abilities|]].
  • To put an article in a category, place a link like the one to the right anywhere in the article. As with interlanguage links, it does not matter where these links are placed while editing as they will always show up in the same place when the page is saved, but placement at the end of the edit box is expected for convenience.
[[Category:Character sets]]


Linking to other wikis:

  1. Interwiki link: Wiktionary:Hello
  2. Named interwiki link: Hello
  3. Interwiki link without prefix: Hello