Difference between revisions of "Template:Linking"
imported>Acagastya (being precise) |
imported>Fuhghettaboutit (tweak) |
||
| Line 1: | Line 1: | ||
| − | Linking to existing Wikipedia pages is done by placing doubled square brackets around the name of the page. Thus, <nowiki>[[Wikipedia]]</nowiki> produces [[Wikipedia]]. A useful expansion of this is done by separating what you want ''linked'', from what you want ''displayed'', with a pipe character ("|"), to create a "[[Wikipedia:Piped link|piped link]]". Thus: <nowiki>[[Wikipedia|encyclopedia]]</nowiki> produces [[Wikipedia|encyclopedia]], with the displayed text linking to the article, [[Wikipedia]]. You can link to ''internal sections'' of pages in this way: [[Wikipedia#Cultural significance|Wikipedia#name of internal section of that article]]. By contrast, for external links: <nowiki>http://www.example.org</nowiki> produces http://www.example.org; <nowiki>[http://www.example.org]</nowiki> produces [http://www.example.org]; and <nowiki>[http://www.example.org example]</nowiki> produces [http://www.example.org example]. For more information, see [[Help:Link]] and please consider taking a tour through the [[Wikipedia:Tutorial]]. Hope this has helped.{{z28}}<!-- Template:Linking --><noinclude> | + | Linking to existing Wikipedia pages is done by placing doubled square brackets around the name of the page. Thus, <kbd><nowiki>[[Wikipedia]]</nowiki></kbd> produces [[Wikipedia]]. A useful expansion of this is done by separating what you want ''linked'', from what you want ''displayed'', with a pipe character ("|"), to create a "[[Wikipedia:Piped link|piped link]]". Thus: <kbd><nowiki>[[Wikipedia|encyclopedia]]</nowiki></kbd> produces [[Wikipedia|encyclopedia]], with the displayed text linking to the article, [[Wikipedia]]. You can link to ''internal sections'' of pages in this way: [[Wikipedia#Cultural significance|Wikipedia#name of internal section of that article]]. By contrast, for external links: <kbd><nowiki>http://www.example.org</nowiki></kbd> produces http://www.example.org; <kbd><nowiki>[http://www.example.org]</nowiki></kbd> produces [http://www.example.org]; and <kbd><nowiki>[http://www.example.org example]</nowiki></kbd> produces [http://www.example.org example]. For more information, see [[Help:Link]] and please consider taking a tour through the [[Wikipedia:Tutorial]]. Hope this has helped.{{z28}}<!-- Template:Linking --><noinclude> |
{|align="center" | {|align="center" | ||
|{{help desk templates}} | |{{help desk templates}} | ||
Revision as of 23:22, 7 April 2017
Linking to existing Wikipedia pages is done by placing doubled square brackets around the name of the page. Thus, [[Wikipedia]] produces Wikipedia. A useful expansion of this is done by separating what you want linked, from what you want displayed, with a pipe character ("|"), to create a "piped link". Thus: [[Wikipedia|encyclopedia]] produces encyclopedia, with the displayed text linking to the article, Wikipedia. You can link to internal sections of pages in this way: Wikipedia#name of internal section of that article. By contrast, for external links: http://www.example.org produces http://www.example.org; [http://www.example.org] produces [1]; and [http://www.example.org example] produces example. For more information, see Help:Link and please consider taking a tour through the Wikipedia:Tutorial. Hope this has helped.Template:Z28
|
| This template should always be substituted (i.e., use {{subst:Linking}}). Any accidental transclusions will be automatically substituted by a bot. |
| Help desk templates: |
|---|
|
Usage
- This template should always be substituted by prefixing "subst:" inside the template code. Thus use
{{subst:Linking}}rather than{{Linking}}. - You can indent the template, by typing
:{{subst:Linking}}. - The template does not include automatic signing. Please remember to sign by typing four tildes (~) after the template syntax.
| The above documentation is transcluded from Template:Linking/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |