Difference between revisions of "Template:Linking"

From blackwiki
Jump to navigation Jump to search
imported>Fuhghettaboutit
(Add {{z number}})
imported>Fuhghettaboutit
(Change to documentation method)
Line 1: Line 1:
 
Linking to existing Wikipedia pages is done by placing doubled 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 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>
----
+
{|align="center"
{{Help desk templates}}
+
|{{help desk templates}}
 
+
|}
* This template should always be [[WP:SUBST|substituted]] by prefixing "subst:" inside the template code. Thus use <nowiki>{{</nowiki>'''subst:'''<code><nowiki>Linking}}</nowiki></code> rather than <code><nowiki>{{Linking}}</nowiki></code>.
+
{{Documentation}}
* You can indent the template, by typing '''<code><nowiki>:{{subst:Linking}}</nowiki></code>'''.
+
</noinclude>
* The template does not include automatic signing. Please remember to sign by typing four tildes (~) after the template syntax.
 
 
 
[[Category:Help desk templates|{{PAGENAME}}]]</noinclude>
 

Revision as of 13:16, 2 December 2010

Linking to existing Wikipedia pages is done by placing doubled 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

Template documentation[view] [edit] [history] [purge]

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.