Template:Trac: Difference between revisions

From Shareaza Wiki
Jump to navigation Jump to search
No edit summary
(I gave the Template some better way to deal with parameters.)
Line 1: Line 1:
== Template ==
== Template ==
<onlyinclude>[[Image:Trac Logo 512x512.png|14px]][http://sourceforge.net/apps/trac/shareaza/{{{1}}} {{{2}}}][[Category:External Links]]</onlyinclude>
<onlyinclude>[[Image:Trac Logo 512x512.png|14px]][http://sourceforge.net/apps/trac/shareaza/{{{1|}}} {{{2|{{{1|Trac Wiki}}}}}}][[Category:External Links]]</onlyinclude>


== Motivation ==
== Motivation ==
This template is thought to replace all links to the Dev Wiki (Trac) 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 Dev Wiki (Trac) 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>{{Trac|internal link|link name}}</nowiki>
  <nowiki>{{Trac|internal link|link name}}</nowiki>
Note that neither parameter is necessary. If the second one misses, the linked to page title is used as link name, if both miss however, the template creates a link to our Dev Wiki's Main Page. If only the first one misses, the second one can be used to precise a different name for the link to the Dev Wiki's Main Page.


== Example ==
== Example ==
   <nowiki>{{Trac|wiki|Trac Wiki}}</nowiki>
   <nowiki>{{Trac|wiki|Trac Wiki}}</nowiki>
{{Trac|wiki|Trac Wiki}}
{{Trac|wiki|Trac Wiki}}
  <nowiki>{{Trac|wiki}}</nowiki>
{{Trac|wiki}}
  <nowiki>{{Trac|2=Trac Main Page}}</nowiki>
{{Trac|2=Trac Main Page}}
  <nowiki>{{Trac}}</nowiki>
{{Trac}}

Revision as of 23:40, 31 July 2010

Template

Trac Wiki

Motivation

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

See WikiProjects.Links.

Syntax

{{Trac|internal link|link name}}

Note that neither parameter is necessary. If the second one misses, the linked to page title is used as link name, if both miss however, the template creates a link to our Dev Wiki's Main Page. If only the first one misses, the second one can be used to precise a different name for the link to the Dev Wiki's Main Page.

Example

 {{Trac|wiki|Trac Wiki}}

Trac Wiki

 {{Trac|wiki}}

wiki

 {{Trac|2=Trac Main Page}}

Trac Main Page

 {{Trac}}

Trac Wiki