Help:Magic

From Wikipedia, the free encyclopedia

The magic of this wiki's software transforms text for you in several useful ways.

Contents

[edit] Substitution

[edit] Pipe trick

Main article: Pipe trick

When you create a link which ends in a PIPE CHARACTER, here's an example of what happens:

[[Wikipedia:Community Portal|]]
[[User:Example user|]]
  • turns into [[User:Example user|Example user]]
  • appears as Example user
  • provides a link to the user page, which is what you'd want most of the time
  • This does not work in edit summaries.
[[User talk:Example user|]]
  • turns into [[User talk:Example user|Example user]]
  • appears as Example user
  • provides a link to the user's talk page, which might not be what you want
[[:Category:Continents|]]
  • turns into [[:Category:Continents|Continents]]
  • appears as Continents
  • provides a link to the Category page for continents
  • Note that the first COLON CHARACTER prevents the link from causing the page containing it being listed in this category. This is how to link to a category without the link causing the page it is on being listed in the category. Only use the first colon if you DON'T want the page listed in that category. If you do want it listed in the category, use the regular category link without the first colon.

[edit] Suffix trick

[[Professor]]ial
  • appears as Professorial but links to Professor, not to Professorial

[edit] Initial character case insensitive

[[noodle]]
  • appears as noodle but links to Noodle, not to noodle (which would never be a pagename anyway because all pagenames start with a capital letter). So just use whichever initial case is appropriate for the text the link appears in.

[edit] Tildes

Use the TILDE CHARACTER to insert your username and/or a timestamp. This makes discussions easier to follow.

[edit] Three tildes (your name)

~~~

[edit] Four tildes (name and date)

~~~~
  • turns into Uncle Ed July 7, 2005 14:26 (UTC)

[edit] Five tildes (just the date)

~~~~~
  • turns into July 7, 2005 14:26 (UTC)

[edit] ISBN and RFC

See also: Wikipedia:How to edit a page#Wiki markup

ISBN and RFC automatically generate links.

[edit] ISBN

ISBN codes automatically generate links, for example: the wikitext ISBN 978-0-12-345678-9 becomes ISBN 978-0-12-345678-9 which corresponds to Special:Booksources/9780123456789.

[edit] RFC

RFC 4321 becomes RFC 4321, which is the external link to the standard at: http://tools.ietf.org/html/rfc4321.

[edit] Templates

Main article: Help:Templates

You can use templates to incorporate boilerplate text. You may have seen at the top of some articles notices like "merge with X" or "this page is marked for deletion" or "the neutrality of this article is disputed" or "an edit war was going on here, so we have locked the page".

They look pretty consistent, don't they? Well, it's all done with templates.

{{merge|help:templates}}

looks like:

{{afd}}

looks like:


{{protected}}

looks like:

This page is protected from editing until disputes have been resolved on the discussion page.
Protection is not an endorsement of the current version. To see other versions, use the page history .
{{NPOV}}

looks like:

The neutrality of this article is disputed.
Please see discussion on the talk page.