Difference between revisions of "Template:Linking"
imported>Fuhghettaboutit (tweak) |
imported>Anarchyte (moved to documentation) |
||
| Line 1: | Line 1: | ||
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> | 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> | ||
| − | + | ||
| − | |||
| − | |||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 12:06, 17 May 2020
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. |