Template:Shareaza Forums: Difference between revisions

From Shareaza Wiki
Jump to navigation Jump to search
(I changed the order of the paramethers and made them both optional.)
(Forum link update)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Template ==
== Template ==
<onlyinclude>[https://sourceforge.net/apps/phpbb/shareaza/{{{2|}}} {{{1|Shareaza Forums}}}][[Category:External Links]]</onlyinclude>
<onlyinclude>[http://shareaza.sourceforge.net/phpbb/{{{2|}}} {{{1|Shareaza Forums}}}][[Category:External Links]]</onlyinclude>


== Motivation ==
== Motivation ==
This template is thought to replace all links to the forums in the Wiki. This makes it more easy to replace all links in case this should be necessary in future. '''See [[WikiProjects.Links]].'''
This template is thought to replace all links to the forums in the Wiki. This makes it more easy to replace all links in case this should be necessary in future.
: '''See [[WikiProjects.Links]].'''


== Syntax ==
== Syntax ==
  <nowiki>{{Shareaza Forums|link name|internal link}}</nowiki>
  <nowiki>{{Shareaza Forums|link name|internal link}}</nowiki>
Both parameters are optional, however, in order to change the second, you must specify the first.
Both parameters are optional. If you want to change the second without specifying the first, it must be done like this:
<nowiki>{{Shareaza Forums|2 = internal link}}</nowiki>


== Examples ==
== Examples ==
Note that all '=' signs must be replaced by the [[Template:eq|eq template]] for the template to work correctly.
Note that all '=' signs must be replaced by the [[Template:eq|eq template]] for the template to work correctly:
<nowiki>{{Shareaza Forums|Shareaza Forums - General Discussion|viewforum.php?f{{eq}}2}}</nowiki>
{{Shareaza Forums|Shareaza Forums - General Discussion|viewforum.php?f{{eq}}2}}


  <nowiki>{{Shareaza Forums|Shareaza Forums - General Discussion|viewforum.php?f{{eq}}2}}</nowiki>
An other possibility is to start the second parameter with <code>2 = </code>:
{{Shareaza Forums|viewforum.php?f{{eq}}2|Shareaza Forums - General Discussion}}
  <nowiki>{{Shareaza Forums|Shareaza Forums - General Discussion|2 = viewforum.php?f=2}}</nowiki>
{{Shareaza Forums|Shareaza Forums - General Discussion|2 = viewforum.php?f=2}}
 
If used without parameters, the result is shown below:
  <nowiki>{{Shareaza Forums}}</nowiki>
  <nowiki>{{Shareaza Forums}}</nowiki>
{{Shareaza Forums}}
{{Shareaza Forums}}

Latest revision as of 18:22, 13 February 2014

Template

Shareaza Forums

Motivation

This template is thought to replace all links to the forums in the Wiki. This makes it more easy to replace all links in case this should be necessary in future.

See WikiProjects.Links.

Syntax

{{Shareaza Forums|link name|internal link}}

Both parameters are optional. If you want to change the second without specifying the first, it must be done like this:

{{Shareaza Forums|2 = internal link}}

Examples

Note that all '=' signs must be replaced by the eq template for the template to work correctly:

{{Shareaza Forums|Shareaza Forums - General Discussion|viewforum.php?f{{eq}}2}}

Shareaza Forums - General Discussion

An other possibility is to start the second parameter with 2 = :

{{Shareaza Forums|Shareaza Forums - General Discussion|2 = viewforum.php?f=2}}

Shareaza Forums - General Discussion

If used without parameters, the result is shown below:

{{Shareaza Forums}}

Shareaza Forums