Template:G2: Difference between revisions

From Shareaza Wiki
Jump to navigation Jump to search
(Created page with '== Template == <onlyinclude>15px [http://g2.trillinux.org/index.php?title={{{1}}} {{{2}}}]Category:External Links</onlyinclude> == Motivation == This temp…')
 
No edit summary
Line 1: Line 1:
== Template ==
== Template ==
<onlyinclude>[[Image:g2dn.jpg|15px]] [http://g2.trillinux.org/index.php?title={{{1}}} {{{2}}}][[Category:External Links]]</onlyinclude>
<onlyinclude>[[Image:g2dn.jpg|15px]] [http://g2.trillinux.org/index.php?title={{anchorencode:{{{1|Main_Page}}}}} {{{2|{{{1|G2 Developer Network}}}}}}][[Category:External Links]]</onlyinclude>


== Motivation ==
== Motivation ==
Line 9: Line 9:
== Syntax ==
== Syntax ==
  <nowiki>{{g2|*page name on g2dn*|*link text*}}</nowiki>
  <nowiki>{{g2|*page name on g2dn*|*link text*}}</nowiki>
Note that the second parameter is not necessary. If it is misses, the page name is used as a link text. If both parameters are missing, this template generates a link to the main page of the {{g2}}. Note also that the automatic URL encoding used to replace spaces with underscores, can break the link in some cases (if certain special characters are used).


== Example ==
== Example ==
* {{g2|Gnutella2|What is Gnutella2?}}
  <nowiki>{{g2|Gnutella2|What is Gnutella2?}}</nowiki>
  <nowiki>{{g2|Gnutella2|What is Gnutella2?}}</nowiki>
{{g2|Gnutella2|What is Gnutella2?}}

Revision as of 20:43, 3 August 2010

Template

G2 Developer Network

Motivation

This template is thought to replace all links to the G2DN page. This makes it more easy to control - and maybe change in future - external links in our Wiki.

See WikiProjects.Links.

Syntax

{{g2|*page name on g2dn*|*link text*}}

Note that the second parameter is not necessary. If it is misses, the page name is used as a link text. If both parameters are missing, this template generates a link to the main page of the G2 Developer Network. Note also that the automatic URL encoding used to replace spaces with underscores, can break the link in some cases (if certain special characters are used).

Example

{{g2|Gnutella2|What is Gnutella2?}}