Help:Introduction to editing with Wiki Markup/3: Difference between revisions

Content deleted Content added
m ce
Restored revision 1230149370 by The wub (talk): Talk pages are covered later in the tutorial, and not sure why we'd link to them like this
 
(37 intermediate revisions by 17 users not shown)
Line 1:
<noinclude>{{pp|small=yes}}</noinclude>{{intro to|
[[File:Boldness and links tutorial.ogv|thumb||thumbtime=1|A video tutorial about the basics of wiki markup, including creating links]]
'''Wikilinks''' are one of the ''key'' components of Wikipedia. A [[help:wikilink|wikilinkWikilink]]s connectsconnect pages to another page on the encyclopaediaeach andother, tiestying the whole thingencyclopedia together.
 
In general, wikilinks should be added for the [[MOSWikipedia:LINKManual of Style/Linking|first occurrencemention]] of important or unfamiliar concepts forin thean topicarticle.
[[File:Boldness and links tutorial.ogv|thumb||thumbtime=1|A video tutorial about the basics of wiki markup, including creating links]]
'''Wikilinks''' are one of the ''key'' components of Wikipedia. A [[help:wikilink|wikilink]] connects to another page on the encyclopaedia and ties the whole thing together.
 
 
In general, wikilinks should be added for the [[MOS:LINK|first occurrence]] of important concepts for the topic.
 
 
All Wikilinks are based on using square brackets like: <code><nowiki>[[target&nbsp;page]]</nowiki></code>
 
Typically, wikilinks use square brackets, like this: <code><nowiki>[[target&nbsp;page]]</nowiki></code>. You can also insert them by clicking the [[File:OOjs UI icon link-ltr.svg|20px|class=skin-invert|link=|alt=Chain icon]] icon.
 
If you want to link to an article, but display some other text for the link, you can use a [[Help:Link#Piped&nbsp;link|pipe]] <code><nowiki>|</nowiki></code> divider ({{key press|Shift|\}}):
<br><code><nowiki>[[target&nbsp;page|display&nbsp;text]]</nowiki></code>
 
[[File:WP20Symbols MediaWiki.svg|right|170px|alt=|link=]]
 
You can also link to a specific section of a page using a hash <code>#</code>:
<br><code><nowiki>[[Target&nbsp;page#Target&nbsp;section|display&nbsp;text]]</nowiki></code>
 
Here are some examples:
:*<code><nowiki>[[link]]</nowiki></code> displays as [[link]]
:*<code><nowiki>[[Android (operating system)|Android]]</nowiki></code> displays as [[Android (operating system)|Android]], whereas:
*<code><nowiki>[[Android (operating system)|Android]]</nowiki></code> displays as [[Android (operating system)|Android]]
*<code><nowiki>[[Earth#Chemical composition|Chemistry of the Earth]]</nowiki></code> displays as [[Earth#Chemical composition|Chemistry of the Earth]]
 
You may also encounter '''[[Help:A quick guide to templates|templates]]''', which allow frequently used elements to be included on multiple pages. These are designated by curly brackets like: <code><nowiki>{{template&nbsp;name|parameters}}</nowiki></code>
 
For instance, to insert the {{citation needed|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}}} [[Template:Citation needed|tag]], you can type this code:
:<code><nowiki>[[link]]</nowiki></code> displays as [[link]]
{{tnull|Citation needed|date{{=}}{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}. The [[File:OOjs UI icon puzzle-ltr.svg|20px|class=skin-invert|link=|alt=Puzzle piece icon]] icon works, too.
:<code><nowiki>[[Android (operating system)|Android]]</nowiki></code> displays as [[Android (operating system)|Android]]
:<code><nowiki>[[Wikipedia:Tutorial/Wikipedia_links#Categories|Categories]]</nowiki></code> displays as [[Wikipedia:Tutorial/Wikipedia_links#Categories|Categories]]
}}