Template:Linking: Difference between revisions

From Bharatpedia, an open encyclopedia
m (1 revision imported)
m (→‎top: clean up, replaced: Wikipedia: → Bharatpedia: (2))
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 "[[Bharatpedia: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 [[Bharatpedia:Tutorial]]. Hope this has helped.{{z28}}<!-- Template:Linking --><noinclude>


{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>

Revision as of 18:50, 31 May 2021

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 Bharatpedia:Tutorial. Hope this has helped.Template:Z28